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

Similar Messages

  • 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
              

  • Where can I find document for weblogic(process JSP and Servlet)

     

    Hello Maksim,
    The link in your message no longer worked.  I got "page can't be displayed".
    Thank you.

  • Weblogic 7.0 and 6.1 javax.servlet.filter implementation

              Hi All,
              I was using weblogic 6.1 and as my organization wants to go for 7.0, we
              are in the process of evaluating 7.0 ver.
              WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
              getFilterConfig(). We have an implementation for the Filter which also contains
              a private method init(FilterCongig filterConfig).
              In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
              Because of the obvious reason i have a private implementation of init(FilterConfig
              )in my code the build does not succeed. When i checked the java specifications
              from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
              destroy().
              Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
              method in the filter interface??. (Otherwise its a bug)
              Because of this the porting has become a serious issue as in some cases we need
              to support both 6.1 and 7.0
              

    6.1 did not implement the final version of the Servlet 2.3 specification, that's
              why you see differences.
              http://edocs.bea.com/wls/docs61/notes/new.html#1064420
              Sanjeev <[email protected]> wrote:
              > Hi All,
              > I was using weblogic 6.1 and as my organization wants to go for 7.0, we
              > are in the process of evaluating 7.0 ver.
              > WL6.1 javax.servlet.filter interface provides the methods doFilter(), setFilterConfig(),
              > getFilterConfig(). We have an implementation for the Filter which also contains
              > a private method init(FilterCongig filterConfig).
              > In 7.0 javax.servlet.filter interface the methods are doFilter(), init(), destroy().
              > Because of the obvious reason i have a private implementation of init(FilterConfig
              > )in my code the build does not succeed. When i checked the java specifications
              > from Sun site I found 1.3.1 and 1.4(beta) specs provide doFilter(), init() and
              > destroy().
              > Question is: Is weblogic 6.1, JDK 1.3.1 compliant, if so why there is not init()
              > method in the filter interface??. (Otherwise its a bug)
              > Because of this the porting has become a serious issue as in some cases we need
              > to support both 6.1 and 7.0
              Dimitri
              

  • How to set classpath to EJB and Servlets

    Hi all,
    How can I add a classpath to EJB and Servlets in Weblogic 6.1, so that that classpath
    can be achieved by both EJB jar and war file? I have deployed a .ear file having
    the jar and war files. Now the EJBs inside the jar file are not reaching the class
    files of the war file and the class files in the war file are not reaching to
    the EJBs. Please let me know at the earliest.
    Atanu

    Hi.
    You might try looking at the petstore example which combines webapps (war files) with
    ejbs in an ear file to see how to do this. It may be a simple config problem.
    Regards,
    Michael
    Atanu Dey wrote:
    Hi all,
    How can I add a classpath to EJB and Servlets in Weblogic 6.1, so that that classpath
    can be achieved by both EJB jar and war file? I have deployed a .ear file having
    the jar and war files. Now the EJBs inside the jar file are not reaching the class
    files of the war file and the class files in the war file are not reaching to
    the EJBs. Please let me know at the earliest.
    Atanu--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Load balancing for JSPs and servlets

    Hi:
              I am using IIS as the proxy server, with the WLS plug-in, to a WLS
              cluster. This provides round robin load balancing just fine. Will it
              provide weight based load balancing if I set 'weblogic.system.weight'
              differently on each server, or is that not relevant for clustering JSPs
              and servlets?
              Sincerely,
              Ashish
              

    Currently the plugins ( for NES, IIS and Apache) just use the round robin
              algorithm. the property
              weblogic.system.weight is used only be weblogic's replica aware clusterable
              RMI/EJB stubs.
              To use this property for your JSP/Servlet load balancing you have to use
              weblogic server as proxy fron-ending your weblogic cluster.
              --Viresh Garg
              Ashish Vimal wrote:
              > Hi:
              > I am using IIS as the proxy server, with the WLS plug-in, to a WLS
              > cluster. This provides round robin load balancing just fine. Will it
              > provide weight based load balancing if I set 'weblogic.system.weight'
              > differently on each server, or is that not relevant for clustering JSPs
              > and servlets?
              > Sincerely,
              > Ashish
              

  • EJB and Servlets

    Hi there,
    A frontend processing of HTTP request that pass thru WebLogic server that make
    API calls thru tuxedo to the application servers that eventually running C, C++
    that retrieve data from a backend database of Oracle.
    Being the services of EJB and Servlets, EJB is more kind of processes inside the
    server but Servlets can handle better in request and respond (talk to the client),
    whats your opinions in this kind of integration? Go for pure EJB or Servlets?
    Or shall mixed matched? and how should the architecture should looks like?
    Thanks
    Neo

    Sorry, wrong question, just ignore it.

  • Third-party jars not visible to EJB's and servlets.

    Hi, This is an unanswered post in an newsgroup which exactly displays our
    current problem,
    Extract Begins -->
    "I've got a WebApp with classloading issues while running WebLogic 5.1.
    According to the JSDK 2.2 API, if I include third-party classes in
    WEB-INF/lib, my EJBs and servlets should be able to load any jar'ed classes
    inside. In practice, however, it seems to make no difference. My EJB always
    comes back with a NoClassDefFound error for xerces.jar that's in WEB-INF/lib
    (and I've even tried adding it to the EJB JAR itself with no change).Of
    course, if I put Xerces in the server's classpath, there are no problems but
    that's a road I don't want to go down.How can I tell my EJB's to load
    third-party classes from the WEB-INF/lib directory of the WAR file? I'd
    appreciate your insight. <-- End
    We are busy migrating one of our apps from 5.1 to 6.1, What we have done
    thus far and fairly successfully is the following,
    We packaged all the jsps, WEB-INF, html, images into a WAR file and then
    packed all EJB's, META-INF and classes to which the ejbs refer, into an EAR
    file.
    EMARKET_APPS/
    +myjsp.jsp
    +myhtml.html
    +images
    +WEB-INF/+
    |
    +classes/+
    |
    +myclass1.class
    +myclass2.class
    |
    +lib/+
    |
    +OReily.jar
    +jts.jar
    +xerces-1_4_1.jar
    +junit.jar
    +jcschart110Kwl.jar
    |
    +web.xml
    +weblogic.xml
    +META-INF/+
    |
    +applications.xml
    +ejbs/+
    |
    +myejb1.jar
    +myejb2.jar
    +lib/+
    |
    +classes.jar
    Please advise.
    Rgs Roly

    Have you tried to include the jars in the Class path entry in the manifest file.
    That should work eventhough I haven't tried it yet (fighting with ear deployement
    and I must say WLS seems to be winning). I'll get back to when I've tried it.
    There is a VERY good article on theserverside.com regarding class loaders and
    EAR/WAR/EJBs at http://www.theserverside.com/resources/articles/J2EE-Deployment/chapter.html
    Good luck
    /erik

  • WebLogic 8.1 and Tomcat connection problem

    I am using Tomcat 4.0.6 for my JSPs and WebLogic for my EJBs.
    Everything worked fine under WebLogic 6.1 but I am trying
    to upgrade to WebLogic 8.1 and it is not working.
    I can also connect to WebLogic 8.1 from a standalone class
    but not using Tomcat. What is wrong?
    This is the basic code I am using to connect:
    Hashtable ht = new Hashtable(4);
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://localhost:7009");
    InitialContext ic = new InitialContext(ht);
    Object obj = ic.lookup("NsbInfoHome");
    NsbInfoHome home = ( NsbInfoHome) PortableRemoteObject.
    narrow(obj, NsbInfoHome.class);
    NsbInfo nsbInfo = home.create();
    NsbMemberPrimaryInfo info = nsbInfo.getMemberPrimaryInfo(1);
    And this is the error
    java.lang.NullPointerException
    at weblogic.rmi.internal.StubGenerator.getStubOnClient(StubGenerator.java:694)
    at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:666)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:712)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:699)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:76)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:486)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:449)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:345)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
    at javax.naming.InitialContext.init(InitialContext.java:226)
    at javax.naming.InitialContext.<init>(InitialContext.java:202)
    at org.apache.jsp.testWL2$jsp._jspService(testWL2$jsp.java:81)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to
    generate class for weblogic.jndi.internal.ServerNamingNode_WLStub ] -
    with nested exception:
    [java.lang.NullPointerException]
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:716)
    at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:699)
    at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:76)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRootNamingNodeStub(WLInitialContextFactoryDelegate.java:486)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newRemoteContext(WLInitialContextFactoryDelegate.java:449)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:345)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:308)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
    at javax.naming.InitialContext.init(InitialContext.java:226)
    at javax.naming.InitialContext.<init>(InitialContext.java:202)
    at org.apache.jsp.testWL2$jsp._jspService(testWL2$jsp.java:81)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    Any ideas how to fix this?
    Thanks,
    Dan

    Hi,
    I work under a sligthly different seeting like Dan used (Java Client instead of JSPs, but same context properties), but the problem is exactly the same: weblogic.rmi.internal.StubGenerator.getStubOnClient() results in a NullPointerException.
    What does this method actually do? I provided the weblogic.jar in the client's runtime environment; is it possible that the method asks for something else on the client side that I have to provide (only guessing...)
    PS: I found the error myself. Its the Eclipse 3.0 IDE that won't work together with the factory class of BEA for some obscure reason. Switching to another IDE solved the problem...
    Message was edited by c_web at Dec 1, 2004 6:03 AM

  • Sequence of deployment for EJBs and Servlets....

    Is there any way to control the order in which weblogic 6.0 deploys EJBs
              and servlets?
              We have a few startup servlets which use EJBs, however, weblogic 6.0
              seems to start the Servlets before it deploys the EJBs and thus our
              servlets fail.
              Haider Abbas Kazmi - Java Mobile App. Developer
              [haider.kazmi.vcf]
              

    6.1 solves this problem:
              http://e-docs.bea.com/wls/docs61/adminguide/appman.html#1030797
              Haider Abbas Kazmi <[email protected]> wrote:
              > This is a multi-part message in MIME format.
              > --------------9AC9295410C7463D3A71C1A6
              > Content-Type: text/plain; charset=us-ascii
              > Content-Transfer-Encoding: 7bit
              > Is there any way to control the order in which weblogic 6.0 deploys EJBs
              > and servlets?
              > We have a few startup servlets which use EJBs, however, weblogic 6.0
              > seems to start the Servlets before it deploys the EJBs and thus our
              > servlets fail.
              > --
              > Haider Abbas Kazmi - Java Mobile App. Developer
              > --------------9AC9295410C7463D3A71C1A6
              > Content-Type: text/x-vcard; charset=us-ascii;
              > name="haider.kazmi.vcf"
              > Content-Transfer-Encoding: 7bit
              > Content-Description: Card for Haider Abbas Kazmi
              > Content-Disposition: attachment;
              > filename="haider.kazmi.vcf"
              > begin:vcard
              > n:Kazmi;Haider
              > tel;cell:(416)9864702
              > tel;fax:(416) 6434832
              > tel;work:(416) 3666425 x315
              > x-mozilla-html:FALSE
              > url:http://www.everypath.com/
              > org:Everypath Canada;Research & Development
              > adr:;;260 King St;Toronto;Ontario;M5A 4L5;Canada
              > version:2.1
              > email;internet:[email protected]
              > title:Java Mobile App. Developer
              > fn:Haider Kazmi
              > end:vcard
              > --------------9AC9295410C7463D3A71C1A6--
              Dimitri
              

  • LDAP protection for JSP and Servlets

    Environment: WL 5.1 sp 8 on Solaris 7
    Question: I want to use LDAP Security on my site. Does Weblogic only utilze LDAP
    for servlets. What about my JSP files? And no, I can't protect just a directory
    with iPlanet Web Server because my JSP files are all over my directories and my
    servlets are in my /servlets directory. I need security on some of the jsp files.
    how would I accomplish this?

    Hello
    What do I install in order to create and use .jsp's
    and servlets and jdbc connectivity as well? Is it
    J2SE or J2EE. The answer is "Yes."
    In order to use J2EE, you need J2SE. If you do not feel comfortable with J2SE and programming Java in general (as is suggested by not being able to differentiate between J2SE and J2EE and how to download one/both), J2EE may be a bit complex to get started with.
    My suggestion:
    1) Start Here: http://java.sun.com/learning/new2java/index.html
    2) Download J2SE: http://java.sun.com/j2se/1.5.0/download.jsp choose the JDK 5.0 Update 3
    3) Do a beginners Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
    4) Read a book, try a lot, get comfortable doing it.
    Then Choose the JDBC:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Then, only after being compfortable in how Java and JDBC work, move to J2EE
    1) Download a Server (examples):
    Full J2EE implementation: J2EE Software Development Kits (SDK)
    Servlet/JSP Engine (Tomcat): http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
    There are others, Tomcat is fairly popular.
    2) Read the server's documentation thoroughly
    3) Read a J2EE tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    Note: depending on your server, the above tutorial may only be partially relevant.
    The download section is overwhelming
    and confusing to me :(
    Thanks for any guidance.

  • Urgent: problem with sharing HttpSession  object between Jsp and servlets.

    Hi,
              We are using weblogic 6.0 sp2.
              I m setting a particular object in session in a servlet using
              session.setAttribute() but when i try to retrieve that object using
              session.getAttribute() in a jsp page the value of that object is null. Is
              there any way to configure HttpSession in weblogic so that jsps and servlet
              can share the same session? Or any workaround for this problem.
              Any help in this regard is appreciated.
              Thanks
              -Shree
              

    Just a guess, but it sounds like you have cookies turned off and are not
              using encodeURL. Try enabling cookies and see if that solves the problem.
              Also, it is generally good practice to use encodeURL to protect yourself
              from users who disable session cookies.
              Here's how we use encodeURL in our Servlets:
              gotoPage("/jsp/someJSP.jsp");
              private void gotoPage( String address,
              HttpServletRequest request,
              HttpServletResponse response )
              throws ServletException, IOException
              RequestDispatcher dispatcher =
              etServletContext().getRequestDispatcher( response.encodeURL( address ));
              dispatcher.forward( request, response );
              "Shree Unde" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              > We are using weblogic 6.0 sp2.
              > I m setting a particular object in session in a servlet using
              > session.setAttribute() but when i try to retrieve that object using
              > session.getAttribute() in a jsp page the value of that object is null. Is
              > there any way to configure HttpSession in weblogic so that jsps and
              servlet
              > can share the same session? Or any workaround for this problem.
              > Any help in this regard is appreciated.
              > Thanks
              > -Shree
              >
              >
              

  • Weblogic 6.1 and Resin Problems

    I am having trouble with Weblogic 6.1 and Resin. I have a simple .jsp
              page that calls an entity bean I have created and deployed with
              Weblogic.
              The key aspects of the JSP are as follows:
                        Context jndiContext = new InitialContext();
                        Object ref = ic.lookup("java:comp/env/CustomerHomeRemote");
                        CustomerHomeRemote home = (CustomerHomeRemote)
                             PortableRemoteObject.narrow(ref,CustomerHomeRemote.class);
                        Integer pk = new Integer(1002);
                        CustomerRemote customer = home.findByPrimaryKey(pk);
                        out.print(customer.getFirstname() +"<br>");
                        out.print(customer.getLastname() +"<br>");
              My resin.conf is the same as the default with the following added:
              <classpath id='c:\Smartix-Apps\lib\smartixejb.jar' />
              <classpath id='c:\Smartix-Apps\classes' />
              <classpath id='c:\temp\caucho' />
              <classpath id='c:\Smartix-Apps\lib\resin.jar' />
              <classpath id='C:\Programs\bea\wlserver6.1\lib\weblogic.jar' />
              <jndi-link>
              <jndi-name>java:comp/env/CustomerHomeRemote</jndi-name>
              <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
              <init-param java.naming.provider.url="t3://localhost:7001"/>
              <jndi-lookup>CustomerHomeRemote</jndi-lookup>
              </jndi-link>
              smartixejb.jar contains the CustomerEJB and \classes has all the class
              files.
              The error I am getting is:
              500 Servlet Exception
              java.lang.ClassCastException:
              com.caucho.server.http.ApplicationAdapter
                   at com.caucho.jsp.PageManager.<init>(PageManager.java:83)
                   at com.caucho.jsp.JspManager.<init>(JspManager.java:75)
                   at com.caucho.jsp.JspServlet.init(JspServlet.java:74)
                   at com.caucho.server.http.Application.createServlet(Application.java:2755)
                   at com.caucho.server.http.Application.loadServlet(Application.java:2711)
                   at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2478)
                   at com.caucho.server.http.Application.buildFilterChain(Application.java:2445)
                   at com.caucho.server.http.Invocation.service(Invocation.java:276)
                   at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
                   at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
                   at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
                   at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
                   at java.lang.Thread.run(Thread.java:484)
              Can anyone help me???
              Thanks in advance!
              

    Remove <classpath id='c:\Smartix-Apps\lib\resin.jar' /> from
              your resin.conf.
              Matt Koidin <[email protected]> wrote:
              > I am having trouble with Weblogic 6.1 and Resin. I have a simple .jsp
              > page that calls an entity bean I have created and deployed with
              > Weblogic.
              > The key aspects of the JSP are as follows:
              >           Context jndiContext = new InitialContext();
              >           Object ref = ic.lookup("java:comp/env/CustomerHomeRemote");
              >           CustomerHomeRemote home = (CustomerHomeRemote)
              >                PortableRemoteObject.narrow(ref,CustomerHomeRemote.class);
              >           Integer pk = new Integer(1002);
              >           CustomerRemote customer = home.findByPrimaryKey(pk);
              >           out.print(customer.getFirstname() +"<br>");
              >           out.print(customer.getLastname() +"<br>");
              > My resin.conf is the same as the default with the following added:
              > <classpath id='c:\Smartix-Apps\lib\smartixejb.jar' />
              > <classpath id='c:\Smartix-Apps\classes' />
              > <classpath id='c:\temp\caucho' />
              > <classpath id='c:\Smartix-Apps\lib\resin.jar' />
              > <classpath id='C:\Programs\bea\wlserver6.1\lib\weblogic.jar' />
              >
              > <jndi-link>
              > <jndi-name>java:comp/env/CustomerHomeRemote</jndi-name>
              > <jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
              > <init-param java.naming.provider.url="t3://localhost:7001"/>
              > <jndi-lookup>CustomerHomeRemote</jndi-lookup>
              > </jndi-link>
              > smartixejb.jar contains the CustomerEJB and \classes has all the class
              > files.
              > The error I am getting is:
              > 500 Servlet Exception
              > java.lang.ClassCastException:
              > com.caucho.server.http.ApplicationAdapter
              >      at com.caucho.jsp.PageManager.<init>(PageManager.java:83)
              >      at com.caucho.jsp.JspManager.<init>(JspManager.java:75)
              >      at com.caucho.jsp.JspServlet.init(JspServlet.java:74)
              >      at com.caucho.server.http.Application.createServlet(Application.java:2755)
              >      at com.caucho.server.http.Application.loadServlet(Application.java:2711)
              >      at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2478)
              >      at com.caucho.server.http.Application.buildFilterChain(Application.java:2445)
              >      at com.caucho.server.http.Invocation.service(Invocation.java:276)
              >      at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129)
              >      at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:338)
              >      at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:270)
              >      at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
              >      at java.lang.Thread.run(Thread.java:484)
              > Can anyone help me???
              > Thanks in advance!
              Dimitri
              

  • Need some help with Slow Downs in Java3D and Servlets

    Hi,
    I realize that there is a separate forum for Java 3D, but I posted there, and did not get any response. This is kinda the crux of my program, so I would like to invite anybody on this forum with knowledge of Java 3D and servlets to give it a stab. Between this post and that one, there are TWENTY duke dollars up for grabs.
    Thanks.
    http://forum.java.sun.com/thread.jspa?threadID=603198

    Let me have an educated guess.
    You calculated the time elapsed before sending in a server request - and at that point you have you updated timeLastStateChange yet, which means by the time of the next calculation of time elapsed this apparent delay is not counted in, hence the slow down in animation rate.
    Hope this helps~
    Alex Lam S.L.

Maybe you are looking for

  • I need to install Adobe Acrobat plug in to enable download of PDF files

    I run an Apple Mac OSX Version 10.7.5 Please advise me which version of Adobe Acrobat plug in I need, to enable me to download PDF files, which an Australian Gov. dept says I need

  • Duplicates in material master

    hello experts what does it mean by identification of duplicates in material master and how its done? whether its applicable for all master records? regards

  • Max VDIMM for neo-fisr?

    What is the max ddr voltage for the 875p neo-fisr (the one with the orange pci slot)? Thanks!

  • Possible bug report: "username in use" error not returned

    When I was creating this account, I got stuck at the page that creates a forum ID to be linked to my Apple ID. I would enter my information, check the user agreement box, then hit submit... and the page would reload, having lost data in two fields (c

  • Cold backup from AIX to HP-UX

    Hi, Is it possible to restore a coldbackup which has taken form AIX machine to HP-UX machine? I think there are endians different and not possible.. Please suggest me and correct me Thanks KSG Not (AIX to Solaris) Edited by: KSG on Aug 11, 2010 6:25