[EJB/JBoss] - Method Overloading and SOAP Annotations
by nraghava
I have myHelloWorld EJB3 service with 3 overloaded methods and corresponding SOAP Annotations. per the WSDL Spec, the combination of method name and in/out parameter name is unique i.e.,
[SomeMethod, somedaylong, somedaylong, somemonth]
[SomeMethod, somedayint, somedayint, somemonth]
[SomeMethod, somedaylong, somedayint, somemonth]
When I deploy this service in my JBoss 4.2.1 GA container i get the following error message:
| 2008-06-06 14:23:26,714 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations reference: {http://Some.services.xyz.com/}SomeMethod
| 2008-06-06 14:23:26,715 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations reference: {http://Some.services.xyz.com/}SomeMethod
| 2008-06-06 14:23:26,715 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations reference: {http://Some.services.xyz.com/}SomeMethod
| 2008-06-06 14:23:26,742 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/var/lib/jbossas/server/production/tmp/deploy/tmp34936Some-service-ear-1.0-SNAPSHOT.ear-contents/Some-service-ejb-1.0-SNAPSHOT.jar
| java.lang.IllegalArgumentException: Duplicate operation with name=SomeMethod, found in binding '{http://Some.services.xyz.com/}SomeServiceBinding'.
| at com.ibm.wsdl.BindingImpl.getBindingOperation(BindingImpl.java:244)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.getBindingOperation(WSDL11Reader.java:940)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.getOperationStyle(WSDL11Reader.java:949)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:655)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:642)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:1035)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1560)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1545)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1515)
| at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:174)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
| at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:166)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:78)
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:71)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(Unknown Source)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
Hello World Impl Code:
| public class SomeServiceBean implements SomeService {
|
| @WebMethod
| @WebResult(name="someData")
| public string SomeMethod ( @WebParam(name="somedaylong") long X,
| @WebParam(name="somedaylong") long Y,
| @WebParam(name="somemonth") string Z) {
| ....
| }
|
| @WebMethod
| @WebResult(name="someData")
| public string SomeMethod ( @WebParam(name="somedayint") int X,
| @WebParam(name="someweekint") int Y,
| @WebParam(name="somemonth") string Z) {
| ....
| }
|
|
| @WebMethod
| @WebResult(name="someData")
| public string SomeMethod ( @WebParam(name="somedaylong") long X,
| @WebParam(name="someweekint") int Y,
| @WebParam(name="somemonth") string Z) {
| ....
| }
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156423#4156423
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156423
17 years, 10 months
[JBoss Portal] - CMS problem
by keuller
Hi folks,
I'm trying upload a ZIP file into CMS repository. Inside my ZIP file I have two HTML files and some images and CSS files. JBoss Portal uncompress a structure file in repository correct, but JBoss Portal changes all references of images and links of the HTML files.
It is a representantion of my structure:
| +/album
| +-index.htm
| +/images
| +- cartaz.jpg
| +- bg.jpg
| +/css
| +- general.css
| +- default.css
|
All references in my HTML files are relatives. For example:
<a href="images/cartaz.jpg">Icon</a>
After upload JBoss Portal changes it to:
<a href="/portal/content/images/cartaz.jpg">Icon</a>
But right way would be:
<a href="/portal/content/album/images/cartaz.jpg">Icon</a>
All folder structure is in album folder. My HTML file is inside album folder and images are too. If I change it manually references its works fine.
I'm using JBoss Portal 2.5.6.SP1, with Oracle persistence in RedHat Linux SO.
Anyone has a suggestion or is it a bug ?
Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156419#4156419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156419
17 years, 10 months
[JBoss jBPM] - Process Escalation
by greenHand
I am not sure if this is achievable. Hopefully someone here can give me some advice.
The idea is to have a pool of actors. When a request comes, anyone in the pool can pick up the task and approve this request. Since none of them will be monitoring the request, I need to send an email to only one of the actors. Subsequent reminder email will be send to him for a certain period of time. When the time comes, I will stop emailing him and start sending email to another person, with subsequent reminder email also. The same pattern can go on to the third person. This is a way of escalation I am trying to do.
To make the above scenario work. I setPooledActors to the task but not assign the task to a particular actor. (This allows everyone in the pool can lookup this task and work on it. This is a preferred way to operate). Beyond this, I cannot come up with a task or timer can make the above scenario work.
Can someone advice?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156417#4156417
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156417
17 years, 10 months
[Beginners Corner] - Re: JBoss seam and Hibernate
by mitabhushan
EAR
tracker.jar
--com.med.hrtracker.session
--META-INF
----ejb-jar.xml
----persistence.xml
--seam.properties
--security.drl
tracker.war
lib
META-INF
--application.xml
--jboss-app.xml
--LDAP-login-config.xml
--LDAP-login-service.xml
jboss-seam.jar
error message that I get while I try any query to the database from my applicaton
[org.jboss.seam.deployment.ComponentDeploymentHandler] could not load class: com.med.hrtracker.session.OpeningHome
java.lang.ClassNotFoundException: com.med.hrtracker.session.OpeningHome
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.jboss.seam.deployment.ComponentDeploymentHandler.handle(ComponentDeploymentHandler.java:75)
at org.jboss.seam.deployment.DeploymentStrategy.handle(DeploymentStrategy.java:81)
at org.jboss.seam.deployment.AbstractScanner.handleItem(AbstractScanner.java:30)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:133)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:129)
at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:94)
at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:81)
at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:67)
at org.jboss.seam.init.Initialization.create(Initialization.java:102)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156399#4156399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156399
17 years, 10 months
[JBossWS] - Re: JWSDP 2.0 with JBoss 4.0.4 ?
by tomstrummer
"jason.greene(a)jboss.com" wrote : We don't support soap encoding. We recommend using our tool, but if you prefer to stick with wscompile thats fine. Just make sure you are using rpcliteral or documentliteral.
|
| -Jason
Hi Jason -- sorry to resurrect an old thread but I'm seeing a similar problem.
I am consuming a web service that I don't have control over (I think it's a .NET WS). First I tried using Apache CXF's wsdl2java to generate the client stubs, which complained about soapenc:Array in the WSDL (I don't remember the exact error). Googling suggested I needed an XML-RPC client, which JBossWS supports.
So the JBossWS' wsconsume tool generates my stubs and jaxrpc-mapping.xml file correctly, and I can even create and call the web service. But I see this same warning about soap encoding. I am a WS noob -- what should I do?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156398#4156398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156398
17 years, 10 months