Hi-

After successfully deploying the EJB samples with Postgresql 6.5, I'm
trying to deploy my own CMP Entity Bean.  I've seen posts about odd
behavior with
Postgres and now I seem to found one.

Here's a snippet of my ejb-jar.xml-

<ejb-jar>
...
<primkey-class>com.supergloo.ejb.EmployeePK</primkey-class>
   <primkey-field>id</primkey-field>
   <reentrant>True</reentrant>
   <persistence-type>Container</persistence-type>
   <cmp-field><field-name>id</field-name></cmp-field>
   <cmp-field><field-name>lname</field-name></cmp-field>
   <cmp-field><field-name>fname</field-name></cmp-field>
...
</ejb-jar>


Now, if I include the <primkey-field> (like above) this is the error I
get during deployment:

Auto-deploying supergloo-ejb.jar... Error compiling
file:/home/todd/projects/sv2/dist/supergloo/supergloo-ejb.jar: Variable
contained illegal space

-/-

But, if I comment the line out (<!-- <primkey-field...) I get this
error:

... Error compiling
file:/home/todd/projects/sv2/dist/supergloo/supergloo-ejb.jar: Method
public void com.supergloo.ejb.EmployeeBean.ejbCreate(int) doesnt return
a com.supergloo.ejb.EmployeePK

-/-

I've seen posts on other weirdness when using Postgres.
Does anyone have any thoughts on this? 

Thanks!
Todd

Reply via email to