Jsp-ejb

          hi
          I am trying work with ejb and jsp's using WLS 6.1 but nothing seems to work ,
          with out using jsp if i am invoking ejb's by writing a simple client its working
          fine
          well here is what i have done
          i have copied the ejb remote and home interface classes into WEB-INF/classes generated
          xml files and created a jar file with extension .war
          well now i am invoking jsp by web browser but it gives a compile error package
          not found (where all the ejb classes are there)
          what should be the class path and should these ejb classes and interfaces be in
          c:bea\wlserver6.1\config.....
          path or can they be in any other path
          please clarify
          thanks
          

          hi again
          i tried with WEB-INF\classes\ejb1 even now i am getting the same errors
          C:\DOCUME~1\ADMINI~1.SPS\LOCALS~1\Temp\jsp_servlet\__ejb1.java:21: package ejb1
          does not exist
          probably occurred due to an error in /ejb1.jsp line 2:
          <%@ page import="javax.naming.*, javax.rmi.*, java.util.*, java.io.*,ejb1.*" %>
          C:\DOCUME~1\ADMINI~1.SPS\LOCALS~1\Temp\jsp_servlet\__ejb1.java:108: cannot resolve
          symbol
          probably occurred due to an error in /ejb1.jsp line 21:
          DemoHome dh = (DemoHome)ctx.lookup("DemoEJB");
          C:\DOCUME~1\ADMINI~1.SPS\LOCALS~1\Temp\jsp_servlet\__ejb1.java:108: cannot resolve
          symbol
          probably occurred due to an error in /ejb1.jsp line 21:
          DemoHome dh = (DemoHome)ctx.lookup("DemoEJB");
          C:\DOCUME~1\ADMINI~1.SPS\LOCALS~1\Temp\jsp_servlet\__ejb1.java:109: cannot resolve
          symbol
          probably occurred due to an error in /ejb1.jsp line 22:
          Demo d = dh.create();
          thank you
          sri
          "sri" <[email protected]> wrote:
          >
          >hi!!!
          >
          >thank you,yes i dint give the package structure i will try that out !!!
          >
          >i need further clarification regarding this please, i removed the package
          >name
          >and now the classes are in WEB-INF\classes
          >i tought it would work when i run jsp. but its giving error cant find
          >the remote
          >and home interface names...
          >
          >what would be the problem here the class files are placed in the web-inf
          >folder
          >why cant jsp find them should we do any thing else
          >
          >thanks
          >sri
          >
          >
          >"Vijay Poluri" <[email protected]> wrote:
          >>
          >>Hi Sri,
          >>
          >>Please check if the EJB classes are under the exact package structure
          >>as declared
          >>in the EJB.
          >> WEB-INF/classes/packagestructure
          >>FYI, keeping EJB interface classes in the System Classpath is not
          >recommended.
          >>
          >>Vijay
          >>Developer Relations Engineer
          >>BEA Support
          >>
          >>
          >>"sri" <[email protected]> wrote:
          >>>
          >>>hi
          >>>
          >>>
          >>>I am trying work with ejb and jsp's using WLS 6.1 but nothing seems
          >>to
          >>>work ,
          >>>
          >>>with out using jsp if i am invoking ejb's by writing a simple client
          >>>its working
          >>>fine
          >>>
          >>>well here is what i have done
          >>>i have copied the ejb remote and home interface classes into WEB-INF/classes
          >>>generated
          >>>xml files and created a jar file with extension .war
          >>>
          >>>well now i am invoking jsp by web browser but it gives a compile error
          >>>package
          >>>not found (where all the ejb classes are there)
          >>>
          >>>what should be the class path and should these ejb classes and interfaces
          >>>be in
          >>>c:bea\wlserver6.1\config.....
          >>>path or can they be in any other path
          >>>
          >>>please clarify
          >>>
          >>>thanks
          >>>
          >>>
          >>>
          >>>
          >>
          >
          

Similar Messages

  • Good books for learning Java(Servlets,JSP,EJB,etc.,),Javascript.

    Hi Experts,
    Can you suggest me some good books on java , javascript.The books should include the internals of Servlets,JSP,EJB.
    Thanks
    vishal

    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=756427&start=7
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=751055
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=743429
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=742997&start=11
    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=750775&start=24
    Just a simple search for this forum....
    It took me 10 seconds tofind these..
    JJ

  • How to call jsp/ejb in webdynpro applications

    Hi
    Is It Possible to call jsp and EJB in webdynpro applications.If it is please let me know..
    Regards
    Chandra

    Hi,
    You can call JSp and serlvets using suspend and resume plugs
    /people/bertram.ganz/blog/2006/07/03/web-dynpro-java-foundation--whats-new-in-sap-netweaver-2004s
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/bb8c6cc7131d67e10000000a1553f6/frameset.htm
    For EJbs you can create a DTO and try to make use of the model import available in Webdynpro.
    Regards
    Ayyapparaj

  • Servlet, JSP, EJB

    Hi!
    I have some general questions about jsp and servlets. I develop an internetbased portfoliosystem which uses ejb to extract data from an oracle database.
    q1: How can I create a controlling servlet for page direction?
    q2: How can my jsp file connect to my ejb (session bean)? Can I do it directly or must I go through an AccessBean? (if accessbean, how do I do that?)
    Sincirely,
    Nicolai
    Answers/examples may also be sent to: [email protected]

    1 For a controller servlet you can use a servlet controller model, ie the presentation logic is in the JSP pages , which submits request to the servlet which does appropriate processing and then redirects the flow to another JSP.
    2. Your JSP file can connect to EJBs directly through the remote handle of the bean obtained by JNDI lookups. However the JSP gets cluttered with the JNDI lookup codes.If the HTML programmer is different from Java programmer then go for accessor beans.

  • JSP- EJB Communication

    I have a client-server application where my client is an applet and the server is an EJB.
    The HTML code to launch the applet is dynamically generated by a JSP page. Now i want this JSP page to be able to communicate with the EJB.
    What i need is that the JSP page will pass a parameter to the Applet and the same parameter will be notified to the EJB. So that when the Applet accesses the EJB, the EJB could verify whether the parameter is correct.
    Could someone show me a way to achieve this.
    I am doing all these bcos since it the applet that acceses the EJB anyone who could manage to get the Applet jar file can access the EJB unauthorizedly,with the help of a decompiler.
    If anyone has a better solution to this problem, kindly let me know
    regards
    Raees

    Greetings,
    What i need is that the JSP page will pass a parameter
    to the Applet and the same parameter will be notified
    to the EJB. So that when the Applet accesses the EJB,
    the EJB could verify whether the parameter is correct.Unless you're using a database to hold the verification parameter you're looking at several problems here, especially if your EJB is a Session Bean. Firstly, if your bean is Stateful (SB) you will get an exception when your Applet tries to access the bean since Session Beans are not shareable among multiple threads (meaning, in this case, "clients"). If your bean is Stateless it can store the parameter internally, however, Stateless beans are poolable. This means when your Applet tries to verify itself there's no guarantee that the bean holding the parameter from the JSP is the same bean the Applet verifies against. However...
    Could someone show me a way to achieve this. One way this can be handled is with a "verification" Stateless SB and a temporary database table. The bean can have a method to generate a temporary "key" which it stores in the temporary table and passes back to the caller (JSP). The JSP then passes this as a parameter to the Applet which invokes a method to validate the key. This method would then check the table for the specified key and delete it upon successful verification. However, since you would be embedding a security construct within the web page it is advisable to perform the page loading over SSL...
    I hope this helps.
    regards
    Raees Regards,
    Tony "Vee Schade" Cook

  • JSP/EJB compilation:  don't put .java files in EJB jars!

    I was having trouble compiling a JSP that uses an EJB remote interface.
              The Weblogic console printed an error like this:
              Thu Aug 31 14:13:58 PDT 2000:<E> <ServletContext-General> Compilation of
              D:\weblogic\myserver\classfiles\jsp_servlet\_hl
              og.java failed:
              D:\weblogic\myserver\tmp_deployments\ejbjar-6787.jar(hlog/ejb/LogEntry.java):5:
              class LogEntry
              is public, should be declared in a file named LogEntry.java
              (source unavailable)
              1 error
              The fix was not to include source files in my EJB jar. Before I was
              using a simple jar command:
              >jar -cf hlog.jar hlog META-INF
              Which of course included both class and source files in the jar (I
              didn't see the harm in this).
              I changed to:
              >jar -cf hlog.jar hlog\ejb\*.class META-INF
              and the problem went away.
              Thought this might save y'all some time and grief...
              John
              

    In the previous message: "I'd putt String as the return value for all methods"...
    all methods = doInserir, doAlterar and doRemover.
        public String doInserir() {
            this.produtoRemote.inserir(this.produto);
            return "sucesso";
        public String doAlterar() {
            this.produtoRemote.alterar(this.produto);
            return "sucesso";
        public String doRemover() {
            this.produtoRemote.remover(this.produto);
            return "sucesso";
        }Just to clarify.
    Thanks!

  • JSPs, EJBs in WebLogic Server 6.1

              Hi everyone,
              I'm starting to develop my first j2ee application. Mainly it is a few jsp pages
              accessing ejbs business logic.
              I would like to implement a security system to prevent anonymous users to access
              the jsp pages.
              It is possible to configure in a descriptor the user information and a profile
              associated with each user, such as read, write, update, delete...? When i refer
              these users i'm talking about the customers that will user the application..they
              are not weblogic users.
              In a few words...i want to implement a basic security system.
              Thanks for your help,
              Best Regards,
              João Seixas
              +351 93 8487351
              [email protected]
              [email protected]
              

    Please post this to the security newsgroup.
              Joao Carlos Seixas wrote:
              > Hi everyone,
              > I'm starting to develop my first j2ee application. Mainly it is a few jsp pages
              > accessing ejbs business logic.
              > I would like to implement a security system to prevent anonymous users to access
              > the jsp pages.
              > It is possible to configure in a descriptor the user information and a profile
              > associated with each user, such as read, write, update, delete...? When i refer
              > these users i'm talking about the customers that will user the application..they
              > are not weblogic users.
              > In a few words...i want to implement a basic security system.
              >
              > Thanks for your help,
              > Best Regards,
              > João Seixas
              > ------------------------------------
              > +351 93 8487351
              > [email protected]
              > [email protected]
              > ------------------------------------
              Regards,
              Ann
              Developer Relations Engineer
              BEA Support
              

  • Standard Javabean inside a JSP/EJB application

    Hello!
    I want to use a JSP-file as a graphical user interface for a j2EE-application. I want to use a standard Javabean as an intermediate connector between the JSP and the Enterprise Java Beans.
    Deployment details:
    - 2 bean-Jars inside a EJB-module
    - A JSP-file inside a .WAR-file
    But what about the standard Javabean, where shall I put it?
    What are the correct settings in the deployment tool?....
    bye from
    G�ran, Stockholm

    You just need the standard JavaBean available to the EJB as well as the JSP. One nice way is to package such beans into a JAR and include the JAR in the EJB module as well as the WAR as a library.

  • Exception : JSP & EJB

    Hi,
    I'm working on a project but it doens't work perfectly.
    It use J2EE, EJB and JSP technology but I'm fresh in this field.
    At the moment, sometimes (but not for each utilisation and I don't unterdstand why !) there is a Servlet exception which is :
    A Servlet Exception Has Occurred
    Exception Report:
    javax.servlet.ServletException: Cannot create bean of class util.DocumentationServicesBean
    Root Cause:
    java.lang.ClassNotFoundException: class util.DocumentationServicesBean : java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.RemoteException: Client not authorized for this invocation.
         at java.beans.Beans.instantiate(Beans.java:211)
         ... ... ...If someone know the reason of this problem, please let me know.
    Thanks !

    it's not a servlet exception but when ur jsp/servlet is trying to invoke the EJBs, by any means, like creating a new instance, or just getting the pre-existed data by some finder method etc. etc., some times it doesn't have sufficient rights to do that call. Then ur ejb server throws an error, which ultimately comes to the webserver in the form of ServletException.
    java.rmi.RemoteException: Client not authorized for this invocation.
    at java.beans.Beans.instantiate(Beans.java:211)check ur deployment descriptor for the different roles and their rights, and different methods and permissions for them.
    good luck,

  • JSP/EJB sample-problem

    Hi,
    I'm having difficulties to get the Oracle JSP sample to wrok.
    I deployed the JSP App and also the StackDemo app and changed the envrionment variables as requested .
    But each time I try to use the DemoStack bean by submitting a 'create stack' I get the message :
    "The requested access method is not allowed for that object"
    Can anybody help me with this problem?
    Michel.

    Alex,
    I use OAS 4.0.8.1.
    I also reloaded the application after deployment.
    I used a clinet snippet that is compiled in JDevelope 3.0 and I run it from there .
    It finds THE EJB , ic reated and deployed without giving any error messages. The problem rises the moment I try to use one of the functions of the remote interface of the EJB. In these functions I try to use functionality of viewObjects that are provided by a bussines component that I generated using JDeveloper 3.0.
    The wrb log file mentions a 'null pointer exeption'.
    I think that I do something wrong when initializing the application module that wraps the business component, but I can't see what is wrong.
    This is the code I use in my EJB :
    String theAM = "EDMpackage.EDMAppModule";
    ApplicationModule root = null;
    String sessionDefName = ApplicationModule.DEFAULT_DEF_FULL_NAME;
    Hashtable env = new Hashtable(2);
    env.put(Context.INITIAL_CONTEXT_FACTORY, JboContext.JBO_CONTEXT_FACTORY);
    env.put(JboContext.DEPLOY_PLATFORM, JboContext.PLATFORM_LOCAL);
    try
    Context ic = new InitialContext(env);
    ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(sessionDefName);
    root = home.create();
    catch(Exception e)
    e.printStackTrace();
    localAppMod = root.createApplicationModule( "EDMAppMod",theAM );
    This works fine , but when I try to get a ViewObject through the localAppMod, I get the error. So I think I am wrong somewhere here.
    Michel.

  • How to run servlets, jsp, ejb..?

    dear friends,
    i will be happy if anyone suggest how to run jsp, servlets, ejb. and also do give the proper server to run these. it will be helpful if u give the URL's . An early reply is helpful. thanx and bye for now. my email id is [email protected]

    this is the site where i learn jsp from :
    http://www.jsptut.com/

  • JSP, EJB in Jboss 4 with mySQL database. Error in connecting to database

    Hi, i using JBoss 4-0-1 with jsp and mySQL database. I get this example from a book using stateless session beans. However i modify it so it can connect to mySQL database.
    This is my code for jsp.
    <%@ page import="asg.MusicEJB.*,
    java.util.*,
    javax.naming.Context,
    javax.naming.InitialContext,
    javax.rmi.PortableRemoteObject" errorPage="error.jsp" %>
    <%--
         The following 3 variables appear in a JSP declaration.
         They appear outside the generated _jspService() method,
         which gives them class scope.
         Since we want to initialize our Music EJB object once
         and read the Music Collection database to get the
         recording titles once, we place this code inside
         method jspInit().
         The EJB business method getMusicList()
         returns a collection of RecordingVO objects which we
         store in ArrayList albums.
    --%>
    <%!
         MusicHome musicHome;
         Music mymusic;
         ArrayList albums;
         Properties properties=new Properties();
         public void jspInit() {
                   properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
                   properties.put(Context.PROVIDER_URL, "localhost:3306");
                   System.out.println("............................in properties");
              try {
                   //Context initial = new InitialContext();
                   InitialContext jndiContext = new InitialContext(properties);
                   //Object ref  = jndiContext.lookup("MusicEJB");
                   Object objref = jndiContext.lookup("java:comp/env/ejb/EJBMusic");
                   musicHome = (MusicHome)PortableRemoteObject.narrow(objref, MusicHome.class);
                   mymusic = musicHome.create();
                   albums = mymusic.getMusicList();
                   System.out.println(".............................in line 64");
              } catch (Exception ex) {
                   System.out.println("Unexpected Exception............: " +
                             ex.getMessage());
                   ex.printStackTrace();
    %>
    <%--
         The following scriptlet accesses the implicit
         request object to obtain the current URL
         and saves it to the session object for later retrieval. 
         It also saves variable mymusic, so we can
         make remote calls to our Music EJB, and the collection of
         RecordingVO objects.  These variables will all be available
         to other pages within the session.
    --%>
    <%
         String requestURI = request.getRequestURI();
         session.putValue("url", requestURI);
         session.putValue("mymusic", mymusic);
         session.putValue("albums", albums);
    %>
    <html>
    <head>
    <title>Music Collection Database Using EJB & JSP Version 9.7</title>
    </head>
    <body bgcolor=white>
    <h1><b><center>Music Collection Database Using EJB & JSP</center></b></h1>
    <hr>
    <p>
    There are <%= albums.size() %> recordings.
    <form method="post" action="musicPost.jsp">
    <p>
    Select Music Recording:
    <select name="TITLE">
    <%
         // Generate html <option> elements with the recording
         // titles stored in each RecordingVO element.
         // Obtain the current title from the session object
         // (this will be null the first time).
         String title;
         String currentTitle = (String)session.getValue("curTitle");
         if (currentTitle == null) currentTitle = "";
         RecordingVO r;
         Iterator i = albums.iterator();
         while (i.hasNext()) {
              r = (RecordingVO)i.next();
              title = r.getTitle();
              if (title.equals(currentTitle)) {
                   out.println("<option selected>" + title + "</option>");
              else {
                   out.println("<option>" + title + "</option>");
    %>
    </select><p><p>
    <%--
         Provide a "View Tracks" button to submit
         the requested title to page musicPost.jsp
    --%>
    <input TYPE="submit" NAME="View" VALUE="View Tracks">
    </form>
    </body>
    </html>Message was edited by:
    chongming

    This is the deployment descriptor for the .ear file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
      <display-name>MusicDAOApp</display-name>
      <description>Application description</description>
      <module>
        <web>
          <web-uri>war-ic.war</web-uri>
          <context-root>music</context-root>
        </web>
      </module>
      <module>
        <ejb>ejb-jar-ic.jar</ejb>
      </module>
    <!--
      <module>
        <java>app-client-ic.jar</java>
      </module>
    -->
    </application>
    And this is the deployment for the ejb class files:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
    <ejb-jar>
      <display-name>MusicEJB</display-name>
      <enterprise-beans>
        <session>
          <display-name>MusicEJB</display-name>
          <ejb-name>MusicEJB</ejb-name>
          <home>asg.MusicEJB.MusicHome</home>
          <remote>asg.MusicEJB.Music</remote>
          <ejb-class>asg.MusicEJB.MusicBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Bean</transaction-type>
          <env-entry>
            <env-entry-name>MusicDAOClass</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>asg.MusicEJB.MusicDAOCloudscape</env-entry-value>
          </env-entry>
         <env-entry>
         <env-entry-name>dbUrl</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>jdbc:mysql://localhost/music</env-entry-value>
          </env-entry>
          <env-entry>
            <env-entry-name>dbUserName</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>chongming</env-entry-value>
          </env-entry>
          <env-entry>
            <env-entry-name>dbPassword</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>kcm82</env-entry-value>
         </env-entry>
          <security-identity>
            <description></description>
            <use-caller-identity></use-caller-identity>
          </security-identity>
        </session>
      </enterprise-beans>
    </ejb-jar>I can combine the jar and war files into a ear file. deploying is alright without any errors.
    However when i run the jsp, it prompt this error:
    You Have Encountered an Error
    Stack Trace
    java.lang.NullPointerException
         at org.apache.jsp.musicGet_jsp._jspService(org.apache.jsp.musicGet_jsp:111)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    How to i solve the error? I look at he catch results in the command prompt of JBoss , i found that when running, the code will be caught by the exception and display this:int.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
    kerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    13:55:21,375 INFO [STDOUT] Unexpected Exception............: EJBException:; nes
    ted exception is:
    javax.ejb.EJBException: getMusicList: SQLException during DB Connection:
    The url cannot be null
    13:55:21,375 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exce
    ption is:
    javax.ejb.EJBException: getMusicList: SQLException during DB Connection:
    The url cannot be null 13:55:21,375 INFO[STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:352)
    13:55:21,375 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
    What can i do to solve the problem? please helpMessage was edited by:
    chongming
    Message was edited by:
    chongming
    Message was edited by:
    chongming

  • Simple JSP/EJB demo app

    Hi
    Is there a demo application with a JSP interface to EJB in middle tier without ADF, Struts or anyother frameworks ?
    Anthos

    http://www.oracle.com/technology/sample_code/tech/java/ejb_corba/index.html

  • JSP + EJB + IE + resize = lock exceptions

    I'm getting odd behavior when I resize IE 5.5 with a Servlet/JSP loaded
              that references some EJB's. I'm getting dozens of page reloads, followed
              (eventually) by the server getting lock exceptions thrown from the
              EJB's.
              I've tried adjust the HTTP headers to allow for caching, but that
              doesn't seem to help. Does this sound familar to anyone?
              --Paul
              A wholly owned subsidiary of:
              Schroendinger: DS Bd+W G+Y 10 Y+ L+ W- C+ I++ T++/---
              A+ E++ H+ S++ V++ F- Q++ P B+ PA PL-
              Dirac : DS Bs+W G+Y 10 X L- W C+ I+ T+
              A E- H+ S V+ F- Q++ P++ B+ PA+ PL+
              

    I'm getting odd behavior when I resize IE 5.5 with a Servlet/JSP loaded
              that references some EJB's. I'm getting dozens of page reloads, followed
              (eventually) by the server getting lock exceptions thrown from the
              EJB's.
              I've tried adjust the HTTP headers to allow for caching, but that
              doesn't seem to help. Does this sound familar to anyone?
              --Paul
              A wholly owned subsidiary of:
              Schroendinger: DS Bd+W G+Y 10 Y+ L+ W- C+ I++ T++/---
              A+ E++ H+ S++ V++ F- Q++ P B+ PA PL-
              Dirac : DS Bs+W G+Y 10 X L- W C+ I+ T+
              A E- H+ S V+ F- Q++ P++ B+ PA+ PL+
              

  • J2EE/JSP/EJB - ojvm debugging hangs

    I'm using JDeveloper version 10.1.2.0.0 (build 1811) at following enviroment:
    Server: Windows XP
    Client: Windows XP
    JAVA:1.4.2_04 that comes with Jdev
    I have the following problem:
    I have a project with *.jsp and *.java files when i try do debug a java file using
    the ojvm he get's to the breakpoint then if try to the debug using step over/step into
    the process hangs no exception and no coming back. If i use the others vm (hotspot, client or sever)
    Jdev doesn't hang. The problem only occurs where debugging with ojvm.
    When the debug process hangs no way to know what it's doing cause it's not
    possible to pause (cliking the debugger pause button there's no reaction) just stopping de
    process by cliking 2 times at the debug stop button.
    I changed from Jdev 9.0.5.16.15 to Jdev 10.1.2.0.0 (build 1811) same problem.
    Any help?

    I see. A logger is software that catches the fallout and presents it to you.
    Well, I'm slightly resistant because I can program this stuff OK, but I work from home .. there's no backup for me, no sysad to help. I've recently moved to Linux and I'm groping around it. So I fear a day or two of non-productive farting about trying to get a logger to work, and I could do without it.
    Then again, it can take me a good while to debug something blind.
    So. Any recommendation for a simple logger? Are they java or do they depend on the OS? Oh, and free/open source of course :-)
    Or, if anyone could tell me how to get my printlns to work that would be good too :-)
    J

Maybe you are looking for

  • IDVD won't recognize imovie project

    Hello people. I have an 09 Mac desktop computer. I have now made seven iMovie projects ranging from ten minutes to almost two hours. Each time I shared the project with iDVD to burn the finished product to disc. Each time I made sure I could play bac

  • [SOLVED] app that auto populates home folder

    I once used an app from the repos (might have been aur) that auto populated your home directory with the standard sub directories (music, pictures, downloads, documents, etc..) and used the correct specialized icon for each of them.  I know I could j

  • How to generate MYSAPSSO2 cookie?

    Hello! Is it possible to generate MYSAPSSO2 cookie in WebDynpro or J2EE/JSP applications? These apps running as standalone, not in the SAP Portal. Also WD apps not using sap.authentificate property since I have to use my own login algorithm for it. I

  • BBM Will Not Load On The Playbook Please help!!

    Let me just state that I am not technically handicapped i literally tried everything troubleshooting in the book. I wiped my playbook, i downgraded my torch, i downgraded my bbm, i restarted, re-paired over and over and over again still no luck. When

  • Move MP3 files from ipod to hard drive

    Hey, My hard drive dies and I have lost everything on it. Good news is that a lot of my music is stored on my ipod. How do I get the music files, which were mostly NOT purchased from itunes but my own MP3s, off of my ipod on on to my new hard drive?