Problem in creating a CMP bean with MySql

Hi,
I am using lomboz eclipse, jboss 4.0.2, xdoclet 1.2.3 & DB as MySql 5.0. I am encountering a very strange problem when I try to create a CMP with MySql as DB. After entering relevant information about the datasource & testing the connection & finding it to be successful, I get the error in lomboz eclipse as : CMP has no attributes. Moreover, I donot even get the table names from the schema, that was given in the datasource, with which the mapping of my CMP will be done.
I tried using Oracle 9i. But to my wonder, I didnot experience this issue, as it gave me all the CMP atttributes mapped & also created the CMP with Oracle DB. Can anyone help me in getting this issue resloved with MySql DB?

Yeah, the DB User permissions are found to be ok, as the test connection was successfull. I have tried for MySql 4.1 & Myql 5.0, with their respective jars & driver classes. But the result was same. Test connection is successful, but when i hit the next button to see the CMP attributes, it doesnot give me the list of tables under that schema & says that CMP has no attributes. Please help.

Similar Messages

  • Creating&deploing CMP bean step by step

    Hi!
    Anybody can explain subj process? Is it possible to create CMP bean in ORACLE without BC4J?
    I create simple CMP bean by withard but it's dosn't work.
    System Error: java.lang.ClassNotFoundException: oracle.jbo.DMLException
    System Error: java.lang.Object java.io.ObjectInputStream.readObject(boolean) (ObjectInputStream.java:468)
    System Error: java.lang.Object java.io.ObjectInputStream.readObject() (ObjectInputStream.java:232)
    System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:60)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
    System Output: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0
    System Error: org.omg.CORBA.MARSHAL: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0 minor code: 0 completed: No
    System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:70)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
    System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
    Mike

    In JDeveloper3.2 , BC4J is used as persistence layer for CMP entity beans.
    BC4J with its advanced O-R Mappings, Validations, Domains, Forward Generation, Flexibility and ease of use provides a powerful solution to build simple to very complex Container Managed Entity Beans.
    check out the demo scripts available on technet http://technet.oracle.com/products/jdev/htdocs/fullcmpdemo/cmpdemo.html http://technet.oracle.com/products/jdev/htdocs/cmpdemo2/cmpdemo2.html
    we will have a white paper on CMP available soon on technet which will talk about the advanced features.
    raghu
    null

  • Running a CMP EJB with MySql DB Connection Problem

    I have created a CMP EJB in JDev connecting to a MySql table. I am able to see the connection in JDev just fine (everything is correctly configured for MySql). However, when I try to run it in the Embedded OC4J Server I get the following error:
    ****************************** Start of message output *************************************
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDev9i\jdk\bin\javaw.exe -ojvm -classpath C:\JDev9i\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\JDev9i\jdev\system\oc4j-config\server.xml
    Error instantiating application at file:/C:/JDeveloper/jdev/system/oc4j-config/applications/bc4j.ear: Unable to find/read assembly info for C:\JDeveloper\jdev\system\oc4j-config\applications/bc4j (IO error: unable to find bc4j)
    Error initializing data-source 'jdbc/MySqlCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found
    Copying default deployment descriptor from archive at F:\JavaProjects\Questionaire\QuestionsEJB\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDev9i\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/F:/JavaProjects/Questionaire/QuestionsEJB/classes/ (No previous deployment found)... SQL error: No suitable driver
    Warning: Error creating table: No suitable driver
    done.
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    ************************ End of message output ************************************
    I have updated the data-sources.xml to include the datasource:
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="MySqlDS"
              location="jdbc/MySqlCoreDS"
              xa-location="jdbc/xa/MySqlXADS"
              ejb-location="jdbc/MySqlDS"
              connection-driver="org.gjt.mm.mysql.Driver"
              username="root"
              password="yes"
              url="jdbc:mysql://localhost:3306/questionaire?ultradevhack=true"
              inactivity-timeout="30"
         />
    What else to I need to do to get this working?
    Thanks,
    Karl

    I have created a CMP EJB in JDev connecting to a MySql table. I am able to see the connection in JDev just fine (everything is correctly configured for MySql). However, when I try to run it in the Embedded OC4J Server I get the following error:
    Error initializing data-source 'jdbc/MySqlCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not foundMake sure that you create a Library in JDeveloper containing the MySQL JAR files and add this library to your project before launching starting the embedded OC4J instance.
    Rob

  • Problem in creating client side PDF with image using flex and AlivePD

    I need a favor I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.
    Thanks in advance
    Atishay

    I am having a similar and more serious problem. It takes a
    long time to execute, but even attaching a small image balloons the
    pdf to 6MB plus. After a few images it gets up to 20MB. These are
    100k jpeg files being attached. The resulting PDF is too large to
    email or process effectively. Does anyone know how to reduce
    size/processing?

  • Problem when creating a sales order with reference by BAPI

    I am facing one problem when creating Sales Order.
    <b>The scenario is like this while creating SO With reference to an Order type, a new SO will be automatically created with a diff order Type</b>.
    I am using "BAPI_SALESORDER_CREATEFROMDAT2".
    I am calling this BAPI in USEREXIT_REFRESH_DOCUMENT.
    Am I using the right exit to call this Bapi ?
    <b>Problems are like :
    1. Ref Sales Order creating without Sales Unit .
    2. "Object Status does not exist" error msg is coming for Header and Item level(when clicking the status tab and then object status pushbutton).</b> But if testing the bapi from SE37 in test sequence....no such problem persists.
    As for example in case of sales unit,in the debugging mode i have seen that BAPI uses a perform to fill the values in the VBAP structure.But after that when it come back to the main program VBAP remains blank.This ocuurs when the BAPI is called from the exit whereas  if tested from SE37, VBAP retains the value.
    Can u suggest in this ? This is very very urgent............
    Thx in Adv.........................

    Thanks........
    Your suggestion was a great help to me.I have used a custom FM and called it in <b>starting new task</b>.
    Since i am a university fresher working in SAP for nearly 1 year.....can you please explain me the difference between <b>in update task</b> and <b>starting new task</b>.Why the problem was occuring for which you have suggested to call a custom function module.
    what is V1 update and V2 update?Is it attached with asynchronous ans synchronous update.It would be a great help to me if you kindly clear my confusions....
    thanks in advance.

  • Exception - Deploying CMP bean with Postgres DB

    Hi,
    When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
    <Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
    t:
    Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
    Exception: 'java.lang.NullPointerException' while trying to invoke: setB
    eanParamsForCreate at line 25
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    <Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
    .\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
    Exception>
    Thankx,
    Jagan

    Hi. This isn't a jdbc question, so you'll have better luck posting this to the ejb group.
    Joe
    Jagan wrote:
    Hi,
    When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
    <Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
    t:
    Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
    Exception: 'java.lang.NullPointerException' while trying to invoke: setB
    eanParamsForCreate at line 25
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    <Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
    .\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
    Exception>
    Thankx,
    Jagan

  • Create a simple connection with mysql

    hello
    my name is edvanio i am from brazil.
    i'd like to connect one program in Java with mysql for insert, delete and update one simple base ex. teste with nome and fone.
    thank , bye

    here's a couple of sites
    http://www.javacoding.net/articles/technical/java-mysql.html
    http://www.developer.com/java/data/article.php/3417381
    I recently installed MySQL (just to see if I could get a working program to run)
    these were the steps
    1. downloaded MySQL
    2. downloaded the connector file
    3. unzipped/installed MySQL
    4. unzipped the connector file
    mysql-connector-java-3.0.17-ga-bin.jar
    copied the jar file into this directory
    C:\Program Files\Java\jdk1.5.0_03\jre\lib\ext
    5. opened MySQL, using the code from Gamelan
    create the db JunkDB
    created the user, permissions, password
    6. combined the code from both sites (code follows)
    and it worked OK
    import java.sql.*;
    class MySQL_Test
      public MySQL_Test() throws Exception
        testDriver();
        Connection con = getConnection();
        executeUpdate(con,"CREATE TABLE test(id int,text varchar(20))");
        executeUpdate(con,"insert into test(id,text) values (1,'first entry')");
        executeUpdate(con,"insert into test(id,text) values (2,'second entry')");
        executeUpdate(con,"insert into test(id,text) values (3,'third entry')");
        executeQuery(con,"select * from test");
        executeUpdate(con,"drop table test");
        con.close();
      protected void testDriver() throws Exception
        try
          Class.forName("com.mysql.jdbc.Driver");
          System.out.println("MySQL Driver found");
        catch(ClassNotFoundException cnfe)
          System.out.println("OOPs - MySQL Driver nowhere to be found");
          throw (cnfe);
      protected Connection getConnection() throws Exception
        String url = "";
        try
          url = "jdbc:mysql://localhost:3306/JunkDB";
          Connection con = DriverManager.getConnection(url,"auser","drowssap");
          System.out.println("Connection OK");
          return con;
        catch(SQLException sqle)
          System.out.println("OOPs - No Connection");
          throw (sqle);
      protected void executeUpdate(Connection con,String sqlStatement) throws Exception
        try
          Statement s = con.createStatement();
          s.execute(sqlStatement);
          s.close();
        catch(SQLException sqle)
          System.out.println("OOPs - error executing statement");
          throw (sqle);
      protected void executeQuery(Connection con,String sqlStatement) throws Exception
        try
          Statement s = con.createStatement();
          ResultSet rs = s.executeQuery(sqlStatement);
          while(rs.next())
            String id = (rs.getObject("id").toString());
            String text = (rs.getObject("text").toString());
            System.out.println("Found record "+id+" "+text);
          rs.close();
        catch(SQLException sqle)
          System.out.println("OOPs - error executing resultset");
          throw (sqle);
      public static void main(String[] args)
        try
          new MySQL_Test();
        catch(Exception e){e.printStackTrace();}
    }

  • Problem in creating a generic datasource with infoset

    Dear Expert,
      I have to create a generic datasource with infoset. I linked the infoset with a test program below. In the program, I have one selection option, which is s_order. After creating an infoset and a datasource, this selection option 'SELECT_S_ORDER' is added to my extract structure. However, after try filtering with this SELECT_S_ORDER, it doesn't filter data at all. Why? I want to filter data with my s_order.
    REPORT  ZBI_DS_TEST.
      tables: vbak.
    * DATA
      field-symbols: <vbak>  type vbak.
      data:   t_vbak      type table of vbak,
                w_vbak     type vbak,
                t_vbak2    type table of vbak,
                w_vbak2    type vbak.
    * SELECT-OPTIONS
      selection-screen begin of block b1 with frame title text-001.
        select-options:  s_order   for  vbak-vbeln.
      selection-screen end of block b1.
        start-of-selection.
    * <Query_head>
       perform sub_select_data.
       loop at t_vbak into w_vbak2.
         move-corresponding w_vbak2 to vbak.
    * <Query_body>
       endloop.
    *&      Form  sub_select_data
    *      Select data
    FORM sub_select_data .
        select *
        into    table t_vbak
        from   vbak
        where vtweg = 'IP'.
    ENDFORM.                    " sub_select_data

    What do you mean by linking program with infoset?
    Do you get the field in your RSA3 Tcode?

  • Problem with CMP bean and MySQL: please help me!!!

    Hi,
    I am using J2EE Sun server 1.3 and Mysql 4.0 database with its MySQL Connector/J 3.0.
    The driver connection to the database is fine since "Generate Default SQL" in deploytool gives "SQL generation complete".
    However, I can't have a simple row with one text field called test being created in my mysql table called test.
    Of course , the mysql server is started and the test table set for use.
    Here is my code (I try to access my database from a servlet using a CMP Entity bean):
    try{
    Context initial = new InitialContext();
    Object objref = initial.lookup(EntityHome.JNDI_NAME);
    EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);     
    Entity test= home.create("zob");               
    /*EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);     
    catch (Exception ex){                                                                out.println("exception message : " + ex.getMessage()+"</body></html>");}
    I get the following exception message :
    RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"; nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"
    I would be very grateful for help since I have a close deadline for this!!!!!!!!
    Thank you very much in advance dear java experts!!!!!!!
                                       

    Hallo
    I have the same problem and the same configuration.
    Do you have a solution for this problem ??
    Thanks
    Georg

  • How do I create an Entity Bean with unknown primary keys

    Hi,
    Can a good folk help me.
    I am mapping an entity bean to an oracle table for the purpose of logging . I do not need a primary key contraint on this table. How do I specify in my entity bean file descriptor not to use any field for primary key ...
    I have done this so far...
    in my ejb.xml file - I set....
    <prim-key-class>java.lang.Object</prim-key-class>
    and deleted ....
    <primkey-field>...</primkey-field>
    My table structure is .....
    CREATE TABLE FAMS_REQUEST_LOG (
    EDITEDBY VARCHAR2(20),
    OLDTRANSDATE DATE,
    REQUESTID VARCHAR2(30) NOT NULL,
    OLDQTY NUMBER(20),
    NEWQTY NUMBER(20),
    NEWTRANSDATE DATE)
    but I still get this error message on deploying...
    [#|2006-03-01T14:30:29.250+0100|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=19;|Total Deployment Time: 11000 msec, Total EJB Compiler Module Time: 0 msec, Portion spent EJB Compiling: 0%|#]
    [#|2006-03-01T14:30:29.265+0100|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.tools.deployment|_ThreadID=19;|Exception occured in J2EEC Phase
    com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- JDO74046: JDOCodeGenerator: Caught a MappingConversionException loading or creating mapping model for application 'fixassetenterpriseapp' module 'FixAssetEnterpriseApp-EJBModule': JDO71030: There is no column in table FAMS_REQUEST_LOG which can be used to support the servers implementation of unknown key classes.
    at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:274)
    at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:615)
    at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563)
    at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:340)
    at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209)
    at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:284)
    at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:176)
    at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:107)
    at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146)
    at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:188)
    at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:520)
    at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143)
    at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    |#]
    Dotun

    you will have to create a sequence and a trigger
    CREATE SEQUENCE <SEQUENCE NAME>
    INCREMENT BY  1
    START WITH  1
    NOCACHE
    /this sequence will guarantee that each requested number is unique
    the trigger will select from this sequence and insert the obtained value in the new record
    CREATE OR REPLACE TRIGGER <TRIGGER NAME>
    BEFORE INSERT ON <TABLE NAME>
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
        BEGIN
            select
                <SEQUENCE NAME>.nextval
            into
                :NEW.<COLUMN NAME>
            from
                dual;
        END;
    [/CODE]
    this will always take the value from the sequence, even if you already provided a value yourself
    (otherwise you will first have to test if :NEW.<column name> is null, but I wouldn't do this for a key column.
    if you need the generated key back for further processing (inserting it into a child table for example), you can use the returning clause on the insert statement
    see the oracle documentation for more information about sequences, triggers and the returning clause
    greetings
    Freek D
    I am new to Oracle and need to know how to create a table that uses an automatic incrementation on a primay key for it's default. I need the uniqueness automatically managed by the DBMS.. This activity is know as setting the Column (primary key with identity) in Ms-SQL..
    Your help would be appreciated greatly....
    Thanks....

  • Problem in creating a Regular Expression with gnu

    Hi All,
    iam trying to create a regular expression using gnu package api..
    gnu.regex.RE;
    i need to validate the browser's(MSIE) userAgent through my regular expression
    userAgent is like :First one ==> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    i wrote an regular expression like this:
    Mozilla.*(.*)\\s*(.*)compatible;\\s*MSIE(.*)\\s*(.*)([0-9]\\.[0-9])(.*);\\s*(.*)Windows(.*)\\s*NT(.*)\\s*5.0(.*)
    Actaully this is validating my userAgent and returns true, my problem is, it is returning true if userAgent is having more words at the end after Windows NT 5.0 like Second One ==> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Testing
    i want the regularExpression pattern to validate the First one and return true for it, and has to return false for the Second one..
    my code is:
    import gnu.regexp.*;
    import gnu.regexp.REException;
    public class TestRegexp
    public static boolean getUserAgentDetails(String userAgent)
         boolean isvalid = false;
         RE regexp = new RE("Mozilla.*(.*)\\s*(.*)compatible;\\s*MSIE(.*)\\s*(.*)([0-9]\\.[0-9])(.*);\\s*(.*)Windows(.*)\\s*NT(.*)\\s*5.0(.*)");
         isvalid = regexp.isMatch(userAgent);
         return isvalid;
    public static void main(String a[])
         String userAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)";
         boolean regoutput = getUserAgentDetails(userAgent);
         System.out.println("***** regoutput is ****** " + regoutput);
    }please help me in solving this..
    Thanks in Advance..
    thanx,
    krishna

    Ofcourse, i can do comparision with simple string matching..
    but problem is the userAgent that i want to support is for all the MSIE versions ranging from 5.0 onwards, so there will the version difference of IE like MSIE 6.0..! or MSIE 5.5 some thing like that..
    any ways i will try with StringTokenizer once..!
    seems that will do my work..
    Thanks,
    krishna

  • Have problems to create lagacy data (AS91) with asset that purchase in 2010

    Dear All Experts,
    I have some problems when I try to create lagacy data via AS91 but it's not allow me to post acquisition value and accumulate depreciation into asset that have capitalize date on this year (30.09.2010)   Could anyone please tell me Did I do anything wrong in config ?or Should I change the year in capitalize date to the past and then takeover value after that edit capitalize date again by AS02.
    Thank you in advance.
    Best regards,
    Utarat.P

    Dear Utarat,
    I agree with colleagues:
    If you make a legacy data transfer during the year you can't enter   kum. values. You have to press the button transactions and enter  here the transactions from  previous system.                              
    Please also check:                                                                        
    CU: FI-AA:                                                                
    - Asset Data Transfer                                                     
      -Parameters for Data Transfer                                           
       - Date Specifications                                                  
         - Specify Transfer Date/Last Closed Fiscal Year                      
         - Specify Last Period Posted in Prv.System (Transf.During FY)   
    Regards Bernhard

  • Problem Binding Parent Taskflow's Bean with Included Page's UI component

    Hi,
    I am using JDev 11.1.1.5.
    I would like to ask *2* things:
    Number 1
    I have a Parent page (parentPage.jsff) which is inside the taskflow (parentTaskFlow). parentTaskFlow has a managed bean (ParentBean.java) with BackingBean Scope.
    Inside the parentPage.jsff, a child page (childPage.jsff) is included using Dynamic Declarative Component. +*<af:declarativeComponent viewId="/childFragments/childPage.jsff" id="dc1"/>*+
    When I tried to bind a ui component from childPage.jsff to ParentBean, it is returning null for this component.
    Could you please help me with this issue? Thanks.
    Number 2
    The other important thing that I want to know is that when a page fragment (jsff) is included with Dynamic Declarative Component, Is the PageDef of that page fragment is the same as that of parent page or not? Please explain me about this also.
    Thanks & Regards,
    cmoster

    Hi Frank,
    Thanks for your explanation.
    For Number 1
    I will explain you the problem in detail:
    As I mentioned in my previous post, I tried to bind a ui component from childPage.jsff to ParentBean.
    In parentPage.jsff, there is a commandButton whose actionListener is bound to backing bean method. And inside this actionListener method, the binding for ui component is Null. That's the problem I'm facing. When I debug, the setter of the ui component is run. But in actionListener method, it returns null.
    I made another test. In childPage.jsff, there is a commandButton whose actionListener is bound to backing bean method. But inside this actionListener method, the binding for ui component is NOT Null.
    Can you help me with this issue? Thanks a lot.
    Best Regards,
    cmoster

  • Problem while creating instance of bean in jsp

    have created a bean ConnBean in package ask. I am using apache tomcat 4.0.1 as a web server.
    The ask folder is in webapps/WEB-INF/classes as well as in webapps/Root/WEB_INF/classes and in ask folder ConnBean.class is stored.
    Url for jsp is webapps/Root/jdbc.jsp
    In jsp file the tag used is <jsp.useBean id="conn" class="ask.ConnBean" />
    when jsp is executed web server shows error as following
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 10 in the jsp file: /jdbc.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\_\jdbc$jsp.java:75: Class ask.ConnBean not found.
    ask.ConnBean conn = null;
    ^
    An error occurred at line: 10 in the jsp file: /jdbc.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\_\jdbc$jsp.java:78: Class ask.ConnBean not found.
    conn= (ask.ConnBean)
    ^
    An error occurred at line: 10 in the jsp file: /jdbc.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\_\jdbc$jsp.java:83: Class ask.ConnBean not found.
    conn = (ask.ConnBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ask.ConnBean");
    ^
    3 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
    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:201)
    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.StandardContext.invoke(StandardContext.java:2344)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    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:462)
    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:163)
    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:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Unknown Source)

    have created a bean ConnBean in package ask. I am
    using apache tomcat 4.0.1 as a web server.
    The ask folder is in webapps/WEB-INF/classes Remove it. This will just cloud the issue.
    as well
    as in webapps/Root/WEB_INF/classes and in ask folderThat should be webapps/ROOT/WEB-INF/classes
    ConnBean.class is stored.
    Url for jsp is webapps/Root/jdbc.jspwebapps/ROOT/jdbc.jsp
    >
    In jsp file the tag used is <jsp.useBean id="conn"
    class="ask.ConnBean" />After making the above changes, see if the error still occurs. Does your ConnBean have a public no args constructor?

  • Problem in creating (and opening) file with FileOutputStream

    Hello,
    I have a (java) program running on a linux server, and when it tries to create a new file, using FileOutputStream, it throws the following exception:
    java.io.FileNotFoundException: /log/log_123.123.123.123_1842_09/03/2008_20:38:04.txt (No such file or directory)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
            at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
            at shop.server.domainlayer.WriterInputProcessor.initialize(WriterInputProcessor.java:155)
            at shop.server.domainlayer.WriterInputProcessor.<init>(WriterInputProcessor.java:64)
            at shop.server.domainlayer.ShopUserDataWriterServer.main(ShopUserDataWriterServer.java:141)I don't understand why it fails, because I have the directory in the server's file system, and I'm trying to create an entirely new file.
    Does anyone have an idea?
    Thank you very much!

    Thanks, the problem was that I had "/" in my file name, so the file system regarded it as a directory separator...

Maybe you are looking for

  • Open Item Clearing IDOC

    Hello, Does anyone know if there's an idoc that can clear open items as you would in a t-code like F-32?  I know of the LOCKBX FINSTA01 idoc, but we don't need the lockbox piece and just want to do a post with clearing. Appreciate the help, Kevin

  • 9800 Pro blind flashing

    I got a ATI Radeon 9800 Pro I would like to flash for my beloved MDD. I know that the procedure is easier using a PC, but I don't have one. I read elsewhere that blind flashing on the mac itself is possible but I can't seem to find a comprehensive tu

  • Problem in manipulation the database

    Hi All, Is it possible to manipulate the database table dierectly using the recordset object or SQL Query. Thanks & Regards Kirti

  • Still Pictures Appear blank

    I am using imovie HD6 and when I import simple pictures into imovie, they appear fine when they are loading but then they turn all white. Why is this?

  • Simple mp3 player not working :( action script error

    Hi Everyone! I'm wondering if anyone can help with this problem: I am currently designing a website and creating a simple mp3 player with an on / off function but doesn't appear to be working. I am getting this error: 1095: Syntax error: A string lit