I am assuming you have a @ManyToOne realationship in the Entity you are trying to delete. On the @OneToMany side you most likely have
| @OneToMany(cascade = CascadeType.ALL, .....)
|
If you change to
@OneToMany(cascade = {CascadeType.MERGE,CascadeType.REMOVE}, ....)
It may solve your problem, at least it did for me. You will have to work out if this will affect your application before doing so.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072260#4072260
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072260
I just upgraded my app to Seam 2.0 from Seam 1.2.1. The UI in firefox is now pretty badly broken. I have mixed javascript with jstl to dynamically generate javascript through a loop. Now the same code is fine in IE, but broken in Firefox. What is weird is that when I saved the source to the same webapp directory, renamed it to *.html, then the page shows up fine in firefox. I read elsewhere JSF1.2 will set contentType to application/xhtml+xml instead of text/html. Could contentType be the cause of the problem? What would be a workaround for this?
Can I overwrite the contentType from JSF1.2 to reset back to text/html?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072259#4072259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072259
While deploying, I'm getting this error.
Caused by: javax.management.InstanceNotFoundException: jboss.aop:service=AspectManager is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:527)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:662)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:167)
Is some setting missing from jboss-web.xml ?
Thank you
John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072254#4072254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072254