JavaBean

I have the following javabean that references another database connection bean.
package jsp.internal.mois;
import java.io.*;
import java.sql.*;
import java.util.Properties;
import .jsp.dbControl.ConnectionBean;
public class moisLoginBean {
public boolean validateLogin() {
     ConnectionBean conbean = new ConnectionBean();
conbean.getConnection();
     Statement stmt1 = conbean.createStatement();
     String sql = "Select * from moisUser";
     Resultset result1 = stmt1.executeQuery(sql);
     return false;
when i try to compile, it gives this error >
cannot resolve symbol: class jsp.dbcontrol.ConnectionBean
Statement stmt1 = conbean.createStatement();
Resultset result1 = stmt1.executeQuery(sql)
what am i doing wrong?

Just to be sure - you do have such a class either in a jar file in the WEB-INF/lib directory or as .class file in the path
WEB-INF/classes/jsp/dbControl/ConnectionBean.class?
ram.

Similar Messages

  • What is the diffrence between a javabean and  EJB

    hi!
    what is the diffrence between a javabean and entreprise jvaabeans! i mean which are the uitilization featires of eaxh one !

    i am seeking for a solution for my problem , in fact i ma trying to implement and develop an application with java that allows a certain range of IP adresses to be connected to a database server in order to extract the suitable data from the server .
    let me explain mor ethe suitation , in fact what i am loking for is to use javabeans to grant my application much more consistence and pertinence : si i am asking if it could be possible to use javabeans in my case especially if i am not trying to developp a web application but a cleint /server one allowing some services.
    The application is in fact dealing with a stock exchange market and what i am trying to do is to grant particilar registrated customers to have the informations that they need ( portofolio, currency's status, market indicators, .) also drawing some charts decribing rates, variations, and others specefic financial caracterestics .So , if we consider that this application is not a web application ( no HTTP request and no servers like apache or others ) how it is possible to use javabeans and not EJB to build the application? i mean what could be suitable and preferable to rely on and dvelop to ensure a good java application !!
    if you need more details to help you find the answer for me don't hesitate to answer me back !!
    Someone here gave me that answer
    use RMI to code the services and (Updateable) Value Objects to pass the information between tiers.
    RMI is an all-java distributed component framework (ie. EJB, CORBA, DCE/RPC, DCOM, etc.), that is very suitable for developing non-containerized multi-tier applications. Refer to the RMI trail in the Java Tutorial as a starting point for coding RMI solutions (http://java.sun.com/docs/books/tutorial/index.html). Under this scenario you would code the database access service as an RMI service (server-side). Client/server communication should be facilitated through the use of JavaBeans/classes that wrap the information being passed (customer information, portfolio details, market information, etc.) - these are refered to as 'Updateable Value Objects' (a design pattern). Graphing and charting would be handled in your client from the information received from the (RMI) server. GUI JavaBeans can be used to provide this functionality as well as other client-side services. There are numerous "shrink-wrapped" components for GUIs available on the market just peruse any Java magazine to find them.
    but how comes? how can i do it !! and where can i find more information please about 'Updateable Value Object "
    thanks

  • Problem retrieving javabean instance from request in JSP

    I am using WSAD and I created a javabean called confirmBean in default package which contains two private properties fname, lname and public setters and getters
    In a servlet I placed values in the bean, then placed the bean in a request and then forwarded to confirm.jsp
    confirmBean cb = new confirmBean();
    cb.setFname("testing");
    req.setAttribute("mybean", cb);     
    req.getRequestDispatcher("/confirm.jsp").forward(req,res);
    Here is my JSP, I used java syntax for retrieving javabean:
    <HTML>
    <HEAD>
    <TITLE>confirm.jsp</TITLE>
    </HEAD>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"%>
    <%@ page import="confirmBean"%>
    <BODY>
    <% confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); %>
    <%= myBean.getFname() %>
    </BODY>
    </HTML>
    and here is the error i am getting when executing:
    Error 500: Unable to compile class for JSP c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:3: '.' expected import confirmBean; ^ An error occurred at line: 11 in the jsp file: /confirm.jsp Generated servlet error: c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:78: cannot resolve symbol symbol : class confirmBean location: class org.apache.jsp._confirm confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); ^ An error occurred at line: 11 in the jsp file: /confirm.jsp Generated servlet error: c:\testWorkspace\.metadata\.plugins\com.ibm.etools.server.core\tmp0\cache\localhost\server1\Test\TestWeb.war\_confirm.java:78: cannot resolve symbol symbol : class confirmBean location: class org.apache.jsp._confirm confirmBean myBean = (confirmBean)request.getAttribute("MYBEAN"); ^ 3 errors
    Please help!!!!

    1 - Put your bean in a proper package. As of Java1.4 classes in the default package are not visible :
    http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=c85f07c1ce8f344d787b7a5146d68:WuuT?bug_id=43615752 - As a matter of style, class names should always start with a capital letter. ie ConfirmBean
    3 - Rather than declaring the bean, and retrieving it, from the request manually, have a useBean tag:
    <jsp:useBean id="MYBEAN" class="com.mypackage.ConfirmBean" scope="request"/>
    of course the id has to be the same as the attribute in scope.
    Hope this helps,
    evnafets

  • Problem with JavaBeans in JSP.IT'S URGENT!!!

    Hi, i have problems with JavaBeans in JSP.
    In a jsp file( locating in ROOT directory of tomcat 4.0.6 :jakarta-tomcat-4.0.6\webapps\root ) i have this code:
    <jsp:useBean id="paramBean" class="licentza.ParamBean" />
    <jsp:setProperty name="paramBean"
    property="nume"
              value='<%= request.getParameter("numeUser") %>' />
    where ParamBean it's a "bean" class locating in jakarta-tomcat-4.0.6\webapps\examples\web-inf\classes\licentza (licentza is the package i'm using).
    And i get this error:
    Generated servlet error:
    D:\jakarta-tomcat-4.0.6\work\Standalone\localhost\_\dora\intrare2$jsp.java:67: Class licentza.ParamBean not found.
    ParamBean paramBean = null;
    What is the problem?Thank you.

    Hi,
    Put the class file or the package under :jakarta-tomcat-4.0.6\webapps\root\WEB-INF\classes.
    Rajesh

  • JSP, JavaBeans and iPlanet 4.1-  Unable to load JavaBean

    I get the following error when trying to access a JavaBean from a JSP page. I have tried just about everything including using the <@page import /> in the JSP page.
    I can get it to run perfectly in Tomcat 3.2 but it must run in iPlanet 4.1. I think the solution should be fairly simple I just can't find it.
    Any help would be greatly appreciated.
    Thanks.
    The exception is as follows (thrown on running the generatePage.jsp linked from index.jsp).
    [29/Nov/2001:16:50:23] info ( 1364): Internal Info: loading servlet /TechCom/generatePage.jsp
    [29/Nov/2001:16:50:23] info ( 1364): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to load class JspPageLoader
         at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:97)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:728)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:190)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:159)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:141)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:214)
         at com.netscape.server.http.servlet.NSServletEntity.(NSServletEntity.java:104)
         at com.netscape.server.http.servlet.NSServletRunner.loadServlet(NSServletRunner.java:607)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:357)
    [29/Nov/2001:16:50:23] warning ( 1364): Unable to locate class: D:\Netscape\Server4\docs\TechCom (java.lang.ClassNotFoundException: D:\Netscape\Server4\docs\TechCom)
    [29/Nov/2001:16:50:23] warning ( 1364): Internal error: Failed to load servlet (servlet=/TechCom/generatePage.jsp)

    To solve this problem you have to:
    include <@page import /> tags importing the JavaBean to be used.
    In the classpath of iPlanet include the directory in which your JavaBeans are placed.
    Also in the classpath of iPlanet include the root directory of you web site containing the JSP's. this should then solve the problem.

  • How to use a JavaBean with request scope from one page to other page

    Hi,
    I want to use in one jsp file a javabean with scope of request for it, I use:
       <jsp:useBean id="entry" class="jsps.SaleEntry" scope="request" />and after in that page I make operations with it using the jsp:setProperty and jsp:getProperty operations
    My question is that if I want to get the result of that javabean in the following page, Have I to record the javabean doing : request.setAttribute(""objectId",id) and then in the following jsp page I can rescue the object doing: SaleEntry sE=(SaleEntry) request.getAttribute("objectId") ???
    or in the contrary, only using jsp:setProperty the information is available to recover it in the following jsp doing : SaleEntry sE=(SaleEntry) request.getAttribute("objectId") because setProperty records the information without need of doing : request.setAttribute(""objectId",id). ????
    Thanks with anticipation and sorry if it is a silly question but I am beginner in the use of JavaBeans

    Thanks Anthony,
    I'm working with Tigi on the same project and now I can tell you that the problem is solved.
    request.getRequestDisptacher("/myServlet");hehe, you switched the 't' and the 'a'
    <%@ include file="/myServlet" %>this is the one we use :)
    But what is the difference between the first one and the last one? Now We are using the last one because that's the shortest :) not a pretty good reason huh :)
    cheers,
    Soep

  • How can I use a JavaBean in another JavaBean?

    I create a JavaBean named "dbBean.java"
    And I create another JavaBean named "login.java" which want to use the method defined in "dbBean.java".
    Could anyone tell me the syntax of using it?

    compile the .java files into .class files and then they are usable
    from dbBean...
    login myLogin = new login();
    perhaps you want to use it in some script and not java?

  • How to add a javabean Model to a web dynpro Project

    Hi all,
    I have been following the tutorial "Using EJBs in Web Dynpro Applications" for creating a customized LOCAL webdynpro application, based in javabean Model. It was made by just exporting the JAR file from a java project, as it is explained in the tutorial. OK.
    The problem comes when I want to duplicate the development but using a DC Web Dynpro Project. I have re-develop every step of the tutorial but using DC projects:
    DC diccionary project, DC ejb project, DC enterprise application project & DC java project.
    But now I DO NOT KNOW the steps for importing the development into a model for DC Web Dynpro.
    Anyhelp will be very appreciated, thanks in advance-

    Thanks Jhansi,
    Yes, you are right. I had already followed those steps. The error comes when I have to select between the JavaBean Source:
    1. project (source folder) (checkbox)
    2. public parts of used DC's (combobox)
    I have been trying both, the second one by copying first the JAR called CommandBean.jar of my DC Java Project with dependencies to EJB project into the web dynpro "lib" folder, and then selecting the new entry CommandBean.jar from that combobox.
    then i get de following error: "Invalid JAR - No JavaBeans available for import"
    So I do not know how to use any of these two options for java source.
    Thanks.

  • How to get javabean data in Servlets.( JavaBean -- Servlet(Controller)

    how to get javabean data in Servlets.
    1) I am using name ,password in Jsp(View )
    2) when I submit this Bean will be called and Setter methods will be called .
    3) In ServletController (controller) I want to get data of javabean.
    In this I have to do validation of user.
    I want to pass the javabean obj as like -->
    request.getAttribute("beanObj");
    My intention is to get all the poperties in javabean by passing bean id
    or beanobj ,
    Is there any way to get all the data using bean id or beanObj.
    Plz Reply,

    Now in the Servlet we can get the same bean by this code:
    PageContext pageContext = JspFactoryImpl.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
    UserBean userbean = (UserBean)pageContext.getAttribute("userbean", PageContext.SESSION_SCOPE);
    String userid = userbean.getUsername();
    For this code to work it is needed to import 2 files:
    import org.apache.jasper.runtime.JspFactoryImpl;
    import javax.servlet.jsp.PageContext;
    The JspFactoryImpl is in jasper-runtime.jar file provided in tomcat dir.It seems to me that you are exactly knowing what you are doing :-(
    You can get a Bean stored in a Session by
    request.getSession().getAttribute("userbean");
    In the login.jsp page for example we have the code
    <jsp:useBean id="userbean" scope="session"class="com.newproj.UserBean" />
    <jsp:setProperty name="userbean" property="*" />the jsp:setProperty is not called when you click on the submit button
    if fills the bean with the request values from the previous request.
    andi

  • How to retrieve data from a JavaBean DataControl

    I created a JavaBean and made a DataControl from it. It is shown in Data Control Pallte.
    I can get the DCDataControl obj in DataAction. But I failed to retrive the attribute using get(String) method.
    I read the help doc. I am not able to find a method to do it. It should not be difficult. Please advise the correct method.
    Thanks!

    can u please explain what exactly ur doing and what exactly ur looking for so that i can suggest u some thing as i have worked a bit with java beans..
    thanks
    venkat

  • Javabean connection in Forms 10G

    I am devolopping in Forms 10G and I want to connect to an informix database and execute on some queries.
    A syou now ther is no odbc connection in Oraclae > 9i to others databases.
    If someone has already Write a JDBC connection from Forms 10g to Informix, or a JavaBean to Implement this connection, Can You please Hep me.
    It's Urgent
    best regards

    Oracle Generic Connectivity and Transparent Gateways
    Oracle offers two asychronous solutions for information integration: Oracle Generic Connectivity and Oracle Transparent Gateways. Generic connectivity addresses the needs of data access to many data stores for which Oracle does not have a gateway solution. This feature enables transparent connectivity using ODBC. Oracle Transparent Gateways provide the flexibility, power, and scalability to transparently access many non-Oracle data stores, including DB2, Informix, Microsoft SQL Server, Ingres and Sybase, from an Oracle environment.
    There is all you want to connect, via an Oracle database, to your informix database.
    Francois

  • Need step-by-step help on how to set up javabean on form6i

    I create a form to be run on the web,winnt server, database 8.1.7 on sun.
    I need to set up a javabean on forms6i to allow users to output their file (delimited text file) to their local pc. I used TEXT_IO it works ok but the output file is saved on the server site not on the client pc. I've completed created a javabean program called TextPJC.jar and included it on ARCHIVE tag on formsweb.cfg file when I run my form it's ok.
    On my form I have a field V_FILE_NAME (combo Box/List Item) to allow user to enter the file name, then press the button to create the file(on user's PC).this is my by WWHEN-BUTTON_PRESSED coding:
    DECLARE
    v_line VARCHAR2(2000);
    button NUMBER;
    button2 NUMBER;
    v_file_name VARCHAR2(255);
    v_prompt TEXT_IO.FILE_TYPE;
    C_EIN_NMBR C.test6.CASE_PENPLN_EIN_NMBR%TYPE;
    v_ein_count NUMBER;
    ex_ein_notmatch EXCEPTION;
    ALERT_FILE_GENERATED NUMBER;
    CURSOR cur_test IS
    SELECT
    to_char(C_EIN_NMBR)&#0124; &#0124;'!'&#0124; &#0124;
    to_char(C_OPEN_DATE)&#0124; &#0124;'!'&#0124; &#0124;
    to_char(C_CLOSE_DATE)&#0124; &#0124;'+++'
    FROM C.test
    WHERE C_EIN_NMBR = :STPROMPT.EIN;
    BEGIN
    -- checking if output file name field is null or not
    IF :STPROMPT.V_FILE_NAME IS NULL
    THEN button := SHOW_ALERT('ALERT_MISSING_PATH');
    IF BUTTON = ALERT_BUTTON1
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    GO_item(':stprompt.V_FILE_NAME');
    END IF;
    ELSIF :STPROMPT.EIN IS NULL
    THEN button := SHOW_ALERT('ALERT_NO_EIN');
    ELSIF :STPROMPT.EIN IS NOT NULL
    THEN
    BEGIN
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'BUSY');
    SELECT COUNT(DISTINCT(C_EIN_NMBR))
    INTO v_ein_count
    FROM C.STPROMPT
    WHERE C_EIN_NMBR C_EIN_NMBR = :STPROMPT.EIN;
    IF v_ein_count = 0
    THEN RAISE ex_ein_notmatch;
    ELSE
    v_file_name := :STPROMPT.V_FILE_NAME;
    v_prompt := TEXT_IO.FOPEN(v_file_name, 'W');
    TEXT_IO.PUT_LINE(v_prompt,
    to_char(P_EIN_NMBR)&#0124; &#0124;'!'&#0124; &#0124;
    to_char(P_OPEN_DATE)&#0124; &#0124;'!'&#0124; &#0124;
    to_char(P_CLOSE_DATE)&#0124; &#0124;'+++'
    OPEN cur_testl6;
    LOOP
    FETCH cur_testl6
    INTO v_line;
    EXIT WHEN cur_testl6%NOTFOUND;
    TEXT_IO.PUT_LINE(v_prompt, v_line);
    END LOOP;
    CLOSE cur_testl6;
    TEXT_IO.FCLOSE(v_prompt);
    SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    -- Confirms when textfile is created.
    ALERT_FILE_GENERATED := SHOW_ALERT('TEXTFILE_GENERATED');
    IF ALERT_FILE_GENERATED = ALERT_BUTTON1
    THEN GO_BLOCK('stprompt');
    END IF;
    END IF;
    END;
    END IF;
    EXCEPTION
    WHEN ex_ein_notmatch
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    button2 := SHOW_ALERT('ALERT_NO_EIN_EXIST');
    IF button2 = ALERT_BUTTON1
    THEN go_block('stprompt');
    END IF;
    -- takes care of other exceptions such as misspelled/non-existing output file directories/path
    WHEN others
    THEN SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
    button := SHOW_ALERT('ALERT_TYPO');
    IF button = ALERT_BUTTON1
    THEN go_block('stprompt');
    END IF;
    END;
    Now I want to know how to setup javabean on forms so that I can make my form work it way it should work. Please help.

    you can get samples of using javabeans in forms in the form section of the otn.
    but let me suggest something that might be simpler.
    create the file on the server and then use:
    web.show_document('url of file on server');
    this will cause the file to download to the client.

  • How to access session in javabean?

    I want to access session in javabean,how can I do?

    Have something that CAN access the session pass whatever it is the bean needs to know into the bean via a setter method.

  • Error while deploying entity javabean (CMP)

    Hello,
    I have a problem while I'm trying to deploy an entity javabean (with container managed persistance). I'm using JDeveloper 3.2.3 and 8.1.7.2 database.
    Here is the error I get:
    *** Executing deployment profile E:\Xaris\JDeveloper\General\EJBs\EmpCmp\EmpCmp.prf ***
    *** Generating archive file E:\Xaris\JDeveloper\General\EJBs\EmpCmp\empcmp.jar ***
    Compiling the project...done
    Validating the profile...done
    Initializing deployment...done
    Scanning project files...done
    Generating classpath dependencies...done
    Generating archive entries table...done
    *** Archive generation completed ***
    *** Deploying the EJB to 8i JVM ***
    EJB deployment argument list:
    "E:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\jre\bin\javaw"
    "-DPATH=E:\Program Files\Oracle\JDeveloper 3.2.3\bin;E:\Program Files\Oracle\JDeveloper 3.2.3\java1.2\bin"
    -classpath
    "E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\lib\javax-ssl-1_2.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\jasper.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\aurora.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\sqlj\lib\translator.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\sqlj\lib\runtime.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\aurora\lib\mts.jar;E:\Xaris\JDeveloper\General\EJBs\EmpCmp\classes;E:\Program Files\Oracle\JDeveloper 3.2.3\lib\jdev-rt.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\lib\connectionmanager.zip;E:\Program Files\Oracle\JDeveloper 3.2.3\lib\javax_ejb.zip;C:\Program Fil
    s\JavaSoft\JRE\1.3.1\lib\i18n.jar;C:\Program Files\JavaSoft\JRE\1.3.1\lib\jaws.jar;C:\Program Files\JavaSoft\JRE\1.3.1\lib\rt.jar;C:\Program Files\JavaSoft\JRE\1.3.1\lib\sunrsasign.jar;E:\Program Files\Oracle\JDeveloper 3.2.3\lib\xmlparserv2.jar"
    oracle.aurora.ejb.deployment.GenerateEjb
    -u
    harris
    -p
    harris
    -s
    sess_iiop://192.168.10.218:2481:WORK
    -keep
    -temp
    TEMP
    -descriptor
    "E:\Xaris\JDeveloper\General\EJBs\EmpCmp\EmpCmp.xml"
    -oracledescriptor
    E:\Xaris\JDeveloper\General\EJBs\EmpCmp\EmpCmp_oracle.xml
    -generated
    "E:\Xaris\JDeveloper\General\EJBs\EmpCmp\EmpCmpClient.jar"
    "E:\Xaris\JDeveloper\General\EJBs\EmpCmp\empcmp.jar"
    Reading Deployment Descriptor...done
    Verifying Deployment Descriptor...done
    Gathering users...done
    Processing container managed persistence bean...done
    Generating Comm Stubs.............................................done
    Compiling Stubs...done
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...done
    Generating EJBHome and EJBObject on the server...
    An exception occurred during code generation: null
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    Can anyone help me understand where is the error?
    Thanks in advance,
    Charalampos

    Volker,
    Let me try again (in the hope that this time you will understand
    what I am saying).
    "database embedded EJB container" and "EJB" are not the same thing.We are a little bit further in technology, so that we have no single Engine, single
    Processor Systems any more.
    Distribution over many computers (RAC) is done by Visigenic ORB (9i) or OC4J.
    EJB Framework is for distribution of Business Logic or in your words of
    Database Logic.
    Oracle is abandoning the "database embedded EJB container".
    Oracle is not abandoning EJB.Please step into technology and make a comparison of Java Stored
    Procedures, look at the native compiler ncomp and try to figure out which
    classes are important for Server Side software development.
    Oracle recommends using OC4J as the EJB container.
    Here is a recent post (from an Oracle employee and regular forum
    participant) from the J2EE forum:
    High number of http 404 errors from webcache
    Here is a quote from that post:
    starting from Oracle9i Release 2 Database EJBs are going to be desupported from database. EJBs can only be deployed in OC4J component of Oracle9iASAs far as I can see, it makes no sense to do that step.
    I beleave, that this decision is very very short lived.
    Unfortunately, my German is very poor -- I can only try to explainYou are right, I am a German.
    things to you in English. Hopefully (if you are still not comprehending
    what I am saying), some kind soul (who must have a better levelAmerican english is for everyone.
    of reading and comprehension in English than you) will explain it
    to you in your native tongue.I have understood, what you said!
    So let me summarize:
    Oracle is abandoning the database embedded EJB container.I don't beleave that! Is that OK!
    By the way, something may have gotten lost in the translation, or
    this may be just another example of your comprehension problem, but
    what is the connection between the TowerJ JVM and the Oracle databasencomp has the same architecture as TowerJ native Compiler.
    Ok?
    embedded EJB container?
    The very best of luck to you,Thanks a lot!
    Avi +Volker!

  • Getting error while passing implicit request object from JSP to JavaBean

    Hi,
    I am getting error while passing implicit object ie( request object)
    from within JSP to JavaBean.
    Following is source for JSP, JavaBean and Error message I am getting.
    vaLookup.jsp Source
    <jsp:useBean id="db" class="advisorinsight.javabeans.DisplayPages"
    scope="request">
    <jsp:setProperty name="db" property="request" value="<%= request %>"
    />
    </jsp:useBean>
    <jsp:getProperty name="db" property="totalrecords" />
    JAVABEAN DisplayPages.java source
    package javabeans;
    import java.io.Serializable;
    import javax.servlet.http.HttpServletRequest;
    public final class DisplayPages implements Serializable {
    private String totalrecords;
    private HttpServletRequest request;
    public void setRequest(HttpServletRequest req){
    this.request = req;
    public java.lang.String getTotalrecords()
    this.totalrecords =
    this.request.getParameter("totalrecords");
    return this.totalrecords;
    public DisplayPages(){
    totalrecords = "";
    request = null;
    error after executing vaLookup.jsp
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service JavaExtData successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service LockManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
    service RLOPManager successfully loaded
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:5] info: REQ-012: thread add
    [30/Nov/2001 11:56:04:7] info: ENGINE-ready: ready: 10819
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:46:0] info: JSPRunnerSticky: init
    [30/Nov/2001 11:56:46:0] info: --------------------------------------
    [30/Nov/2001 11:56:51:7] error: Exception: SERVLET-compile_failed:
    Failed in compiling template: /va/valookup.jsp, javac error:
    c:\iplanet\ias6\ias\APPS\variabl
    S\va\valookup.java:76: Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    Exception Stack Trace:
    java.lang.Exception: javac error:
    c:\iplanet\ias6\ias\APPS\variableannuity\va\WEB-INF\compiled_jsp\jsp\APPS\va\valookup.java:76:
    Undefined variable: JSP_8
    db.setRequest(_JSP__8);
    ^
    1 error
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown
    Source)
    at
    com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown
    Source)
    at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
    Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at
    com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
    Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)

    The only thing that I see that looks funny to me is when you pass the request object into the method using <%=request%>, Im not sure whats going to happen here because that is suppose to print the results. Have you tried simply using <%request%>?

  • Cannot unmarshal an XML document to a JavaBean without its XML Schema?

    Hi,
    2 questions:
    1. I have an XML document and have the corresponding JavaBean (the 2 already exist). I tried to unmarshall the XML document using JAXB but I get a strange error of duplicate attributes/elements no matter if I use the annotations @XmlElement, @XmlAttribute etc. The code I use is simply:
    JAXBContext jc = JAXBContext.newInstance("MyClass.class");
    Unmarshaller u = jc.createUnmarshaller();
    MyClass myClass = (MyClass) u.unmarshal(new File("myxml.xml"));Do I always have to create the .xsd file of my xml, create the JavaBean using xjc and then run the above?
    2. Can I use JAXB to parse an XML file to a JavaBean but, because the xml file is a complicated one, to use xpaths to get the attributes?
    E.g. to use something like this?
    @XmlAttribute ("xpath/to/attribute")Thank you in advance for your replies.
    Best regards,
    John.

    Hi,
    2 questions:
    1. I have an XML document and have the corresponding JavaBean (the 2 already exist). I tried to unmarshall the XML document using JAXB but I get a strange error of duplicate attributes/elements no matter if I use the annotations @XmlElement, @XmlAttribute etc. The code I use is simply:
    JAXBContext jc = JAXBContext.newInstance("MyClass.class");
    Unmarshaller u = jc.createUnmarshaller();
    MyClass myClass = (MyClass) u.unmarshal(new File("myxml.xml"));Do I always have to create the .xsd file of my xml, create the JavaBean using xjc and then run the above?
    2. Can I use JAXB to parse an XML file to a JavaBean but, because the xml file is a complicated one, to use xpaths to get the attributes?
    E.g. to use something like this?
    @XmlAttribute ("xpath/to/attribute")Thank you in advance for your replies.
    Best regards,
    John.

Maybe you are looking for

  • Receiver Determination error in Xpath

    In   receiver determination step,  I am specifying two condition check. The problem is that XI server is checking the second condition ahead of the first condition. Eg: I have a structure like Record in the input file: Record:    Field1    Field2   

  • ALV Graphs: How to set line type graph as default graph

    Hi All, I need to develop a line graph. The fields on the X-axis will change dynamically. Some times they may be 10 field and some times they may be more than 100 fields. I tried with Function Module GFW_PRES_SHOW_MULT. But I can only display maximum

  • Lost Installation CD

    I have a client who had recently purchased Adobe Acrobat 9.0 Standard.  He received a new computer, and needs to have this program installed onto his new PC.  Unfortunately, due to an office move recently, they are unable to find the installation CD'

  • Deleting Microsoft Outlook Files off of my Mac.

    Hi, I made the unfortunate decision to install Office on my Mac, and I deleted it off.  Now, there is 50 gigs of something still left on my Mac, from when I used Outlook.  I can not find this folder and data, and I want to delete it immediately to fr

  • Not enough space at iCloud

    I can not make a back up copy at iCloud because system said that is not space enough, but the information at the IPad said that is free space available. Any help with this?