[EJB 3.0] - Re: entity bean name in ejb3 RC7
by ikkida
Hi,
I am developing a seam application integrated with JBPM. I am using Seam 1.0.1.GA on Jboss 4.0.4.GA with JBPM 3.1 I have a combined persistnace for JBMP and my application objects.
When I do a create query as follows:
User found =
(User) em.createQuery("from JBPM_ID_USER u where u.ID__ = :userName and u.PASSWORD_ = :password")
.setParameter("userName", username)
.setParameter("password", password)
.getSingleResult();
I get the following error:
15:08:26,080 ERROR [STDERR] javax.persistence.PersistenceException: org.hibernat
e.hql.ast.QuerySyntaxException: JBPM_ID_USER is not mapped [select NAME_ from JBPM_ID_USER]
I have copied the jbpm-identity-3.1.jar into ejb3 folder for the ear
have the following entires in the hibernate.cfg.xml
mapping resource="org/jbpm/identity/User.hbm.xml"
mapping resource="org/jbpm/identity/Group.hbm.xml"
mapping resource="org/jbpm/identity/Membership.hbm.xml"
I hve tried both the ways mentioned above,but both ways failed to solve the issue.
Can anybody throw some light on this.
Thanks,
Ikram
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969224#3969224
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969224
19 years, 7 months
[Clustering/JBoss] - jndi.properties
by adias@unimedbh.com.br
Hi guys,
I`m working in a cluster lab, where I have an ejb client and two ejb servers. My ejb client and servers have a firewall among them. I´ve previously asked the net administrators to enable traffic to and from ports 1100 (rmi), 1098,1099 and 444.
I´ve configured my jndi.properties to know the list of ejb servers, like below:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp\://192.168.101.114\:1100,192.168.101.113\:1100
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
~
When JBoss is booting, it stops in the message below.
09:20:52,611 WARN [NamingService] Context.PROVIDER_URL in server jndi.properties, url=jnp://192.168.101.114:1100,192.168.101.113:1100
After some time, it logs the following error:
Root exception is java.rmi.RemoteException: Service unavailable.
My ejb servers´s JBoss are started and HA-JNDI is enabled by default in the all configuration.
What could be wrong?
I´m using the release jboss-4.0.4.CR2
Anyone could help?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969221#3969221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969221
19 years, 7 months