[JBoss-user] [JBossWS] - Re: ClassNotFoundException with jbossws1.0.1
I am still having problems getting jboss1.0.1 to work correctly. Here are the steps I used to set this up. 1. Download jboss 4.0.4 GA zip file and unzip 2. Delete client/jbossws14-client.jar and /server/default/deploy/jboss14.sar 3. Replace the above files with the .jar and .sar from jbossws 1.0.1 4. Modify the jboss-service.xml in jbossws.sar to remove dependancy on EJB 2.1 and 3. The web service deploys correctly, but when I try to access it, I get the above exception. This IS the EXACT same service that works on 1.0.1 (which was also setup using the above process). The only thing different between the two servers that I have is that I used jbossws 1.0.0 on one and 1.0.1 on the other. Does 1.0.1 introduce some other dependancy which is not satisfied with the above procedure? Why would this work for 1.0.0 but not 1.0.1? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951647#3951647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951647 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: ClassNotFoundException with jbossws1.0.1
Yes it is exactly the same, I just copied from one directory to the other. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950926#3950926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950926 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - ClassNotFoundException with jbossws1.0.1
I've just upgraded my jbossws installation from jbossws1.0.0 GA to jbossws 1.0.1. My test service that worked fine on 1.0.0 (a jsr-181 POJO endpoint) deploys fine, but when I try to invoke an operation I get the following ClassNotFoundException. I am using JBoss 4.0.4 GA which was unzipped (I did not use the installer). This worked fine with 1.0.1, and all I've done is overwrite the SAR and JAR file. Any ideas? | 12:35:22,828 ERROR [SOAPFaultExceptionHelper] SOAP request exception | java.lang.ClassNotFoundException: | com.danny.jbossws.service.JbossWsTest | | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa | der.java:1352) | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa | der.java:1198) | at org.jboss.ws.server.ServiceEndpointInvokerJSE.loadServiceEndpoint(Ser | viceEndpointInvokerJSE.java:63) | at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvo | ker.java:87) | at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.jav | a:219) | at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(Service | EndpointManager.java:355) | at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointSe | rvlet.java:109) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointS | ervlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p | rocessConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo | int.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor | kerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950914#3950914 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950914 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: 4.0.4 GA and jbossws
Ok, this would be the problem. I am not installing using the installer, just the downloading the zip file. I'll give the installer a try to see what happens. This would also explain the deployment scanner error I'm getting about EJB3 when I install jbossws GA manually. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944377#3944377 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944377 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: 4.0.4 GA and jbossws
Well it contains jbossws14.sar and jbossws-client14.jar, but you can't deploy a jsr181 pojo with these (as has been noted in several posts now) unless you install jbossws.sar and jbossws-client.jar from the jbossws GA release which must be downloaded seperately Am I really missing something here? I had 4.0.4.CR2 with jbossws GA installed and everything was working. When I deploy these same services to stock 4.0.4.GA I get the same exceptions I used to get on 4.0.4.RC2 (without jbossws GA). When I install jbossws GA on 4.0.4.GA everything works again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944365#3944365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944365 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - 4.0.4 GA and jbossws
I've been trying out the jbossws to create jsr-181 pojo syle endpoints on CR2. I know that on CR2 you had to manually copy the jbossws GA files to get things working. I assumed that 4.0.4 GA would include the jbossws GA, but it looks like I still have to copy the jbossws manually to get this working. Why was jbossws GA left out of the 4.0.4 release? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944344#3944344 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944344 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Can't build jbossws samples
Thanks, I upgraded to the GA release for ws and it is working fine now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943523#3943523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943523 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Can't build jbossws samples
Also this example is from trying to build the jsr181pojo example. However I get the same problem even with examples I write myself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942650#3942650 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942650 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - JSR181 web service deployment error.
I originally posted this as a reply to another post, but then thought it would be better to start a new topic. I have been trying to get some simple web services going using the JSR181 based on the user guide example code as well as some of the things I've found on the forum. However, I always get the following error when I try to deploy a service: | 08:29:15,625 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. | 0.4.CR2/server/default/deploy/HelloWorldWs.war | java.lang.ArrayIndexOutOfBoundsException: 0 | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.getWebParamAnnotatio | n(AnnotationsMetaDataBuilder.java:310) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.processWebMethod(Ann | otationsMetaDataBuilder.java:388) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.setupEndpointFromAnn | otations(AnnotationsMetaDataBuilder.java:153) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilderJSE.buildMetaData(Ann | otationsMetaDataBuilderJSE.java:82) | at org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(W | ebServiceDeployerJSE.java:194) | at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java | :103) | at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJS | E.java:65) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. | create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce | ptor.java:91) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy30.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch | er.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept | or.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM | BeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen | tScanner.java:334) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS | canner.java:522) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | doScan(AbstractDeploymentScanner.java:207) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | loop(AbstractDeploymentScanner.java:218) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | run(AbstractDeploymentScanner.java:197) | I am using 4.0.4CR2 and JDK 1.5.0. This is driving me nuts, I can't figure out what is causing this. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942649#3942649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942649 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Can't build jbossws samples
I've been trying to get my web services working on Jboss 4.0.4CR2 and have had no luck at all :-( First I can't compile the sample files or my own examples with Ant. When I run the build I get the following error: | compile15: | [javac] Compiling 6 source files to D:\jbossws-samples-1.0.0.GA\jbossws-samp | les-1.0.0.GA\output\classes | [javac] D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\jsr181pojo\java | \org\jboss\test\ws\samples\jsr181pojo\JSEBean01.java:34: incompatible types | [javac] found : javax.jws.WebService | [javac] required: java.lang.annotation.Annotation | [javac] @WebService(name = "EndpointInterface", targetNamespace = "http://or | g.jboss.ws/samples/jsr181pojo", serviceName = "TestService") | [javac] ^ | [javac] D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\jsr181pojo\java | \org\jboss\test\ws\samples\jsr181pojo\JSEBean01.java:35: incompatible types | [javac] found : javax.jws.soap.SOAPBinding | [javac] required: java.lang.annotation.Annotation | [javac] @SOAPBinding(style = SOAPBinding.Style.RPC) | [javac] ^ | [javac] D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\jsr181pojo\java | \org\jboss\test\ws\samples\jsr181pojo\JSEBean01.java:35: duplicate annotation | [javac] @SOAPBinding(style = SOAPBinding.Style.RPC) | [javac] ^ | [javac] D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\jsr181pojo\java | \org\jboss\test\ws\samples\jsr181pojo\JSEBean01.java:38: incompatible types | [javac] found : javax.jws.WebMethod | [javac] required: java.lang.annotation.Annotation | [javac]@WebMethod | [javac] ^ | [javac] Note: D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\common\ja | va\org\jboss\test\ws\JBossWSTest.java uses unchecked or unsafe operations. | [javac] Note: Recompile with -Xlint:unchecked for details. | [javac] 4 errors | | BUILD FAILED | D:\jbossws-samples-1.0.0.GA\jbossws-samples-1.0.0.GA\common\imported-build.xml:1 | 23: Compile failed; see the compiler error output for details. | I am using ant 1.6.5, JDK 1.5.0 and JBoss 4.0.4CR2. Any ideas what is causing this error? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942646#3942646 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942646 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: JSR181 Annotated Web Services Intro
I've been trying to do exactly this but have had no luck. So now I've copied your example exactly and tried these steps. I always get the following error with mine and your example: | 08:29:15,625 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4. | 0.4.CR2/server/default/deploy/HelloWorldWs.war | java.lang.ArrayIndexOutOfBoundsException: 0 | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.getWebParamAnnotatio | n(AnnotationsMetaDataBuilder.java:310) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.processWebMethod(Ann | otationsMetaDataBuilder.java:388) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilder.setupEndpointFromAnn | otations(AnnotationsMetaDataBuilder.java:153) | at org.jboss.ws.metadata.AnnotationsMetaDataBuilderJSE.buildMetaData(Ann | otationsMetaDataBuilderJSE.java:82) | at org.jboss.ws.server.WebServiceDeployerJSE.createWebServicesMetaData(W | ebServiceDeployerJSE.java:194) | at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java | :103) | at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJS | E.java:65) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. | create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce | ptor.java:91) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy30.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch | er.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept | or.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM | BeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker. | java:260) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen | tScanner.java:334) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS | canner.java:522) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | doScan(AbstractDeploymentScanner.java:207) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | loop(AbstractDeploymentScanner.java:218) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | run(AbstractDeploymentScanner.java:197) | The only difference I see is I am using the CR2 and you are building from source. Is this currently working in CR2, or am I missing something? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942485#3942485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942485 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Deploying service with arrays
"esvehla" wrote : | We ended up moving to JBoss 4.0.4.CR2 which gets you past this problem but we have a new set of problems. | Actually, that was going to my next question. Does 4.0.4 fix the problem with arrays? I have not considered starting from WSDL since I am actually exposing a bunch of existing business logic, so it doesn't make sense to go this way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941329#3941329 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941329 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Deploying service with arrays
I've done a bunch of searching around on this already and have found a solution, but I'm a little confused about if this is my only option. I have a simple service which returns an array of a simple complex type. I'm using wscompile to build the service, everything deploys fine, but when invoked I get serialization errors. (btw, I'm on 4.0.2, and it's too late to upgrade now). I've figured out what the problem, and based on this post in the wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEArrayTypeMapping I got everything working. My problem is, that this is a terrible solution. So much for this stuff being generated by the build. Now I have to manually modify generated files? Is there are a better way? Can ws4ee-deployment.xml be used for this? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941247#3941247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941247 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - XDoclet to generate webservices.xml
I'm trying to get my web service build automated with Ant and XDoclet. After some messing around, I finally got the wscompile task working, but I'm having the following problem with the XDoclet piece: When I run the wseedoclet task to generate webservices.xml, I get an invalid entry. Here is my code: Interface / Implementing class: | package com.abc; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | public interface SayHello extends Remote | { |public String sayHi( String firstName, String lastName ) throws RemoteException; | } | | package com.abc; | | /** | * @web.servlet | * display-name="Say Hello Service" | * name="SayHello" | * @web.servlet-mapping | * url-pattern="/SayHello" | * | * @wsee.port-component | * name="SayHello" | */ | public class SayHelloImpl implements SayHello | { |public String sayHi( String firstName, String lastName ) |{ | return "hello there " + firstName + " " + lastName; |} | } My config.xml | http://java.sun.com/xml/ns/jax-rpc/ri/config";> | http://com.abc"; | typeNamespace="http://com.abc/types"; packageName="com.abc"> | | | | Parts of interest in the build.xml: | | | | | | | | | | | | | | | | | | | | | | | | | This gives me all the server code I need, a mapping file and web.xml which all look fine. But the webservices.xml contains the following: | | | http://java.sun.com/xml/ns/j2ee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_web_services_1_1.xsd"; | version="1.1"> | | | | | | SayHello | | WEB-INF/wsdl/SayHelloService.wsdl | WEB-INF/jaxrpc-mapping.xml | | | | | | | SayHello | SayHelloPort | com.abc.SayHelloImplService | | SayHello | | | | | | | How does the service-endpoint-interface get set to "com.abc.SayHelloImplService"? Is this name just made up by XDoclet, I can't figure out where it comes from, or how to get it right. Is there an attribute that I need to set to get the proper interface name? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933817#3933817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933817 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Minimal ws4ee deployment
We are using JBoss 4.0.2 as our application server, but at this only need bare bones installation. We have removed all the files from the server/default/deploy/ directory except the jbossweb-tomcat55.sar which leaves with enough to serve up JSP/JSF etc. Now we are adding web service support, so I've added in jboss-ws4ee.sar. This works fine, and my services deploy etc. but on startup I get the following error: 08:02:19,765 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: jboss.ws4ee:service=ServiceDeployerEJB State: CONFIGURED I Depend On: jboss.ejb:service=EJBDeployer jboss.system:service=MainDeployer --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.ejb:service=EJBDeployer State: NOTYETINSTALLED Depends On Me: jboss.ws4ee:service=ServiceDeployerEJB I've tried figuring out what other files I need to deploy, but just end up with more dependancies. What else do I need to deploy? Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895146#3895146 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3895146 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Using custom exception inheritance
Anybody know about this? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880866#3880866 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880866 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Using custom exception inheritance
"[EMAIL PROTECTED]" wrote : Why not? Give it a try!!! Well, I'm asking because I did try and it did not work. And I haven't been able to find a way to get it to work. If the specifies that it throws a ParentException, but really throws a ChildException, the ChildException is not caught by the client. My point is, that using wscompile to build the wsdl from the SEI does not include information in the wsdl about exception inheritance... so I thought I'd ask if this was possible. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880678#3880678 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880678 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Using custom exception inheritance
I have a web service that I have defined to throw a custom exception, which works fine. However now I'd like to go a step further and define new exceptions that derive from that exception. For example: My parent exception is ParentException, and it has two derived exceptions, ChildExceptionA and ChildExceptionB. I'd like to be able to define my web service interface to throw ParentException, and be able to catch a ParentException on the client even if a ChildException was really thrown on the server (i.e. be able to catch child exceptions without having to explicitly declare them in the throws clause of the web method. I found an article on how this can be done by modifying the WSDL here: http://www-128.ibm.com/developerworks/xml/library/ws-tip-jaxrpc.html. Is there a way to do this type of thing using wscompile (starting from the SEI)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880662#3880662 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880662 --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Arrays of complex types
Oooops... forget my previous post, turns out to be a stupid mistake on my part... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879302#3879302 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879302 --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Arrays of complex types
I have an RPC Literal service on JBoss 4.0.2 with two methods, one takes an array of complex types as a parameter, the other returns a similar array of complex types. Based on the Wiki, I have wrapped these arrays in an object so now one method takes an object parameter, the other returns an object. I can call the method that returns the object (containing the complex type array) and all is good. However, if I try to call the method that takes the parameter I get the following error: java.rmi.RemoteException: Runtime exception; nested exception is: | unexpected null value for literal data | at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318) | at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300) At first I did not use a ws4ee-deployment.xml file, but when I got this error I gave it a try, at which point I can no longer deploy my service because it complains that it cannot find the axis packages (for BeanSerializer etc.). Is the ws4ee-deployment file really required or am I missing something else? If it is required, why do I get an error about the axis package? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879297#3879297 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879297 --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Single sign on options
Ok, I'm trying to get this to work as explained in the wiki. But when I uncomment out the line to turn on that valve and restart the server it does not start properly. Looks like there's a class not found exception, but there are som many errors that fly by I can't see what started it. As a result I can get to the http://localhost:8080/ ok, but if I try to launch an application (i.e. launch JMX console) I get a message indicating the connection was refused. I tried this with a fresh install of 4.0.2 with no other changes that this just to be sure that it wasn't something in my previous config, but I still get the same problem. Do I have to get the ClusteredSingleSignOn class somewhere else? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876793#3876793 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876793 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: Single sign on options
What about JOSSO support in 4.0.2? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876670#3876670 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876670 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Single sign on options
Hi all, I'm a security newb and just trying to get a hight level feel for what JBoss 4.0.2 has to offer for single sign on. I have a we application that spans multiple WAR files (on a single server for now) however we need to be able to have a single sign on point so that when the client gets redirected they are not chanlleged for credentials. I've been searching around and I've come across two possible SSO solutions: - JOSSO - Which according to their site is included in JBoss 3.2 - but no mention of 4.0 :-( - ACEGI/CAS - Which is built on top of the Spring framework. What are my real options for single sign on in JBoss 4.0.2? Does JBoss provide this capability now without JOSSO, or does JOSSO work with 4.0.2? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876585#3876585 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876585 --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Using wscompile for doc/lit
Sounds good! Of course, this leads back to my original question... how? ;-) I've tried a bunch of different options with wscompile, but it still produces the wrapper classes, and referenes those in the mapping file. How do I run wscompile so that the mapping file does not reference the wrapper types? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875460#3875460 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875460 --- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Microsoft .NET interop.
This is the really hard decision in my case. I've read plenty of articles supporting the use of only doc/lit, some supporting use of RPC, some "wrapped" The way I see it, each type of service has it's place and it's pros and cons. I don't really understand why you should ALWAYS use doc/lit. My service is not document based, it is RPC based request/response, like calling an add() method. doc/lit is for document based services, rpc/lit for rpc based services. This is also how it's generally explained in documentation from Sun. I think that for my implementation, using doc/lit adds unnecessary complexity to the interface usage and implementation, so I'd prefer to use RPC. Even MS who only supports doc/lit uses "wrapped" style to expose an RPC interface to their doc/lit service implementation! Of course this currently conflicts with MS who currently don't support rpc/lit. However, if they will support it in future releases (which should be available by the time my product is out there), then maybe I'll use RPC after all. Finally, I have one other concern with doc/lit: A doc/lit SOAP request doesn't contain the method name (unless it is wrapped style), so this makes it impossible to have multiple methods in your interface with the same set of parameters doesn't it? I read about this in an article, haven't tried it yet, but it makes sense. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875418#3875418 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875418 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Using wscompile for doc/lit
"[EMAIL PROTECTED]" wrote : Another option is, to start of with a req/res structures in your SEI and do the unwrapping in your impl code. I think this is what I'm getting at, but I can't figure out how to do that... do you mean I can start with this kind of code: | public interface MathService extends Remote | { |public AddReply add( AddParams params ) throws RemoteException; | } | And not have to change it after running wscompile? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875417#3875417 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875417 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Microsoft .NET interop.
Well, I was able to create a C# client to a basic rpc/literal service that just returned a String. No complex types, or exceptions... using .NET 2.2 and Visual C# 2005 express edition beta 2. But I keep running into stumbling blocks... what you said about exceptions has me worried, I haven't played with that yet in .NET, so that sounds like it will also be a pain in the butt! I already tried to sneak into my design that .NET clients would not be supported, unfortunately that didn't fly, so I have to figure out a way to support them somehow :-( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875299#3875299 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875299 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Microsoft .NET interop.
Hey all... time to gripe about Microsoft! I know that the current release of .NET will not write a client to a rpc/literal service, but I downloaded the new trial for VC# 2005 and the .NET 2.2 framework and it seems to create clients to rpc/literal service just fine. BUT according to the documentation it does not support rpc/literal. It only supports doc/literal or rpc/encoded, and they reference the SOAP 1.1 spec to support this. I'm confused and was wondering if anyone here had any more info on MS .NET interop with Java. Will .NET 2.2 support rpc / lit or not? I've read the MS argument that there's "no need for RPC" to begin with, but that aside, it's still supported by the BP and is part of the SOAP spec. On top of that rpc/encoded is not supported by the BP yet MS supports this anyway! Very frustrating! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875291#3875291 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875291 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Using wscompile for doc/lit
This is really a wscompile question, but I thought I'd ask here to see if anyone could help. I am able create and deploy a doc/lit service as described in the Wiki, but I find the process to be a real pain. Here's what I'm talking about. You create an interface such as: | public interface MathService extends Remote | { |public int add( int a, int b ) throws RemoteException; | } | Then run the wscompile tool to get the generated server code and mapping files etc. then (this is the annoying part) you have change your interface and implementation to use the complex types generated for you: | public interface MathService extends Remote | { |public MyService_add_ResponseStruct add( MyService_add_RequestStruct req ) throws RemoteException; | } | Now... if I was done that would be one thing, but now say I want to make a change to my interface. I can't just rerun the wscompile tool on my new class, I have to change it back first. Is it possible to just start with an interface such as: | public interface MathService extends Remote | { |public AddReply add( AddParams params ) throws RemoteException; | } | And keep wscompile from generating it's own complex types? I seem to recall this being how to do it AXIS... Anyway, I'd like it if the development of the service was more like that used for RPC style. Is that possible? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875289#3875289 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875289 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Custom exception containing an array
Hi all, I am trying to get custom exceptions to work. I have succeeded in getting a simple custom exception to work, that I can catch on the client and get the error etc. I am using: - JBoss 4.0.2RC1 - Document literal service For example, the following works fine: | public class CustomException extends Exception | { |private int errorCode; | |public CustomException( String message, int errorCode ) |{ | super( message ); | this.errorCode = errorCode; |} | |public int getErrorCode() |{ | return errorCode; |} | } | However, when I change this to contain an array of errors, I get an exception thrown on the server. For example, this does not work: | package com.danny; | | public class CustomException extends Exception | { |private int[] errorCodes; | |public CustomException( String message, int[] errorCodes ) |{ | super( message ); | this.errorCodes = errorCodes; |} | |public int[] getErrorCodes() |{ | return errorCodes; |} | } | My deployment descriptors etc. should be fine since I don't change them when I go from the simple example to the one with the array. I just rebuild the generated files using wscompile and redeploy. Is there any known reason why this should not work? Here is the RemoteException caught on the client side: | Apr 18, 2005 8:41:00 AM com.sun.xml.messaging.saaj.soap.MessageImpl | SEVERE: SAAJ0535: Unable to internalize message | | java.rmi.RemoteException: HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message; nested exception is: | HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message | at com.danny.CustomExceptionDocLitService_Stub.throwException(CustomExceptionDocLitService_Stub.java:91) | at com.danny.CustomExceptionDocLitClient.testException(CustomExceptionDocLitClient.java:49) | at com.danny.CustomExceptionDocLitClient.test(CustomExceptionDocLitClient.java:30) | at com.danny.CustomExceptionDocLitClient.main(CustomExceptionDocLitClient.java:67) | Caused by: HTTP transport error: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message | at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:140) | at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:92) | at com.danny.CustomExceptionDocLitService_Stub.throwException(CustomExceptionDocLitService_Stub.java:68) | ... 3 more | Any insight on this would be much appreciated ;-) Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874312#3874312 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874312 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Returning a complex type
Good question, especially since my final product will have to do just that ;-) I'll give it a try and see what happens. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874302#3874302 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874302 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Determining who called web service
Never mind... I think I got it ;) I called MessageContext.getPropertyNames() to see what was available and there it was... remoteaddr! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872767#3872767 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872767 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Determining who called web service
Hi all, Is it possible to log details about the caller of your web method in a Handler? I have created a handler which I can use to extract the username and password from the MessageContext for authentication purposes. I'd also like to create a logging Handler to log other details. In particular, I've been trying to figure out how to tell the IP of the caller. Is it possible to identify the caller in the Handler? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872766#3872766 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872766 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Returning a complex type
That did it! Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872724#3872724 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872724 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Returning a complex type
I have a web service deployed as rpc-literal. I have two methods, one returns an int, the other a complex type "Persion". What steps do I need to follow to get serialzation/deserialization of my complex type to work? I've found alot of examples of web services using simple types... none with complex types. Returning the int works fine in my client, but when I try to call getPerson(), I get an exception: | java.rmi.RemoteException: Runtime exception; nested exception is: | unexpected element name: expected=result, actual={urn:Foo}Person | at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318) | at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300) | at com.danny.CalculatorService_Stub.getPerson(CalculatorService_Stub.java:69) | at com.danny.CalculatorClient.main(CalculatorClient.java:22) | Caused by: unexpected element name: expected=result, actual={urn:Foo}Person | at com.danny.CalculatorService_getPerson_ResponseStruct_LiteralSerializer.doDeserialize(CalculatorService_getPerson_ResponseStruct_LiteralSerializer.java:57) | at com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216) | at com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124) | at com.danny.CalculatorService_Stub._deserialize_getPerson(CalculatorService_Stub.java:174) | at com.danny.CalculatorService_Stub._readFirstBodyElement(CalculatorService_Stub.java:157) | at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215) | ... 2 more I use wscompile to create both the server and the client. The client using the command: wscompile -gen:client -f:rpcliteral -f:wsi -mapping jaxrpc-mapping.xml -d build -keep config.xml My config.xml looks like this: | http://java.sun.com/xml/ns/jax-rpc/ri/config";> | http://xxx:8080/CalculatorService/CalculatorService?wsdl"; | packageName="com.danny"/> | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872617#3872617 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872617 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Hide WSDL
Hi all, Is there a way to keep the WSDL for a deployed web service from being displayed when a user uses the URL http://abc.com/servce?wsdl? If so, is it possible to hide only selected WSDL but allow others to be displayed? I have to host several web services on the same server, some of which I want to be public knowledge, others I need to be hidden. Is this possible? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872093#3872093 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872093 --- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Step by step tutorial for document style web services
Thanks Thomas, this helps a lot! I know now what I was missing from my implementation. I had a String parameter, but the stubs were created with a complex type parameter, and I never changed my implementation side to match this. So I figure that will fix the problem I was seeing here: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=60115 The bad news is that I'm not too keen on client side interface that document style services exposes, I'd much rather an RPC type interface. But, like you said, it looks like we're headed towards document. On top of that .NET won't work with RPC/literal. The solution from what I can see is document/wrapped which gives the best of both worlds, and is what .NET uses. I know AXIS supports this type with their tools (although I'm not sure if it works in practice). Is there any movement to go to wrapped style with JBossWS? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866385#3866385 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866385 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Step by Step Tutorials
Sorry before when I said replace "-f:server" I meant to say replace the "-f:rpcliteral" with "-f:documentliteral"... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866287#3866287 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866287 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Step by Step Tutorials
Thanks, it's great to see these tutorials. But why do you use rpc/literal services when document/literal is what is more interoperable with other platforms? .NET just ignores rpc/literal services... Any chance of getting a tutorial to show what would be different in these tutorials to deploy and consume the same service if it were deployed as document literal? For the life of me I can't get that to work. It seems to me it should be just a matter of replacing "-f:server" with "-f:client" in the wscompile command, but that doesn't seem to work. Maybe I'm just doing something stupid, but I can't find examples of dcc/literal anywhere! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866286#3866286 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866286 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Document literal services
I'm new to JBossWS, but have experience using AXIS. I'm having trouble with using document/literal for my web services in JBossWS. I have written a very simple service (as a standard JSE not an EJB): 1 method that takes a String parameter and no return value. I can easily expose and use this as a rpc/literal service and consume it from a java client (using wscompile). However .NET doesn't support rpc/literal.. so I need doc literal. This is where things get frustrating... I rebuild my service with the same config.xml, and webservices.xml file using wscompile. I assume these files are fine, since they work for rpc literal. wscompile -gen:server -mapping WEB-INF/mapping.xml -d WEB-INF/wsdl -cp ./bin -f:documentliteral config.xml Then I put all the files in the right place in the WEB-INF directory and WAR it up. It deploys fine, and I can view the WSDL and create a client... BUT when I try to invoke the client I get an exception (from both .NET and Java). From the .NET client I get this: anonymous wrote : | Unhandled Exception: System.InvalidOperationException: Client found response con | tent type of 'text/html;charset=utf-8', but expected 'text/xml'. | The request failed with the error message: | -- | Apache Tomcat/5.0.28 - Error report HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that p | revented it from fulfilling this request.exception java.l | ang.NullPointerException | org.apache.axis.encoding.DeserializationContextImpl.getTypeMapping(Deser | ializationContextImpl.java:604) | org.apache.axis.encoding.DeserializationContextImpl.getDeserializer(Dese | rializationContextImpl.java:564) | org.apache.axis.encoding.DeserializationContextImpl.getDeserializerForTy | pe(DeserializationContextImpl.java:596) | org.apache.axis.message.SOAPFaultBuilder.onStartChild(SOAPFaultBuilder.j | ava:370) | org.apache.axis.encoding.DeserializationContextImpl.startElement(Deseria | lizationContextImpl.java:1166) | org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) | | org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown | Source) | org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis | patcher.dispatch(Unknown Source) | org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno | wn Source) | org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) | org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) | org.apache.xerces.parsers.XMLParser.parse(Unknown Source) | org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) | javax.xml.parsers.SAXParser.parse(Unknown Source) | org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio | nContextImpl.java:258) | org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:657) | org.apache.axis.Message.getSOAPEnvelope(Message.java:430) | org.apache.axis.Message.getContentType(Message.java:496) | org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:1041) | | org.jboss.webservice.server.ServiceEndpointServlet.doPost(ServiceEndpoin | tServlet.java:84) | javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j | ava:370) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte | r.java:75) | note The full stack trace of the root cause is available | in the Apache Tomcat/5.0.28 logs. I get the same type of error from a java client created using wscompile. Am I missing something about doc/lit here? The documentation available on how to perform this for doc/lit is sparse and poor... I thought I might have to specify a serializer/deserializer but I have no complex types. Thanks for the help... this is driving me nuts View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866268#3866268 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866268 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user