[jboss-user] [Remoting] - Re: Exception propagation using servlet transport
seanmmcc
do-not-reply at jboss.com
Sat Nov 15 01:18:27 EST 2008
Ron, I just made the change you describe in the jboss-service.xml and the corresponding url in the web.xml. I receive the same UndeclaredThrowableException. The change did not seem to have any impact. Can you please review the configuration below and let me know what I have missed.
web.xml
| <servlet>
| <servlet-name>Ejb3ServerInvokerServlet</servlet-name>
| <description>The ServerInvokerServlet receives requests via HTTP
| protocol from within a web container and passes it onto the
| ServletServerInvoker for processing.
| </description>
| <servlet-class>org.jboss.remoting.transport.servlet.web.ServerInvokerServlet</servlet-class>
| <!-- Pass locatorUrl instead of invokerName because otherwise you end up
| sharing the same server invoker for org.jboss.invocation and org.jboss.aop
| type of invocations which you don't wanna do. Worth noting that invokerName
| is hardcoded and hence you cannot create a separate one that way, hence the
| use of locatorUrl. -->
| <init-param>
| <param-name>locatorUrl</param-name>
| <param-value>servlet://${firewall.address}:8080/unified-invoker/Ejb3ServerInvokerServlet/?return-exception=true</param-value>
| <description>The servlet server invoker</description>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
jboss-service.xml
| <!-- Unified invoker (based on remoting) for invocations via HTTP with target EJB3 beans. -->
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:service=connector,transport=servlet,target=ejb3"
| display-name="EJB3 Servlet transport Connector">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="InvokerLocator">servlet://${firewall.address}:8080/unified-invoker/Ejb3ServerInvokerServlet/?return-exception=true</attribute>
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189562#4189562
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189562
More information about the jboss-user
mailing list