ejbc error , help

Discussions

EJB programming & troubleshooting: ejbc error , help

  1. ejbc error , help (4 messages)

    while using primary key class in CMP, im getting the following error
    D:\weblogic\ejb\Entity\CMPPK\ejbcgen\MyCMPPSWebLogic_CMP_RDBMS.java:21: illegal
    start of expression
      /*package*/ java.lang.String[] __WL_FIELD_NAMES = new String[] { , "produc
    tID", "name", "description", "price" };
                                                                           ^
    1 error
    Exec failed .. exiting

    what will be the error and this is bugging me a lot.

    help me
    sundar

    Threaded Messages (4)

  2. ejbc error , help[ Go to top ]

    hai,
       im not sure abt ur problem..but the first element in the array is empty..that may be the problem..so remove that first comma...
  3. ejbc error , help[ Go to top ]

    hi
     thanx for the reply. but its happening while i m doing ejbc. My bean fields are correct and i checked up with my xml. what will be the problem

    sundar
  4. ejbc error , help[ Go to top ]

    hi,
      i got ur prob..but i dont know why do u want to specify the field names in ur ejb coding..
  5. ejbc error , help[ Go to top ]

    This is generated code, which won't compile yes?

    Looks to me like you are missing a field name mapping in your entity bean deployment descriptor. Hence, the missing first element, which leads to generated code with invalid syntax.

    That gives you your error.

    Chz

    Tony