[EJB 3.0] - JNDI Binding not working in JBoss-5 Beta 4
by jimmycallaghan
I've got an application that deploys fine on JBoss404 and JBoss422. I'm now trying out JBoss5 (Beta4) and can't get my EJBs deployed where I want them. I'm using:
| @Stateless
| @LocalBinding(jndiBinding = HibernateDaoBeanInterface.JNDI_LOCATION_LOCAL)
| @RemoteBinding(jndiBinding = HibernateDaoBeanInterface.JNDI_LOCATION_REMOTE)
| public class HibernateDaoBean<VO> implements HibernateDaoBeanInterface.ILocal<VO>,
| HibernateDaoBeanInterface.IRemote<VO>
| {
| ...
|
at the top of my EJB class. The values are defined in this interface as:
public interface HibernateDaoBeanInterface<VO> extends HibernateDaoInterface<VO>
| {
| public static final String JNDI_LOCATION_LOCAL = "/ejb3/my_application/HibernateDaoBean/prod/local";
| public static final String JNDI_LOCATION_REMOTE = "/ejb3/my_application/HibernateDaoBean/prod/remote";
| ...
|
However, when I look at the JNDI view in the JMX console I can see that the EJBs are being deployed in the default locations. It is as if the binding annotations are being ignored. I've been searching around but haven't discovered anyone having a similar problem.
This is happening to all of the EJB3 objects in my application. The JNDI view shows me this:
+- 10.platform.local.20080624.1239
| | +- PlatformDAOBeanImpl
| | | +- local (proxy: $Proxy168 ...
| | +- QueueConnectionServiceBean
| | | +- local (proxy: $Proxy141 ...
| | | +- remote (proxy: $Proxy140 ...
| | +- AddBulkMessagesToDatabaseBean
| | | +- local (proxy: $Proxy153 ...
| | | +- remote (proxy: $Proxy152 ...
| | +- HibernateDaoBean
| | | +- local (proxy: $Proxy145 ...
| | | +- remote (proxy: $Proxy144 ...
| | +- JbpmServiceBean
| | | +- local (proxy: $Proxy149 ...
| | | +- remote (proxy: $Proxy148 ...
| | +- SendAMessageFromCommandLineBean
| | | +- remote (proxy: $Proxy160 ...
| | +- BatchFilesProcessingInfoBean
| | | +- local (proxy: $Proxy157 ...
| | | +- remote (proxy: $Proxy156 ...
As you can see, the bean object is NOT bound to ejb3/my_application/...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160209#4160209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160209
17 years, 10 months
[JBoss jBPM] - Calling a process from a jsp
by subhajitpwc
Hi I am a beginner in Jboss and Seam.
I am using JBOSS JBPM (jbpm-starters-kit-3.1.2). and I have a JBPM Process which I have implemented using Eclipse and I am calling that process from a JSP using Seam annotations.I am deploying the EAR file to the JBOSS JBPM server.I have included the jBoss-seam.jar with the server\lib directory and also copied the required jsf files to the proper directories.
But I am getting this error when starting the JBPM homepage and pressing on Log in button.Please help me out.(If there is no solution then please suggest a way to call a process from a jsp):
java.lang.IllegalArgumentException: Class org.jboss.seam.jsf.SeamApplicationFactory is no javax.faces.application.ApplicationFactory
javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:126)
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:101)
org.apache.myfaces.context.servlet.ServletFacesContextImpl.(ServletFacesContextImpl.java:88)
org.apache.myfaces.context.servlet.ServletFacesContextImpl.(ServletFacesContextImpl.java:81)
org.apache.myfaces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:60)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:87)
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160203#4160203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160203
17 years, 10 months