[EJB 3.0] - EJB3 - web service client problem
by hauch
I am developing a Webservice client in a ejb.
I prefer the solution where the service object is bound in jndi using <service-ref> as sketched in "Application Server Guide 4.0.4: 12.3.2 Service references".
Using an ejb the <service-ref> tag is placed in ejb-jar.xml which should be fine according to:
"This chapter uses a J2EE-1.4 client, but for all intents and purposes, this could also be a Servlet, JSP, or EJB component. All of these J2EE components support <service-ref> elements in their respective deployment descriptor."
However it seems that the service object is never bound.
I have now discovered that service-ref no longer is part of the ejb-jar.xml in ejb3, which may explain that it seems to be ignored.
And now the questions:
Is this assumption correct (ie. that service-ref in ejb-jar.xml is ignored using ejb3)?
If this is the case: Is there another way to bind the service object in jndi?
If not: Has anybody succeded in getting the service object from jndi using ejb3 and <service-ref>? Please provide an example.
By the way: I am able to connect using the method with qname, servicefactory etc (12.3.1), which indicates that my client artifacts are ok.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974424#3974424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974424
19 years, 7 months
[Installation, Configuration & Deployment] - Re: Problems facing Installation of JBoss
by hubertg
h!
I'm using
JBoss Portal + JBoss AS 2.4 Production (2006-08-19)
I think I'm having kind of the same problem:
whenever I start Jboss and requests a portal page with http://localhost:8080/portal the following exception is thrown:
08:53:41,789 ERROR [PortalServlet] Invocation exception
org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
08:53:41,791 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
org.jboss.portal.common.invocation.InvocationException: Cannot invoke with a null interceptor[]
at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:294)
at org.jboss.portal.server.servlet.PortalServlet.doGet(PortalServlet.java:172)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
jboss restart doesn't help, but when i recopy the mysql-ds.xml to the jboss deploy dir suddenly the portal is starting, and the previous error doesn't occur again.
the portalDS which is configured in the mysql-ds.xml is in the JNDI tree both before and after redeploying of the mysql-ds.xml. the configuration of the datasource is ok, otherwise it wouldnt function after redeploying i think ...
it's not that terrible, but a bit unconvenient ... I would say it's a bug.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974423#3974423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974423
19 years, 7 months