[JBoss Portal] - Re: Using WSRP with JBoss Portal 2.4
by chris.laprun@jboss.com
The documentation is indeed not as good as it could be. I just wanted to make sure that you were aware of the document and had read it. I will try to make it clearer. If you have anything that you'd like to see in it, please let us know.
As far as your question goes, *-wsrp.xml files have nothing to do with remotely exposing a local portlet. They are meant to configure access to a remote producer (i.e. to be able to access remote portlets within Portal).
To expose a local portlet to remote consumers, the only thing that is required is to add the remotable tag to the jboss-portlet.xml file for that portlet. That portlet will then be availble to remote consumers (i.e. it should appear in the list of available portlets on your remote consumer for your configured Portal producer). To make sure that this is indeed the case, you can look at the portlet list in the management portlet of the admin page of your Portal instance. All local portlets with are also remotely exposed are exposed to Portal itself under the "self" portlet provider.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962894#3962894
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962894
19 years, 9 months
[JBossWS] - EJB service endpoint deployment error
by B.Portenseigne
Hi,
I want deploy a simple 'HelloWorld' style EJB service endPoint on Jboss 4.0.3.
i follow this tutorial
http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEServerEJB
But i have this error:
| java.lang.ClassCastException: org.jboss.metadata.ApplicationMetaData
| at org.jboss.webservice.ServiceDeployer$ServiceLocationResolver.getServiceLocation(ServiceDeployer.java:558)
| at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(WebserviceDescriptionMetaData.java:304)
| at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(WebserviceDescriptionMetaData.java:253)
| at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:207)
| at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:110)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
| at $Proxy27.handleNotification(Unknown Source)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
| at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:95)
| at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
| at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:642)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy24.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
|
Here is my ejb-jar.xml
| <display-name>EjbTest</display-name>
|
| <enterprise-beans>
| <session>
| <ejb-name>EjbTestBean</ejb-name>
| <service-endpoint>fr.kob.test.EjbTest</service-endpoint>
| <ejb-class>fr.kob.test.EjbTestBean</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| </enterprise-beans>
|
and my webservice.xml
| <display-name>EjbTest Services</display-name>
| <webservice-description>
| <webservice-description-name>EjbTest Services</webservice-description-name>
| <wsdl-file>META-INF/wsdl/EjbTest_Services.wsdl</wsdl-file>
| <jaxrpc-mapping-file>META-INF/EjbTestMapping.xml</jaxrpc-mapping-file>
| <port-component>
| <port-component-name>EjbTestPC</port-component-name>
| <wsdl-port>EjbTestPort</wsdl-port>
| <service-endpoint-interface>fr.kob.test.EjbTest</service-endpoint-interface>
| <service-impl-bean>
| <servlet-link>EjbTestBean</servlet-link>
| </service-impl-bean>
| </port-component>
| </webservice-description>
|
Has anybody an idea ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962892#3962892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962892
19 years, 9 months