Martin Frisone

Greenhorn
+ Follow
since Nov 05, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Martin Frisone

Oh! yes, I see my mistake now... I'm not using an EJB containter just a desktop application, that's why the Container Managed Persistence won't work.

I've tried the Application Managed Persistence and it worked. Problem Solved, thanks a lot
and forgot the stacktrace

sure....

Persistence Unit "minuto1PU"


Entity class "Cliente"


Main class "Minuto1"


Hi,
I'm working on a desktop application that reads data from a database using persistence manager Toplink and the netbeans IDE.
I have set:

  • The persistence unit (persistence.xml)
  • @PersistenceContext annotation
  • "EntityManager em" class
  • the entity clases from the DB


  • the problem comes when I try to execute any of the entity manager methods, such as persist() or find(). It always throws a NullPointerException so I'd like to know where could be my problem. Any idea will help.
    Thanks in advance
    Hi, guys

    I'm mapping a table Persons to a java class Persons:



    and I'm getting the error: "Entity Persons has no Id or EmbeddedId". I don't understand why this happenes since I have the @Id annotation.

    I appreciate any help on this. Thanks in advance!
    Hi everyone, I'm having a problem to run an application client due to JNDI errors during the binding of EJB modules.
    I'm using NetBeans 5.5 and Sun Java Application Server 9 PE.

    the server log shows these messages:

    SEVERE| Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]

    SEVERE| appId=CorpTour moduleName=Tour_jar ejbName=reservationBean

    SEVERE| Jndi name conflict found in [CorpTour]. Jndi name [reservationRemote] for bean [reservationBean] is already in use.

    SEVERE| Naming exception while creating EJB container: javax.naming.NameAlreadyBoundException: Use rebind to override

    here the components are:
    Enterprise application: CorpTour
    EJB: Tour
    Session Bean: reservationBean
    Session Bean remote interface: reservationRemote

    I created all the EJB calls using the IDE assitant so I don't know what's wrong.
    Another thing is that the IDE created the application-client.xml file but not the ejb-jar file.

    I would reeeeally appreciate any help on this problem. Thanks in advance
    Hi, I'm developing a client-server application with Netbeans 5.5 and I don't have any problem debugging the app-client but don't know how to do the "step by step" execution through the methods written in the session beans.
    I appreciate any help. Regards

    Martin