-
1. Re: Stateless Session EJB Endpoint (JBossWS Native)
peterj Oct 30, 2008 1:34 PM (in response to tperrigo)1) There should be only one WSKernelLocatpor bean declared, and it should be in the jbossws-container-jboss-beans.xml file. It would appear that you have this bean also declared elsewhere. The best thing to to is a grep or text find to locate the extra declaration.
2) What JNDI name did you use? Have you used JNDIView to determine under what name the EJB was registered? http://www.jboss.org/community/docs/DOC-9583 -
2. Re: Stateless Session EJB Endpoint (JBossWS Native)
tperrigo Oct 30, 2008 1:55 PM (in response to tperrigo)1) You were right; there is an extra WSKernalLocator. There is one defined in the deployers/jbossws.deployer/META-INF/jbossws-container-jboss-beans.xml file, and another in the deploy/jbossws-container-jboss-beans.xml file (so one under the deployers directory, and another in the deploy directory). Which is the "correct" one to use?
2) For the JNDI name, I used "ProcessAdminEJB/remote"...The JNDI view from the JMXConsole shows the following:+- ProcessAdminEJB (class: org.jnp.interfaces.NamingContext) | +- remote-werner.opt.process.admin.ProcessAdminRemote (class: Proxy for: werner.opt.process.admin.ProcessAdminRemote) | +- remote (class: Proxy for: werner.opt.process.admin.ProcessAdminRemote)
Is this correct?
Thanks for your help!
Tim -
3. Re: Stateless Session EJB Endpoint (JBossWS Native)
tperrigo Oct 31, 2008 2:27 PM (in response to tperrigo)I removed the duplicate jbossws-container-jboss-beans.xml from the deploy directory of my server and the "WSKernelLocator already installed" error went away, but I am still getting the ClassCastException when I do a JNDI lookup on my EJB. I really have no idea what I'm doing wrong...everything seems to deploy without issue. If anyone has any suggestions, I would be most appreciative!
Thanks,
Tim -
4. Re: Stateless Session EJB Endpoint (JBossWS Native)
peterj Oct 31, 2008 3:32 PM (in response to tperrigo)Looks like this discussion is being continued at: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186101
-
5. Re: Stateless Session EJB Endpoint (JBossWS Native)
tperrigo Oct 31, 2008 3:40 PM (in response to tperrigo)Yes, that's correct; sorry, I should have mentioned that I posted to the EJB3 forum. Once the WSKernelLocator issue was resolved by the removal of one of the duplicate files, I tried removing the web service annotations from my EJB, making it just a simple stateless session bean, to see if I could then do a JNDI lookup. I'm still getting a ClassCastException, though. I left the topic open in this forum, though, just in case anyone knew of any EJB-related problems from projects created using the ant tasks provided with the JBossWS Native distribution.
Thanks,
Tim