0 Replies Latest reply on Jul 28, 2010 4:10 PM by tvraghavan

    Problem with Seam + Maven installation

    tvraghavan
      Env:
      Jboss-5.1.0.GA or JBoss-4.2.3
      Seam-2.2.0.GA



      Am using the org.openarchetypes/seam-ear-archetype maven plugin to create my seam project in maven.

      Here's my problem.

      This is the project structure

      |"project
      project-ear [pom.xml]
      project-ejb [pom.xml]
      project-war [pom.xml]
      project-util [pom.xml]
      project-tests [pom.xml]
      pom.xml"|

      When I create a new build the release is created as project-ear-version.ear.
      Now, am no longer able to lookup my SLSB or SFSB using the jndi lookup and get a runtime
      "javax.naming.NameNotFoundException: project not bound"

      When I check the logs, the EJBs are bound with the ear's prefix
      e.g.


      [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=project-ear-1.0.ear/project-ejb.jar#project




      I've configured the components.properties and component.xml as follows

      components.properties




      "`jndiPattern=project/#{ejbName}/local
      embeddedEjb=false`"






      components.xml


      `...
      <core:init debug="true" jndi-pattern="@jndiPattern@"/>
      ...`




      Can you let me know if there are any configs that will ensure that the jndi context is preserved ir-respective of the name of the ear filename.

      Thanks,
      -Raghav