[jboss-user] [EJB 3.0] - Re: Foreign key error

2007-09-10 Thread neisann
Hi, Sorry the late reply but I was busy with other activities. I just discovered why my code wasn't working. I had created an Oracle before insert trigger for Person and Address table that used the sequences to insert the primary key value in the tables. I didn't realize that JBOSS invokes the

[jboss-user] [EJB 3.0] - Re: Foreign key error

2007-08-15 Thread neisann
Hi, I have a JSP page that receives the data entered by the user. This page uses JSF. * register.jsp: | %@ page language=java contentType=text/html; charset=ISO-8859-1 | pageEncoding=ISO-8859-1% | !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN | %@ taglib

[jboss-user] [EJB 3.0] - Re: Foreign key error

2007-08-14 Thread neisann
Hi, I added the Column(name =?id?) annotation before the getId() method of Person and Address ejb but I?m getting the same error message about the foreign key violation. My Oracle tables have the following fields: * Person Name Type Nullable Default -

[jboss-user] [EJB 3.0] - Foreign key error

2007-08-13 Thread neisann
Hi, Thank you genman with the help with the sequence. I'm now with another error. I need an sequence for each table so I changed my code according to your information and worked with the sequence but now I'm getting an error with the foreign key. I have two entity beans Person and Address both

[jboss-user] [Installation, Configuration DEPLOYMENT] - Using Oracle sequence with JBOSS

2007-08-10 Thread neisann
Hi, I'm trying to use JBOSS IDE for Eclipse but I'm having trouble using an automatic generated id populated from a Oracle sequence previously created in the database. I guess there is some aditional configuration that I need to do in my application but I don't know what it is. In the

[jboss-user] [Installation, Configuration Deployment] - Error connecting Oracle database during JBoss startup

2007-05-15 Thread neisann
Hi there, I?m trying to execute an Entity EJB 3.0 created with JBOSS IDE 2.0 for eclipse and JBOSS 4.0.4. It happens I?m getting an exception when I start the Jboss server inside eclipse regarding the database. I looked at the JNDI view and there is the entry ?OracleDS (class:

[jboss-user] [EJB 3.0] - Problem running Stateless bean with JBOSS 4.0.4 GA and EJB 3

2007-05-08 Thread neisann
Hi there, I?m trying to run na EJB application developed with JBOSS IDE 2.0 and JBOSS 4.0.4 GA. I have an remote stateless session bean named TestStatelessBean that inherit from TestStateless. Here is the code for them: package com.test.ejbs; import javax.ejb.Remote; @Remote public

[jboss-user] [EJB 3.0] - Re: Problem running Stateless bean with JBOSS 4.0.4 GA and E

2007-05-08 Thread neisann
Hi delkant, I was trying to run this application for several days without sucess. Now, after your tips, it worked fine. Thank you very very much. Nei View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044123#4044123 Reply to the post :