1 Reply Latest reply on Mar 8, 2007 3:04 PM by Gavin King

    Error while binding entity manager

    Michael Harrison Newbie

      When I try to bind an entitymanager using this:

      <core:entity-manager-factory name="omegaFactory"/>
      
       <core:managed-persistence-context name="em"
       entity-manager-factory="omegaFactory"
       auto-create="true"/>


      I get the following exception:

      Mar 8, 2007 11:56:47 AM org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      java.lang.IllegalArgumentException: No converter for type: org.jboss.seam.core.Expressions$ValueBinding
       at org.jboss.seam.util.Conversions.getConverter(Conversions.java:55)
       at org.jboss.seam.Component$ConstantInitialValue.<init>(Component.java:1998)
       at org.jboss.seam.Component.getInitialValue(Component.java:422)
       at org.jboss.seam.Component.getTopInitialValue(Component.java:402)
       at org.jboss.seam.Component.initInitializers(Component.java:380)
       at org.jboss.seam.Component.<init>(Component.java:265)
       at org.jboss.seam.Component.<init>(Component.java:206)
       at org.jboss.seam.init.Initialization.addComponent(Initialization.java:760)
       at org.jboss.seam.init.Initialization.addComponents(Initialization.java:677)
       at org.jboss.seam.init.Initialization.init(Initialization.java:425)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)


      Has anyone else encountered this problem?

      All the best,
      -Michael