Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-4332

Impossible to deploy EJB3 with JPA annotations with JBossTools on a JBossESB installation

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Stop the server, deploy the EJB in the deploy folder, then start the server. No hot deployment is possible.

      Show
      Stop the server, deploy the EJB in the deploy folder, then start the server. No hot deployment is possible.
    • High

    Description

      When I deploy an EJB3 that contains JPA annotations from within Eclipse, I systematically get an error:

      SessionFactoryImpl] Error in named query: ProcessInstancesWaitingForEvent
      org.hibernate.hql.ast.QuerySyntaxException: ProcessInstanceInfo is not mapped [select processInstanc
      eInfo.processInstanceId from ProcessInstanceInfo processInstanceInfo where :type in elements(process
      InstanceInfo.eventTypes)]
      at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:
      158)

      See the complete discussion here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154726&start=10

      This does NOT happen when deploying directly on the server, it only happens when deploying from Eclipse.
      Note that from the quoted thread on the forum, this may be linked to Drools also. i have however not been able to force the deployment of my EJB after Drools (I don't know Jboss enough to do it).

      In attachment you will find a minimum case that reproduces the problem. To reproduce, just import the project into Eclipse, then deploy it (with Eclipse) on a JBoss AS 4.2.3 with JbossESB 4.5 installed.

      If someone knows how to put this bug in the JbossESB section as well, I would appreciate.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vincentgr_jira Vincent Girard-Reydet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: