[JBoss-user] [EJB 3.0] - StackOverflowerror when injecting

2006-05-18 Thread aidan_b5
Hi, I'm trying to have a servlet call a method on a stateless ejb which then calls a method on a stateful ejb. First off, is this allowed? If I change the second ejb in the sequence to a stateless ejb, the code works fine, looking at the stack, the problem seems to occur when the 1st ejb

[JBoss-user] [EJB 3.0] - EJB 3.0 PFD6 problems

2006-04-25 Thread aidan_b5
Hi, I've just upgraded Jboss 4.03SP1 from EJB PFD 5 to 6jboss starts ok except when it reaches one of my entity beans I get the following exception: 09:49:14,109 WARN [ServiceController] Problem starting service persistence.units:ear=SMSPortal.ear,unitName=objentity |

[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - CSS Serving strange behaviour

2006-03-20 Thread aidan_b5
I'm trying to do a standard include of a css file and am hitting problems. My css file is located within the web app and is visible through windows file explorer (and contains the correct content) when the app is built. However if I try to hit the css url (either directly or through a ), a file

[JBoss-user] [EJB 3.0] - Re: Exception handling

2006-03-01 Thread aidan_b5
Could be a class def problem.make sure GenericBusinessException is in the clients class path at run time (i.e it should be a common component used by both client and service - e.g. in the root of the ear linked by manifest). Simple suggestion I know but I can't see anything explicitly wrong

[JBoss-user] [EJB 3.0] - Map Relation key problem

2006-02-28 Thread aidan_b5
I'm trying to get a Map relation to work with a referenced Keyi.e the Key is another entity bean: | @Entity | @Table (name=ship) | @NamedQuery(name=ship.getAll, query=from Ship sh) | public class Ship { | |. | | @CollectionOfElements (fetch =

[JBoss-user] [EJB 3.0] - Persistence Manager Strange Behaviour

2006-02-24 Thread aidan_b5
I cannot get the persistence manager to persist the objects in the following code. No exception is thrown (on persist), the objects are simply not persisted. | @Stateless | public class SRSFacadeBean implements SRSFacade{ | | @PersistenceContext (unitName=srsentity) | | |

[JBoss-user] [EJB 3.0] - Re: JBoss4.0.4RC1: tables were dropped

2006-02-24 Thread aidan_b5
set to: | property name=hibernate.hbm2ddl.auto value=update/ for permanent persistence View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926090#3926090 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3926090

[JBoss-user] [EJB 3.0] - Re: JBoss4.0.4RC1: tables were dropped

2006-02-24 Thread aidan_b5
double post, sorry create-drop specifies that a table should be created if it does not exist and dropped when the AS is turned off. Therefore, your tables were being created and dropped during the life of the server. By specifying update (which i think may be the default), the tables are

[JBoss-user] [EJB 3.0] - Re: Non-persistant base classs with persistent properties

2006-02-24 Thread aidan_b5
Not tried this myself, but I'm assuming you've seen this?: http://docs.jboss.org/ejb3/app-server/tutorial/singleinheritance/single.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3926095#3926095 Reply to the post :

[JBoss-user] [EJB 3.0] - Re: Persistence Manager Strange Behaviour

2006-02-24 Thread aidan_b5
Found what the problem was; for the record: An exception was being thrown because I wasn't cascading Entity.Persist in my ManyToOne relationships. Now because the entity manager persists objects are the end of its life (i.e when the method returns from SRSFacadeBean), the transaction was being

[JBoss-user] [EJB 3.0] - Re: Collection not yet supported

2006-02-23 Thread aidan_b5
Excellent, thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3925864#3925864 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3925864 --- This SF.Net email is sponsored

[JBoss-user] [EJB 3.0] - Collection not yet supported

2006-02-17 Thread aidan_b5
I'm trying to get three simple beans to map to each other and am getting the following exception (v4.03SP1 EJB RFC 5): (InvocationTargetException). Caused by: org.hibernate.AnnotationException: com.sms.srs.entity.Attribute collection not yet supported: com.sms.srs.entity.AttributeNameattr

[JBoss-user] [Installation, Configuration Deployment] - Re: MBean being registered twice

2005-12-20 Thread aidan_b5
Anyone? jboss-service.xml ?xml version=1.0 encoding=UTF-8? | | server | |mbean code=com.sms.core.JCR.JCRServiceImpl |name=sms.jcr:service=JCRService |xmbean-dd=meta-inf/jcr-xmbean.xml | dependsjboss:service=Naming/depends | /mbean |

[JBoss-user] [Installation, Configuration Deployment] - MBean being registered twice

2005-12-19 Thread aidan_b5
Hi, I am trying to write a service that will initiate Jackrabbit on startup, I've suceeded in doing this but it appears jboss is trying to register my mbean twice, I'm getting a 'DeploymentExceptionalready registered mbean'. I've done a search throughout my jboss directory and is no

[JBoss-user] [Installation, Configuration Deployment] - Re: MBean being registered twice

2005-12-19 Thread aidan_b5
Ah, sorry for the bad formatting, didn't realise I can't post xml on herehope you get the idea View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3913402#3913402 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3913402