From do-not-reply at jboss.com Tue May 1 05:05:41 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 1 May 2007 05:05:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error with JbossWS in JbossAS 4.0.4 Message-ID: <8486515.1178010341396.JavaMail.jboss@colo-br-02.atl.jboss.com> Here is my env: JbossAS = 4.0.4 GA JbossWS = 1.2.1 GA Java = 1.5 I have created a webservice and deployed it in JbossAS. During deployment I got the following error: ==================================== 14:08:48,110 INFO [TomcatDeployer] deploy, ctxPath=/Echo, warUrl=.../tmp/deploy/tmp34622Echo-exp.war/ 14:08:48,281 INFO [WSDLFilePublisher] WSDL published to: file:/D:/Program Files/jboss-4.0.4.GA/server/default/data/wsdl/Echo.war/EchoImplService34623.wsdl 14:08:48,297 ERROR [MainDeployer] Could not start deployment: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/Echo.war java.lang.NoSuchMethodError: com.sun.xml.bind.api.JAXBRIContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext; at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:67) at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:54) at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(ParameterMetaData.java:470) at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:466) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516) at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490) at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192) at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112) at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646) at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140) at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96) 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 $Proxy47.start(Unknown Source) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at sun.reflect.GeneratedMethodAccessor12.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 $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 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 $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755) 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.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 $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) at org.jboss.Main.boot(Main.java:200) at org.jboss.Main$1.run(Main.java:464) at java.lang.Thread.run(Thread.java:595) 14:08:48,391 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ 14:08:48,656 ERROR [URLDeploymentScanner] Incomplete Deployment listing: ============================================ However I was able to see my wsdl thru "http://localhost:8080/Echo/Echo?wsdl" link. And I wrote the WS client in C# and trying to execute it but getting the exception in C#. I went and looked into server log file and following error has been showed: =============================================== 4:15:49,547 ERROR [SOAPFaultHelperJAXWS] SOAP request exception javax.xml.rpc.soap.SOAPFaultException: Endpoint cannot handle requests in state: CREATED at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:176) at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) 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.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) ========================================== Pls help me to resolve this issue, I was trying since 2 whole days to successfully deploy a simple webservice on jboss, but I couldnt. Need somebody help. Thanks in advance. Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042036#4042036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042036 From do-not-reply at jboss.com Tue May 1 07:00:49 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 1 May 2007 07:00:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS servlet initializing error during deployment of j Message-ID: <16060372.1178017249623.JavaMail.jboss@colo-br-02.atl.jboss.com> "oskar.carlstedt" wrote : Hi Trivedi! | | Can you please give me some more of your code. Then I might help you. I have been struggeling al lot now an finally found a solution that seems to work for me. | | //Oskar | Hi Oskar, Sorry for the late response from my side. Currently I again started working on web services, got stuck now with the above issue. Here is the code that I written: Here is my wsdl ---------------------------------------------------------------------- ---------------------------------------------------------- Using Jax-WS generated the java classes from it. Here is the interface that got created with it ================================ @WebService(name = "Echo", targetNamespace = "http://echo/") public interface Echo { /** * * @param arg0 * @return * returns java.lang.String */ @WebMethod @WebResult(targetNamespace = "") @RequestWrapper(localName = "echo", targetNamespace = "http://echo/", className = "echo.Echo_Type") @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://echo/", className = "echo.EchoResponse") public String echo( @WebParam(name = "arg0", targetNamespace = "") String arg0); } The Implementation Class is here: package echo; @javax.jws.WebService(endpointInterface="echo.Echo", portName="EchoPort") public class EchoImpl implements Echo{ public String echo(String arg0) { return "hi " + arg0; } } Here are the artifacts that i created for this service: 1. web.xml Echo Echo JAX-WS endpoint - InteropWS com.sun.xml.ws.transport.http.servlet.WSServlet 1 Echo /Echo 2. sun-jaxws.xml And after this I created the war from it by adding the following jars into WEB-INF lib folder 1. jaxws-api.jar 2.jaxws-rt.jar 3. jaxws-tools.jar 4. jsr181-api.jar 5.jsr250-api.jar After deploying I was getting the above error. Pls help me in running this service. Thanks in advance. Again I am really sorry for the late reply. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042046#4042046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042046 From do-not-reply at jboss.com Tue May 1 09:00:13 2007 From: do-not-reply at jboss.com (timeagentess) Date: Tue, 1 May 2007 09:00:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Autogeneration of wrapper beans not supported with JAXRPC Message-ID: <15567420.1178024413618.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I am using JBoss as the application server for deploying web services. In particular, I use wscompile to generate the wsdl file, and I am starting from java beans with xdoclet annotations. The rpc/literal web services work perfectly, even tested them with a .NET client, arrays are passed ok as well. When I set wscompile to use document/literal (without any other modifications), though, JBoss complains on deployment about the .ear file and says : org.jboss.deployment.DeploymentException: Cannot start service endpoint; - nested throwable: (org.jboss.ws.WSException: Autogeneration of wrapper beans not supported with JAXRPC) The only Google hits when searching for that error point to the JBossWS SVN repository. Browsing through the JBossWS SVN, I suspect that one of these two operations: + ClassLoader loader = getOperationMetaData().getEndpointMetaData().getClassLoader(); + wrapperBean = JavaUtils.loadJavaType(javaTypeName, loader); returns a null in the loadWrapperBean() method in the org.jboss.ws.metadata.umdm.ParameterMetaData class. But these are only speculations. Has someone any idea regarding this problem, perhaps something that I am doing wrong? Or maybe a more straightforward way of building document/literal WS, if nothing else? Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042070#4042070 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042070 From do-not-reply at jboss.com Tue May 1 09:29:56 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 1 May 2007 09:29:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Pls help me in running simple document/literal webservice on Message-ID: <8049298.1178026196165.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, Since many days I was trying to run a simple document/literal webserivce on jboss. Today I am successfully able to run RPC style webservice, but I couldnt able to run doc/literal. I was using JbossAS 4.0.4GA and JbossWS1.2.1. Can anyone tell me, step by step process for creating document/literal web services on jboss using WSDL First approach. Its really a great help If I get any documentation on it. Pls pls pls help me........... Thanks in advance, Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042078#4042078 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042078 From do-not-reply at jboss.com Tue May 1 10:51:25 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 1 May 2007 10:51:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - java.lang.NoSuchMethodError during webservice deployment Message-ID: <14736720.1178031085104.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am deploying a document style webservice on jboss4.0.4GA and jbossws1.2.1. I was getting the following error: ================================= 2007-05-01 20:06:07,788 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/TestDoc.war java.lang.NoSuchMethodError: com.sun.xml.bind.api.JAXBRIContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext; at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:67) at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:54) at org.jboss.ws.metadata.umdm.ParameterMetaData.eagerInitialize(ParameterMetaData.java:470) at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:466) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516) at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502) at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490) at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192) at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112) at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646) at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140) at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144) at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96) 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 $Proxy47.start(Unknown Source) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at sun.reflect.GeneratedMethodAccessor12.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 $Proxy6.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) ================================== Pls help me in resolving this issue. Thanks,' trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042105#4042105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042105 From do-not-reply at jboss.com Tue May 1 11:24:42 2007 From: do-not-reply at jboss.com (grdzeli_kaci) Date: Tue, 1 May 2007 11:24:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Generate WSDL (From JBoss Eclipse IDE or Command line) Message-ID: <24845209.1178033082522.JavaMail.jboss@colo-br-02.atl.jboss.com> hi all, i am newbie on this, i need help. i have documentation about Jboss Web Services and i am trying to run one small example (This is Thomas Diesler's example) here is example from doc: 1. Remote Interface : | import javax.ejb.Remote; | public interface EJB3RemoteInterface { | String echo(String input); | } | 2. Implementation | import javax.annotation.Resource; | import javax.ejb.Remote; | import javax.ejb.SessionContext; | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import org.jboss.annotation.ejb.RemoteBinding; | import org.jboss.ws.annotation.WebContext; | | /** | * Test the JSR-181 javax.jws.WebService annotation on an EJB3 endpoint. | * | * Uses the wsdlLocation attribute. | * | * @author Thomas.Diesler at jboss.org | * @since 29-Apr-2005 | */ | @WebService( | name = "EndpointInterface", | targetNamespace = "http://www.openuri.org/2004/04/HelloWorld", | serviceName = "TestService", | wsdlLocation = "META-INF/wsdl/TestService.wsdl") | @WebContext(contextRoot = "/jaxws-samples-webservice02-ejb3", urlPattern = "/*") | @SOAPBinding(style = javax.jws.soap.SOAPBinding.Style.RPC) | @Remote(EJB3RemoteInterface.class) | @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface") | @Stateless | public class EJB3Bean02 implements EJB3RemoteInterface { | @Resource | SessionContext sessionContext; | @WebMethod | public String echo(String input) { | System.out.println("Reseive = " + input); | return input + " - Reseived"; | } | } | 3. soapui-project.xml | | | | /CustomerCare/bin | src | /home/paatal/InstalledPrograms/jbossws-1.2.1.GA/install/bin | true | true | | | i add JbossWs Nature For My Project from right click on project and add JBossWS -> Add JBossWS Nature, I want generate WSDL from this class (EJB3Bean02) after all i tried to generate wsdl from right click on this class and JBossWS -> Publish as web service, enter some parameters and than click generate but i got an error like this : | | Running JBossWS wstools for [CustomerCare] | directory: /home/paatal/InstalledPrograms/Temp/Workshop_Studio_3.2_589/workspace/CustomerCare | command: sh -c .//home/paatal/InstalledPrograms/jbossws-1.2.1.GA/install/bin/wstools.sh -cp bin -config /tmp/wstools-config52642.xml -dest /home/paatal/InstalledPrograms/Temp/Workshop_Studio_3.2_589/workspace/CustomerCare/src | -cp: .//home/paatal/InstalledPrograms/jbossws-1.2.1.GA/install/bin/wstools.sh: No such file or directory | There is Incorrect path (There is two backslash - > ".//" i don't know why :( ) Is This JBoss Eclipse IDE Bug or maybe i have something incorrect i configure my JBossWS Instalation Directory From Window -> Preferances -> JBoss Eclipse IDE -> Integrated Tools and set classpath for JBossWS wstools : "/home/paatal/InstalledPrograms/jbossws-1.2.1.GA/install/bin" am i right ? can anybody help me on it ??? after all i tried to generate wsdl from command line without JBoss Eclipse IDE | paatal at paatal:~/InstalledPrograms/jbossws-1.2.1.GA/install/bin> ./wstools.sh -cp bin -config /tmp/wstools-config52642.xml -dest /home/paatal/InstalledPrograms/Temp/Workshop_Studio_3.2_589/workspace/CustomerCare/src | but i got another error like This : | Exception in thread "main" java.lang.NoClassDefFoundError: javax/jws/soap/SOAPBinding$ParameterStyle | at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:105) | at org.jboss.ws.tools.WSTools.process(WSTools.java:133) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | did i something incorrect ? can anybody help me ? Regards, Paata. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042125#4042125 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042125 From do-not-reply at jboss.com Tue May 1 12:10:43 2007 From: do-not-reply at jboss.com (timeagentess) Date: Tue, 1 May 2007 12:10:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Autogeneration of wrapper beans not supported with JAXRP Message-ID: <31886111.1178035843156.JavaMail.jboss@colo-br-02.atl.jboss.com> SOLVED! It turns out several automatically generated files (xx_RequestStruct, xx_ResponseStruct, etc.) are not copied to the ejb.jar and that's why they're not found on deployment. Why the rpc/literal works under those conditions is still a mystery to me, but the doc/lit works when you add those files in the ejb.jar and then remake the .ear file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042155#4042155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042155 From do-not-reply at jboss.com Tue May 1 22:27:35 2007 From: do-not-reply at jboss.com (thanatosis) Date: Tue, 1 May 2007 22:27:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how to deal with unicode Message-ID: <21967104.1178072855954.JavaMail.jboss@colo-br-02.atl.jboss.com> I wrote a little library that can do simple translations, for example, i can select an operation such as english -> russian. Then if i send my library the string "greetings" it will return to me "??????" (privet) in cyrillic. Since java stores it's strings in unicode, this is all very easy, so long as the result string gets output with something like this : PrintStream out = new PrintStream(System.out, true, "UTF-8"); out.print(results); I'm trying to wrap a POJO web service around it, and it works fine with latin chars, but with things like cyrillic, something in the soap stack is mangling up my result string. I don't know what kind of output encoding the xml writer is using, but the string it generates is useless. is it possible to tell the soap stack to use UTF-8? I'm not sure what can be done to solve my problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042272#4042272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042272 From do-not-reply at jboss.com Wed May 2 05:00:55 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 2 May 2007 05:00:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to deal with unicode Message-ID: <30028338.1178096455306.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually I think this is a JBossWS (installer) bug ? The WSDL and Soap headers default to UTF-8, but the characters sent are in the machines java default encoding! I did a "hot fix" to add the system property | "file.encoding=UTF-8" | to the jvm running JBossWS, thus changing the default file !? encoding of the complete jboss installation. Afterwards UTF-8 handling worked as expected (before that jbossws 1.2 used the default file encoding of the installation (was iso latin 1 on my machine) Has anyone found the correct way to configure the file encoding of jbossws 1.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042332#4042332 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042332 From do-not-reply at jboss.com Wed May 2 10:01:24 2007 From: do-not-reply at jboss.com (bypaik) Date: Wed, 2 May 2007 10:01:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss JAXRPC SOAP client type mapping problem Message-ID: <11935081.1178114484311.JavaMail.jboss@colo-br-02.atl.jboss.com> hi, i've been stuck on this issue for a few days and have no idea what's causing the following stack track: org.jboss.ws.WSException: Cannot obtain java type mapping for: {urn:grainger-com:xi:addrval_webservice:types}>AddrRequest at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processDocElement(JAXRPCMetaDataBuilder.java:627) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:886) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:214) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:216) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:133) at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:85) at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) i'm using JBoss 4.0.5 on jdk 1.4 (i have no choice but to use jdk 1.4 and thus can't use the newer ws api). my wsdl looks like the following: ... ... wstools successfully generates the java files for the 2 objects, the service and remote interfaces. however, the debug logging shows the following similar errors: org.jboss.ws.tools.helpers.MappingFileGeneratorHelper:getJavaTypeAsString:758 - Typemapping lookup failed for {urn:grainger-com:xi:addrval_webservice:types}AddrRequest org.jboss.ws.tools.helpers.MappingFileGeneratorHelper:getJavaTypeAsString:759 - Falling back to identifier generation org.jboss.ws.tools.helpers.MappingFileGeneratorHelper:getJavaTypeAsString:758 - Typemapping lookup failed for {urn:grainger-com:xi:addrval_webservice:types}AddrResponse org.jboss.ws.tools.helpers.MappingFileGeneratorHelper:getJavaTypeAsString:759 - Falling back to identifier generation although i have used wstools to generate the java classes, i am not using the JBoss generated jaxrpc-mapping.xml to create the service instance. the following is my java code: ServiceFactoryImpl factory = new ServiceFactoryImpl(); QName namespace = new QName("urn:me-com:xi:addrval_webservice", "BusService_Grp1AddrVal_WebService"); ServiceImpl service = null; try { service = (ServiceImpl) factory.createService(this.getURL(wsdlLocation), namespace); } catch (ServiceException sex) { // whoops } return service; it appears that the JBoss api cannot successfully find the elements from the messages. why would that be? i have validated my wsdl vs. the w3c specifications (or at least i think i have) and the wsdl can successfully hit the service via XmlSpy. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042426#4042426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042426 From do-not-reply at jboss.com Wed May 2 10:13:11 2007 From: do-not-reply at jboss.com (thanatosis) Date: Wed, 2 May 2007 10:13:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to deal with unicode Message-ID: <10162592.1178115191961.JavaMail.jboss@colo-br-02.atl.jboss.com> I actually tried that too, but it didn't work for me, here's the jboss process running on my linux box.. 340 pts/0 Sl 1:10 /usr/java/jdk1.5.0_11/bin/java -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=UTF-8 -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.endorsed.dirs=/var/www/jboss/lib/endorsed -classpath /var/www/jboss/bin/run.jar:/usr/java/jdk1.5.0_11/lib/tools.jar org.jboss.Main Shouldn't there be some way to configure the output encoding for each webservice? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042431#4042431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042431 From do-not-reply at jboss.com Wed May 2 11:59:09 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 2 May 2007 11:59:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to deal with unicode Message-ID: <24029349.1178121549543.JavaMail.jboss@colo-br-02.atl.jboss.com> Well, it should work then (solved my problems, though). Actually make sure that your console will handle UTF-8 correctly, alternatively you might want to direct the output into a file and check it with an editor/hex editor of your choice, or generate a html file to check it with a web-browser. (is much easier than configuring an arbitrary linux console to show utf-8 :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042502#4042502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042502 From do-not-reply at jboss.com Wed May 2 12:38:43 2007 From: do-not-reply at jboss.com (bypaik) Date: Wed, 2 May 2007 12:38:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss JAXRPC SOAP client type mapping problem Message-ID: <32662135.1178123923682.JavaMail.jboss@colo-br-02.atl.jboss.com> after digging through the jboss source, it's apparent that i have to reference the wstools generated jaxrpc-mapping.xml file. so i have to use the jboss ServiceImpl.createService(URL, QName, URL) method to create my service. but i am still running into an issue regarding the lack of a reference for wsdl:message's wsdl:part and the element types. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042520#4042520 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042520 From do-not-reply at jboss.com Wed May 2 15:34:27 2007 From: do-not-reply at jboss.com (PatrickMadden) Date: Wed, 2 May 2007 15:34:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsprovide : NoClassDefFoundError: com/sun/codemodel/JExpress Message-ID: <15377009.1178134467777.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I'm running wsprovide.bat provided in the JBoss4.2.0.CR2 buid. I'm getting the following error trying to generate client side artifacts: anonymous wrote : | wsprovide: | [echo] /c C:/apps/jboss/jboss-4.2.0.CR2/bin/wsprovide.bat --show-traces -c ../CloosterRichWeb/classes/model -w -k -o ./bin -s ./src com.clooster.web.services.db.EJB3RemoteDBServiceBean | [exec] Error: Could not generate. (use --show-traces to see full traces) | [exec] java.lang.NoClassDefFoundError: com/sun/codemodel/JExpression | [exec] at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContractProviderImpl.java:104) | [exec] at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContractProviderImpl.java:134) | [exec] at org.jboss.ws.tools.jaxws.command.wsprovide.generate(wsprovide.java:167) | [exec] at org.jboss.ws.tools.jaxws.command.wsprovide.main(wsprovide.java:76) | [exec] Result: 1 | It works when I run wsconsume.bat when the web service is already deployed. Any help is greatly appreciated. Thanks, PVM View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042582#4042582 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042582 From do-not-reply at jboss.com Thu May 3 05:33:32 2007 From: do-not-reply at jboss.com (grdzeli_kaci) Date: Thu, 3 May 2007 05:33:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot find port in wsdl (need help) Message-ID: <26672124.1178184812111.JavaMail.jboss@colo-br-02.atl.jboss.com> hi all, am trying to resolve this problem for a week, could anybody help me please ? i download jbossws 1.2.1GA there is example and i am trying to run it. 1.EndpointInterface | import java.rmi.Remote; | import java.rmi.RemoteException; | | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | /** | * Test the JSR-181 annotation: javax.jws.WebService | * This interface is only used in the client deployment. | * | * @author Thomas.Diesler at jboss.org | * @since 29-Apr-2005 | */ | @WebService | @SOAPBinding(style = Style.RPC) | public interface EndpointInterface extends Remote | { | String echo(String input) throws RemoteException; | } | 2. EJB3RemoteInterface | import java.rmi.RemoteException; | | public interface EJB3RemoteInterface extends EndpointInterface{ | String echo(String input) throws RemoteException; | } | 3. EJB3Bean02 | import java.rmi.RemoteException; | | import javax.ejb.Remote; | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import org.jboss.annotation.ejb.RemoteBinding; | import org.jboss.ws.annotation.WebContext; | | /** | * Test the JSR-181 javax.jws.WebService annotation on an EJB3 endpoint. | * | * Uses the wsdlLocation attribute. | * | * @author Thomas.Diesler at jboss.org | * @since 29-Apr-2005 | */ | @WebService( | endpointInterface="mypackage.EndpointInterface", | portName = "EJB3RemoteInterfacePort", | name = "mypackage.EndpointInterface", | targetNamespace = "http://org.jboss.ws/samples/jsr181ejb", | serviceName = "EJB3Bean02", | wsdlLocation = "WEB-INF/wsdl/EJB3Bean02.wsdl") | | @WebContext(contextRoot = "/jaxws-samples-webservice02-ejb3", urlPattern = "/*") | @SOAPBinding(style = SOAPBinding.Style.RPC) | @Remote(EJB3RemoteInterface.class) | @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface") | @Stateless | public class EJB3Bean02 implements EJB3RemoteInterface { | | @WebMethod | public String echo(String input)throws RemoteException { | System.out.println("Reseive = " + input); | return input + " - Reseived"; | } | } | after this i tryed to generate wsdl from this class and i got files like this: 1.EJB3Bean02.wsdl | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2.jaxrpc-mapping.xml | | | mypackage | urn:mypackage.types | | | mypackage.EJB3Bean02 | serviceNS:EJB3Bean02 | | EJB3RemoteInterfacePort | EJB3RemoteInterfacePort | | | | mypackage.EJB3RemoteInterface | portTypeNS:EJB3RemoteInterface | bindingNS:EJB3RemoteInterfaceBinding | | echo | echo | | 0 | java.lang.String | | wsdlMsgNS:EJB3RemoteInterface_echo | String_1 | IN | | | | java.lang.String | wsdlMsgNS:EJB3RemoteInterface_echoResponse | result | | | | | 3.web.xml | | | | /ejb3/EJB3EndpointInterface | mypackage.EJB3Bean02 | | | /ejb3/EJB3EndpointInterface | /* | | | 4.webservices.xml | | | EJB3Bean02 | META-INF/wsdl/EJB3Bean02.wsdl | META-INF/jaxrpc-mapping.xml | | EJB3RemoteInterfacePort | portNS:EJB3RemoteInterfacePort | mypackage.EJB3RemoteInterface | | /ejb3/EJB3EndpointInterface | | | | | after all when i tried to deploy this project i got an error : | 13:23:22,998 INFO [Ejb3Deployment] EJB3 deployment time took: 19 | 13:23:23,426 ERROR [ServiceEndpointDeployer] Cannot create service endpoint | org.jboss.ws.WSException: Cannot find port in wsdl: {http://org.jboss.ws/samples/jsr181ejb}EJB3RemoteInterfacePort | at org.jboss.ws.metadata.builder.MetaDataBuilder.replaceAddressLocation(MetaDataBuilder.java:378) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:170) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77) | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) | at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | 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 $Proxy44.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.GeneratedMethodAccessor11.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 $Proxy6.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | 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) | 13:23:23,427 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: WSTest.jar | 13:23:23,427 ERROR [MainDeployer] Could not create deployment: file:/export/home/jboss/jboss-4.0.4.GA/server/all/deploy/WSTest.jar | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (org.jboss.ws.WSException: Cannot find port in wsdl: {http://org.jboss.ws/samples/jsr181ejb}EJB3RemoteInterfacePort) | at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:83) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | 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 $Proxy44.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.GeneratedMethodAccessor11.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 $Proxy6.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | 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) | Caused by: org.jboss.ws.WSException: Cannot find port in wsdl: {http://org.jboss.ws/samples/jsr181ejb}EJB3RemoteInterfacePort | at org.jboss.ws.metadata.builder.MetaDataBuilder.replaceAddressLocation(MetaDataBuilder.java:378) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:170) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77) | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) | at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) | ... 28 more | | can anybody help me, what i did incorrect ??? Regards, Paata View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042762#4042762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042762 From do-not-reply at jboss.com Thu May 3 08:15:48 2007 From: do-not-reply at jboss.com (Andre1001) Date: Thu, 3 May 2007 08:15:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0CR2 with JEMS 1.2 (and JBoss 4.0.5) fails Message-ID: <3053157.1178194548350.JavaMail.jboss@colo-br-02.atl.jboss.com> "thomas.diesler at jboss.com" wrote : This is a classpath issue. Make sure jboss-jaxrpc.jar is seen first. | | In 4.0.5 the legacy JAXRPC API is also in jbossall-client.jar. This will cahnge in jboss-4.2.0 Got the same problem with 4.2.0 and with 4.0.5 + jbossws-1.2.1.GA: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107728 How can I be sure that jboss-jaxrpc.jar is seen first!? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042801#4042801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042801 From do-not-reply at jboss.com Fri May 4 07:18:47 2007 From: do-not-reply at jboss.com (marcusn) Date: Fri, 4 May 2007 07:18:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JAX-RPC does not allow collection types? Message-ID: <13071280.1178277527763.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to create a webservice that returns a bean containing a collection. Something like this: @WebService class Service { A getA(); } class A { public Collection getX(); }; class B { .. }; I get the following in JBoss log (running 4.0.5): JAX-RPC does not allow collection types skipping: X I searched the JAXB specs as JAX-WS delegates xml encoding to JAXB, but I either could not understand or find anything about collections. The JAXB API docs suggests that it should be handled. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043138#4043138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043138 From do-not-reply at jboss.com Fri May 4 07:20:37 2007 From: do-not-reply at jboss.com (marcusn) Date: Fri, 4 May 2007 07:20:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC does not allow collection types? Message-ID: <19690377.1178277637681.JavaMail.jboss@colo-br-02.atl.jboss.com> | Collection above is supposed to be Collection. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043141#4043141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043141 From do-not-reply at jboss.com Fri May 4 10:58:47 2007 From: do-not-reply at jboss.com (Benhei) Date: Fri, 4 May 2007 10:58:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to use Username Token Message-ID: <29439513.1178290727102.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, can you show me, how you config the serversite please.. I've similar problems i think... I'm not sure if i config my server right.. thanks a lot Ben View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043233#4043233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043233 From do-not-reply at jboss.com Sat May 5 08:40:34 2007 From: do-not-reply at jboss.com (shaiknoor_basha) Date: Sat, 5 May 2007 08:40:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - can any one know how to return a collection object in a @web Message-ID: <1987633.1178368834097.JavaMail.jboss@colo-br-02.atl.jboss.com> please help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043448#4043448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043448 From do-not-reply at jboss.com Sat May 5 14:09:24 2007 From: do-not-reply at jboss.com (MichelRobert) Date: Sat, 5 May 2007 14:09:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - After Adding WSDL to JBossWS, the Message-ID: <11912575.1178388564043.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I seem to have some sort of configuration problem. When I "Add a WSDL" to my project using JBossWS, the IDE reads in the wsdl, but does not actually populate the "JBossWS Web Services" entry in package Explorer. After lots of tests, I finally manged to get an error message: "Error importing wsdl: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA" Note the wsdl does not contains any CDATA. In fact, this is the wsdl that is generated by JBossIDE from the basic HelloWorld example. So you would think it would not object to anything in it! I should also mention that it is my understanding that when the JbossIDE generates the wsdl, that a wsdl entry should appear under "JBossWS Web Services". This does not happen in my IDE (which is the "JBoss Bundle" that includes Eclipse). The wsdl is actualy created though. Any help anyone might offer to help resolve this problem would be greatly appreciated. MR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043475#4043475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043475 From do-not-reply at jboss.com Sat May 5 15:53:20 2007 From: do-not-reply at jboss.com (omatzura) Date: Sat, 5 May 2007 15:53:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: After Adding WSDL to JBossWS, the Message-ID: <19057311.1178394800586.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! You will need to switch to the "Project Explorer" view instead of the "Package Explorer" to see the WSDL under the JBossWS Web Services node. does that help? regards, /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043481#4043481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043481 From do-not-reply at jboss.com Sun May 6 01:13:47 2007 From: do-not-reply at jboss.com (MichelRobert) Date: Sun, 6 May 2007 01:13:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: After Adding WSDL to JBossWS, the Message-ID: <8613238.1178428427805.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you so very much for the quick reply! And you've made my day (well night now) - as your suggestion does in fact fix the problem. Now that I have the "Project Explorer" up, the "JBossWS Web Services" node appears populated just as shown in the documentation. Now I can actually start doing some real work! Tack s? mycket! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043499#4043499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043499 From do-not-reply at jboss.com Sun May 6 07:30:00 2007 From: do-not-reply at jboss.com (omatzura) Date: Sun, 6 May 2007 07:30:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: After Adding WSDL to JBossWS, the Message-ID: <5851825.1178451000213.JavaMail.jboss@colo-br-02.atl.jboss.com> hehe.. det var s? lite.. /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043512#4043512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043512 From rickcr at gmail.com Mon May 7 11:08:22 2007 From: rickcr at gmail.com (Rick Reumann) Date: Mon, 7 May 2007 11:08:22 -0400 Subject: [jbossws-users] Patching 4.0.5 with EJB 3.0 RC6 - PFD, then install JBossWS - question Message-ID: <583d4dff0705070808l4ca5e644y87ea32297585c3f3@mail.gmail.com> Currently we are patching JBoss 4.0.5 with the EJB 3.0 RC6 PFD patch found here: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063 I would then like to make sure we can leverage JAX-WS, so I'm following the install guide of jbossWS at http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS One of things I noticed is that the first patch removes the jbossws14.sar and adds a file (not a dir) of "jbossws.sar." Then the jbossws ant install for jboss4.0 tries to remove either of the dirs "jbossws.sar" or "jbossws14.sar" and replace it with it's version of the jbossws.sar. The install fails here since the first patch added a file not a dir - an easy fix to the install.xml of the jbossws with the added line fixes this.. I'm wondering is there are any other issues to be aware of following this procedure of patching 4.0.5 with the EJB3.0 patch and then installing jbossws? I guess we could just be safer and use the jems installation of 4.0.5 and then install jbossws. (I just know we had things working pretty well with the patched version, so I'm not wanting to change too much at once.) From do-not-reply at jboss.com Mon May 7 11:50:23 2007 From: do-not-reply at jboss.com (MichelRobert) Date: Mon, 7 May 2007 11:50:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Generate JBossWS Artifacts: Error occurs Message-ID: <22578322.1178553023404.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, When I attempt to generate JBossWS Artifacts, a NullPointerException occurs upon a call to handleWSDLToJavaGeneration(...). I've looked on line for clues to this behavior, and found several references to this problem. The only 'suggested fix' is to make sure that wstools-config.xml is in the path. Although it does look like the problem is a "file not found" type-of-error, I do not understand why JBossWS would have any trouble finding a temporary file it created (wstools-config49256.xml). So perhaps the problem is elsewhere? Any ideas? It looks like this problem has been encountered before, and the solution is probably something really simple! Below is the log that is displayed in the console window: Running JBossWS wstools for [HelloWorld] directory: E:\java\jboss-4.0.5.GA\bin command: cmd.exe /C wstools.bat -config C:\DOCUME~1\MRS\LOCALS~1\Temp\wstools-config49256.xml -dest E:\java\Eclipse4Jbossws\workspace\mm3\src ==============================================" . WSTools Environment . JBOSS_HOME: E:\java\jboss-4.0.5.GA\bin\\.. . JAVA: E:\java\jdk6\bin\java . JAVA_OPTS: . ===============================================" . Exception in thread "main" java.lang.NullPointerException at java.io.File.(File.java:222) at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:282) at org.jboss.ws.tools.WSTools.process(WSTools.java:137) at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) at org.jboss.ws.tools.WSTools.main(WSTools.java:58) This is wstools-config49256.xml (formatted for legibility): =============================================== View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043697#4043697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043697 From do-not-reply at jboss.com Mon May 7 11:50:34 2007 From: do-not-reply at jboss.com (rieman4d) Date: Mon, 7 May 2007 11:50:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unable to create a WSClient that uses jboss-wsse-client. Message-ID: <28331339.1178553034945.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm getting the same error as Richard K: SOAPFaultException: Endpoint {http://org.jboss.ws/xabraws}WebServiceImplPort does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData The server log SOAPMessage trace shows the client request is encrypted, but the server gets the exception above. Richard, did you find a way to fix your problem? Thanks, Ron C View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043698#4043698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043698 From do-not-reply at jboss.com Mon May 7 12:03:31 2007 From: do-not-reply at jboss.com (omatzura) Date: Mon, 7 May 2007 12:03:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Generate JBossWS Artifacts: Error occurs Message-ID: <14752674.1178553811352.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, which jbossws version are you using? /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043703#4043703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043703 From rickcr at gmail.com Mon May 7 14:47:08 2007 From: rickcr at gmail.com (Rick Reumann) Date: Mon, 7 May 2007 14:47:08 -0400 Subject: [jbossws-users] How to change the context of the wsdl url? Message-ID: <583d4dff0705071147l4ff19773vd52062c10576b846@mail.gmail.com> I would have thought there would be an annotation on the WebService annotation to do this, but I can't seem to find one... What I need is a way to change the context of the generated wsdl url. I would think this question would come up quite frequently since often times the server you deploy to might have a different context then what users might use to access the application. Maybe I'm just googling poorly, but any help would be appreciated. -- Rick From do-not-reply at jboss.com Mon May 7 19:59:38 2007 From: do-not-reply at jboss.com (tzhou) Date: Mon, 7 May 2007 19:59:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS 1.2.1 issues Message-ID: <6844290.1178582378729.JavaMail.jboss@colo-br-02.atl.jboss.com> I've been using JBossWS 1.2.1 along with Sun's Wiseman API for WS-Management development. Let's say it's an eye-opening experience. After days of hard debugging, here are some of the issues (or non-issues) I found. Either case, I hope my time spent can be of some value. 1. WRONG_DOCUMENT_ERR when marshaling a SOAP document complaining that caller tries to append a node to another node that belongs to a different owner document Turns out the problem was caused by DOMUtils, which uses ThreadLocal to keep track of owner document. This would work fine if everything is in the same thread. But in my case, Wiseman code constructs a response message, and then pass that response object to a separate handler thread for further processing. And that becomes a _problem_. I'm not sure about the rationale behind the threadlocal mechanism, but to me assuming all DOM processing is in one thread is simply dangerous. Thoughts? 2. JAXB and JBossWS compatibility issue The upper-level code (Wiseman) constructs a SOAP message, and uses JAXB to marshal content to the body, something like "marshaller.marshal(contentObj, getBody())". The result: only the top-level node gets added to the body, but not its decedents. After some digging, I found the problem was caused by SOAPBodyImpl.appendChild(), which constructs a new child from the existing child node. This apparently is a problem for JAXB, since the subsequent tree construction is all based on the original child node. FYI, I'm using JBossWS 1.2.1GA. -Ting View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043805#4043805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043805 From do-not-reply at jboss.com Tue May 8 06:18:05 2007 From: do-not-reply at jboss.com (clkanth) Date: Tue, 8 May 2007 06:18:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss 4.0.2 + JbossWS 1.2.1 Integration problem Message-ID: <5038079.1178619485411.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I used the installation procedures in the install.txt file of JBossWS 1.2.1 to integrate with JBoss 4.0.2. I executed "ant deploy-jboss40" command which said the build was successfull. But if I run JBoss, I get the following exception. Any pointers for resolving is highly appreciated. Thanks in advance -------------------------------------------------------------------------------------- 15:17:08,821 ERROR [MainDeployer] could not create deployment: file:/C:/chilal/AllOthers/jboss-4.0.2/server/al l/deploy/jbossws40.sar/ org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.ws.integration.jboss42.De ployerInterceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean; - nested throwable: (j ava.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.integration.jboss42.DeployerInt erceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean) ------------------------------------------------------------------------------------- org.jboss.deployment.DeploymentInfo at 34f8ecfc { url=file:/C:/chilal/AllOthers/jboss-4.0.2/server/all/deploy/jbo ssws40.sar/ } deployer: org.jboss.deployment.SARDeployer at 5fcf29 status: Deployment FAILED reason: Unexpected error during load of: org.jboss.ws.integration.jboss42.Deployer InterceptorJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean; - nested throwable: (java.la ng.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.integration.jboss42.DeployerIntercept orJSE, msg=org/jboss/ws/integration/jboss42/DeployerInterceptorJSEMBean) state: FAILED watch: file:/C:/chilal/AllOthers/jboss-4.0.2/server/all/deploy/jbossws40.sar/META-INF/jboss-service.xml altDD: null lastDeployed: 1178619339469 lastModified: 1178615714944 Thanks CLK View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043875#4043875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043875 From do-not-reply at jboss.com Tue May 8 06:29:53 2007 From: do-not-reply at jboss.com (clkanth) Date: Tue, 8 May 2007 06:29:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error deploying webservice on Tomcat 5.5 + JBossWS 1.2.1 Message-ID: <15171116.1178620193716.JavaMail.jboss@colo-br-02.atl.jboss.com> I used Tomcat 5.5 (Standalone) + JBossWS1.2.1. The Integration is successful. The jbossws-deploy directory is also created. But when a deploy the WebService that is compliant of JAX-WS & JSR 181, I get the below error. Any help is highly appreciated. ----------------------------------------------------------------------------- ERROR [TomcatServiceEndpointPublisher] Cannot deploy file: C:\Program Files\Apache Software Foundation\Tomcat 5.5\jbossws-deploy\InvetoryServices.war java.io.IOException: Destination must be a directory. at org.jboss.util.file.JarUtils.unjar(JarUtils.java:260) at org.jboss.ws.integration.tomcat.wspublish.process(wspublish.java:68) at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.publishServiceEndpoint(TomcatServiceEndpointPublisher.java:80) at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.deployFile(TomcatServiceEndpointPublisher.java:135) at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.scanDeployDir(TomcatServiceEndpointPublisher.java:112) at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher.access$100(TomcatServiceEndpointPublisher.java:44) at org.jboss.ws.integration.tomcat.TomcatServiceEndpointPublisher$Scanner.run(TomcatServiceEndpointPublisher.java:192) at java.lang.Thread.run(Unknown Source) -------------------------------------------------------------------------------------- Below are the main steps of the sample build file i am using. Thanks and Regards CLK View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043880#4043880 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043880 From do-not-reply at jboss.com Tue May 8 06:38:26 2007 From: do-not-reply at jboss.com (clkanth) Date: Tue, 8 May 2007 06:38:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems by jbossws-deploy Message-ID: <21413015.1178620706727.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Please let me know if you fixed the problem u mentioned in this topic, as I too get the same exception. Thanks CLK View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043884#4043884 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043884 From do-not-reply at jboss.com Tue May 8 08:30:32 2007 From: do-not-reply at jboss.com (hugin78) Date: Tue, 8 May 2007 08:30:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Not registered: jboss.ws:service=ServiceRefHandler Message-ID: <23316793.1178627432775.JavaMail.jboss@colo-br-02.atl.jboss.com> Upgrading to Jboss 4.2 CR2 solved the problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043913#4043913 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043913 From do-not-reply at jboss.com Tue May 8 08:58:18 2007 From: do-not-reply at jboss.com (clkanth) Date: Tue, 8 May 2007 08:58:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.2 + JbossWS 1.2.1 Integration problem Message-ID: <19159161.1178629098268.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS 1.2.1 does not support JBoss AS 4.0.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043918#4043918 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043918 From do-not-reply at jboss.com Tue May 8 10:30:45 2007 From: do-not-reply at jboss.com (MichelRobert) Date: Tue, 8 May 2007 10:30:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Generate JBossWS Artifacts: Error occurs Message-ID: <20717629.1178634645094.JavaMail.jboss@colo-br-02.atl.jboss.com> Below I have listed all the 'configuration/installation' items that I could think of. Please let me know if I've forgotten something. Thanks! When Attempting to Generate JBossWS Artifacts, the arguments used are: + Use cached WSDL = YES + Mapping file = jaxrpc-mapping.xml + Unwrap = YES + Namespace Mapping = urn:jbosstest My Configuration is as follows: JBoss 4.0.5.GA JBossWS 1.2.1.GA JBossIDE 2.0.0.Beta2 (includes Eclipse) Java EE SDK 5-02 To install JBossWS, I unpacked jbossws-1.2.1.GA.zip into E:\JBOSSWS\ and then followed the direction in Install.tx: 1.) Copy ant.properties.examples to ant.properties 2.) Modify the target container location in ant.properties, which gives me: # Optional JBoss Home jboss40.home=e:/java/jboss-4.0.5.GA # The JBoss server instance jboss.server.instance=default 3.) Execute: ant deploy-jboss40 Below is the console output generated by ant: Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. E:\java\JBOSSWS>ant Buildfile: build.xml BUILD SUCCESSFUL Total time: 0 seconds E:\java\JBOSSWS>ant deploy-jboss40 Buildfile: build.xml prepare: deploy-jboss40: [copy] Copying 10 files to E:\java\jboss-4.0.5.GA\client [copy] Copying 3 files to E:\java\jboss-4.0.5.GA\server\default\lib [delete] Deleting directory E:\java\jboss-4.0.5.GA\server\default\deploy\jbos sws.sar [mkdir] Created dir: E:\java\jboss-4.0.5.GA\server\default\deploy\jbossws.sa r [unjar] Expanding: E:\java\JBOSSWS\install\integration-jboss40\jbossws40.sar into E:\java\jboss-4.0.5.GA\server\default\deploy\jbossws.sar [copy] Copying 1 file to E:\java\jboss-4.0.5.GA\client [copy] Copying 1 file to E:\java\jboss-4.0.5.GA\lib [delete] Deleting directory E:\java\jboss-4.0.5.GA\server\default\deploy\judd i-service.sar [mkdir] Created dir: E:\java\jboss-4.0.5.GA\server\default\deploy\juddi-serv ice.sar [unzip] Expanding: E:\java\JBOSSWS\install\thirdparty\juddi-service.sar into E:\java\jboss-4.0.5.GA\server\default\deploy\juddi-service.sar BUILD SUCCESSFUL Total time: 3 seconds E:\java\JBOSSWS> Michel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043946#4043946 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043946 From do-not-reply at jboss.com Tue May 8 14:03:40 2007 From: do-not-reply at jboss.com (tcavaleiro) Date: Tue, 8 May 2007 14:03:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <19680102.1178647420020.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I've installed JBossWS 1.2 on JBoss AS 4.0.5 (with EJB 3.0) and I'm getting that error too. Maybe I'm asking about ordinary things but I'm just a beginner (in this world)...by the way I've already made a few things with JBoss Seam (it's great). I'm gonna post all the output I get from JBoss.. | =============================================================================== | | JBoss Bootstrap Environment | | JBOSS_HOME: C:\Programas\jboss-4.0.5.GA\bin\\.. | | JAVA: c:\Programas\Java\jdk1.5.0_09\bin\java | | JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=36000 | 00 | | CLASSPATH: c:\Programas\Java\jdk1.5.0_09\lib\tools.jar;C:\Programas\jboss-4.0.5.GA\bin\\run.jar | | =============================================================================== | | 18:56:26,078 INFO [Server] Starting JBoss (MX MicroKernel)... | 18:56:26,078 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339) | 18:56:26,078 INFO [Server] Home Dir: C:\Programas\jboss-4.0.5.GA | 18:56:26,078 INFO [Server] Home URL: file:/C:/Programas/jboss-4.0.5.GA/ | 18:56:26,078 INFO [Server] Patch URL: null | 18:56:26,078 INFO [Server] Server Name: default | 18:56:26,078 INFO [Server] Server Home Dir: C:\Programas\jboss-4.0.5.GA\server\default | 18:56:26,078 INFO [Server] Server Home URL: file:/C:/Programas/jboss-4.0.5.GA/server/default/ | 18:56:26,078 INFO [Server] Server Log Dir: C:\Programas\jboss-4.0.5.GA\server\default\log | 18:56:26,078 INFO [Server] Server Temp Dir: C:\Programas\jboss-4.0.5.GA\server\default\tmp | 18:56:26,078 INFO [Server] Root Deployment Filename: jboss-service.xml | 18:56:26,343 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc. | 18:56:26,343 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_09-b01,Sun Microsystems Inc. | 18:56:26,343 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 18:56:26,906 INFO [Server] Core system initialized | 18:56:28,734 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml | 18:56:30,484 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://10.64.139.35:3873/] | 18:56:33,140 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704161533) | 18:56:38,437 ERROR [JUDDIService] JNDI Bind Failed:JAXR | 18:56:38,437 ERROR [STDERR] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Recei | ve timed out] | 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317) | 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) | 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484) | 18:56:38,437 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) | 18:56:38,437 ERROR [STDERR] at javax.naming.InitialContext.rebind(InitialContext.java:367) | 18:56:38,437 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.bindJAXRConnectionFactory(JUDDIService.java:383) | 18:56:38,437 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.setBindJaxr(JUDDIService.java:320) | 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,437 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,437 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608) | 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694) | 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332) | 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460) | 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | 18:56:38,437 ERROR [STDERR] at org.jboss.system.ServiceController.install(ServiceController.java:226) | 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,437 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,437 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,437 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 18:56:38,437 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | 18:56:38,437 ERROR [STDERR] at $Proxy4.install(Unknown Source) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | 18:56:38,453 ERROR [STDERR] at $Proxy6.deploy(Unknown Source) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.jav | a:263) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | 18:56:38,453 ERROR [STDERR] at $Proxy0.start(Unknown Source) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | 18:56:38,453 ERROR [STDERR] at $Proxy4.start(Unknown Source) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | 18:56:38,453 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 18:56:38,453 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 18:56:38,453 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 18:56:38,453 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 18:56:38,453 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | 18:56:38,453 ERROR [STDERR] at $Proxy5.deploy(Unknown Source) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | 18:56:38,453 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | 18:56:38,453 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200) | 18:56:38,453 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490) | 18:56:38,453 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) | 18:56:38,453 ERROR [STDERR] Caused by: java.net.SocketTimeoutException: Receive timed out | 18:56:38,453 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive0(Native Method) | 18:56:38,453 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) | 18:56:38,453 ERROR [STDERR] at java.net.DatagramSocket.receive(DatagramSocket.java:712) | 18:56:38,453 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287) | 18:56:38,453 ERROR [STDERR] ... 105 more | 18:56:39,562 INFO [SnmpAgentService] SNMP agent going active | 18:56:39,921 INFO [WebService] Using RMI server codebase: http://PORTABLE:8083/ | | (other things...) | | By the way, anyone solved the problem? Thanks for the help! Tiago. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044009#4044009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044009 From do-not-reply at jboss.com Tue May 8 15:45:15 2007 From: do-not-reply at jboss.com (stattit) Date: Tue, 8 May 2007 15:45:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Getting "java.lang.NoClassDefFoundError: javax/annotation/Po Message-ID: <3487327.1178653515907.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, AM trying to use the UsernameToken Profile in code and everything seems to be OK at the client side. Using tcpmon, I am able to see the in the header. However at the server end, I am getting the following stack trace. | 14:53:23,718 INFO [STDOUT] ~ | java.lang.NoClassDefFoundError: javax/annotation/PostConstruct | at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.callPostConstruct(HandlerResolverImpl.java:194) | at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.addHandler(HandlerResolverImpl.java:160) | at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.initHandlerChain(HandlerResolverImpl.java:134) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:80) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.callRequestHandlerChain(AbstractServiceEndpointInvoker.java:112) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:162) | at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:212) | at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | 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.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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 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) | Tcpmon output is | | POST /fsb-securityservice-1.0.0/AuthenticationService?datatype=JBossWSMessage HTTP/1.1 | Authorization: Basic Z29vZHVzZXI6Z29vZHBhc3N3b3Jk | SOAPAction: "http://com.fsb.security/services/authentication/authenticateUser" | Content-Type: text/xml; charset=UTF-8 | JBoss-Remoting-Version: 2 | User-Agent: JBossRemoting - 2.0.0 GA (Boon) | Host: localhost:8000 | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | Connection: keep-alive | Content-Length: 634 | | goodusergoodpasswordgooduser | | We are using JBoss AS 4.0.5 GA and JBossWS 1.2.1 GA. Looking through the source and the distribution the only reference to javax/annotation/PostConstruct is in the jbossws-thirdparty.jar file under the integration-tomcat folder. Placing that file under the JBoss AS 4.0.5 installation causes other weird errors. Am I missing something? Any help in this matter is appreciated. If any additional information is needed, I will gladly provide it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044047#4044047 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044047 From do-not-reply at jboss.com Wed May 9 08:06:47 2007 From: do-not-reply at jboss.com (tremalnaik) Date: Wed, 9 May 2007 08:06:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Server redirected too many times (20) Message-ID: <16348628.1178712407233.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm developing a JAX-RPC service to let a remote application invoke a method on a server. I invoke the service on a secure (https) channel and verify user identity using JAAS authentication. Everything works fine, if the remote password matches, otherwise it looks that the client keeps on trying many times (or the server redirects, I don't know). I don't like this beahviour since due the security policies after 3 retries the user is disabled. I'd like only one attempt with the wrong password is made. The point is that I get the following errors. On the server: 12:13:10,016 ERROR [ROM] [_system_] com.bitaplus.bitastar.common.exception.InvalidPasswordException: Invalid password for user 'login' | at com.bitaplus.bitastar.business.util.CurveUserHelper.performValidateLogin(CurveUserHelper.java:141) | at com.bitaplus.bitastar.business.ejbs.implementations.StarAccessBean.validateLogin(StarAccessBean.java:66) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | ..... | | [***THIS IS REPEATED MANY TIMES***] | On the client: | 2007-05-09 12:13:10,491 [http-8080-Processor24] ERROR [ROM] [login] org.jboss.ws.metadata.wsdl.WSDLException: java.net.ProtocolException: Server redirected too many times (20) | at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:198) | at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:106) | at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:263) | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:113) | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:85) | at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:143) | [snip] | Caused by: java.net.ProtocolException: Server redirected too many times (20) | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source) | at java.net.URL.openStream(Unknown Source) | at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:181) | ... 45 more | The client code: | // setting up the authenticator (BasicAuthenticator extends java.net.Authenticator) | BasicAuthenticator ba = new BasicAuthenticator(username, password); | Authenticator.setDefault(ba); | // setting a relaxed host verifier (to avoid too strict the server name checking) | HttpsURLConnection.setDefaultHostnameVerifier(new NiceVerifier()); | // get service | String urlstr = "https://cor319.cor-fs.com:8443/bitatraveller/TravellerSynchronizer"; | URL url = new URL(urlstr); | String ns = "https://ws.web.bitastar.bitaplus.com/"; | QName qname = new QName(ns, "TravellerSynchronizer"); | QName port = new QName(ns, "TravellerSynchronizerIfacePort"); | QName operation = new QName(ns, "synchronize"); | ServiceFactoryImpl sfi = new ServiceFactoryImpl(); | // read mapping file | File mapping = new File("mapping.xml"); | Service service = sfi.createService(url, qname, mapping.toURL()); | // call service | Call call = service.createCall(port, operation); | ClientCharacteristics cc = (ClientCharacteristics) call.invoke(new Object[] { characters }); | I don't want to bother you with all my configuration files (WSDL & mapping.xml) since I think they are correct, otherwise the service didn't work if the passwords match. There isn't any valve in the middle or elements which may perform redirections. Can you help me to configure the service so it only performs one login attempt, please? Alternatively, can you point me to the right resources? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044252#4044252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044252 From do-not-reply at jboss.com Wed May 9 11:01:32 2007 From: do-not-reply at jboss.com (rieman4d) Date: Wed, 9 May 2007 11:01:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ws-security: Problem using encryption Message-ID: <10426100.1178722892167.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm getting the same error as Kristoff and Brian: javax.xml.ws.soap.SOAPFaultException: Endpoint {http://org.jboss.ws/xabraws}WebServiceImplPort does not contain operation meta data for: {http://www.w3.org/2001/04/xmlenc#}EncryptedData at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:70) at org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS.throwFaultException(SOAP12BindingJAXWS.java:120) at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:531) ... The server log SOAPMessage trace shows the client request is encrypted, but the server gets the exception above, and does not decrypt the message. Has anyone solved this problem? Thanks, Ron C View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044348#4044348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044348 From do-not-reply at jboss.com Wed May 9 11:31:03 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 9 May 2007 11:31:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to deal with unicode Message-ID: <28645724.1178724663706.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! It looks like you have a space between the - and D character in -Dfile.encoding... //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044366#4044366 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044366 From do-not-reply at jboss.com Wed May 9 12:57:03 2007 From: do-not-reply at jboss.com (fred2210) Date: Wed, 9 May 2007 12:57:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Max (object.array{object.array{object.attr1}}) depth ? Message-ID: <32768913.1178729823367.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, My service has got a webmethod with an object as param. This object contains an array of another object, which contains an array of another object, which contains 2 attributes. The service receives the first object with his array, but the array is full of null objets. At the client side, no object is null. I don't understand. Any idea ? Is there a limit of depth ? Thank you. Fred. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044412#4044412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044412 From do-not-reply at jboss.com Thu May 10 02:57:45 2007 From: do-not-reply at jboss.com (bjorn.engdahl) Date: Thu, 10 May 2007 02:57:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues? Message-ID: <19065947.1178780265726.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same issue with 4.0.5 running on Solaris 10, JDK 1.5. Anybody knows about a resolution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044581#4044581 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044581 From do-not-reply at jboss.com Thu May 10 05:28:00 2007 From: do-not-reply at jboss.com (mandarkul) Date: Thu, 10 May 2007 05:28:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - calling a web service from the standlone client Message-ID: <6741175.1178789280374.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to access a web service deployed on JBoss thtough a statndalone client. The web service is deployed sucessfully as I can see the web service in JBoss's web service console(jbossws). But when i execute the following code : | public static void main(String[] args) { | try { | String nameSpaceURL = "http://webservice.test.com/"; | String webServiceURL = "http://127.0.0.1:4040/MySessionBeanService/MySessionBean?wsdl"; | URL wsdlLocation = new URL(webServiceURL); | QName serviceQ = new QName(nameSpaceURL,"testService"); | Service service = Service.create(wsdlLocation,serviceQ); | MySession mysession = service.getPort(MySession.class); | mysession.sayHello(); | } catch (MalformedURLException e) { | e.printStackTrace(); | } | } | | I get a very strange exception with the stack trace as follows : Exception in thread "main" java.lang.NoSuchMethodError: javassist.ClassPool.(Z)V | at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.init(DynamicWrapperGenerator.java:71) | at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.(DynamicWrapperGenerator.java:66) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.initWrapperGenerator(JAXWSMetaDataBuilder.java:856) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.resetMetaDataBuilder(JAXWSMetaDataBuilder.java:862) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:258) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:274) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:263) | at javax.xml.ws.Service.getPort(Service.java:185) | at org.jboss.ws.core.jaxws.client.ServiceExt.getPort(ServiceExt.java:123) | at sample.WebServiceClient.main(WebServiceClient.java:23) I also get a Log4j warning as, log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder). | log4j:WARN Please initialize the log4j system properly. But I don't think that this warning can lead to such a weird error. I have following jars from jboss.home/client/lib on classpath : jaxb-xjc.jar stax-api-1.0.jar sjsxp.jar jaxb-api.jar jaxb-impl.jar activation.jar jboss-jaxws.jar jboss-saaj.jar jbossws-client.jar jboss-xml-bindig.jar stax-api.jar xercesImpl.jar mail.jar Can anyone help me to solve the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044617#4044617 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044617 From do-not-reply at jboss.com Thu May 10 14:12:26 2007 From: do-not-reply at jboss.com (trivedi) Date: Thu, 10 May 2007 14:12:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Webservice deployment error with JbossWS Message-ID: <5537451.1178820746373.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using jboss4.0.4GA and jbossws-1.0.4.GA. I am doing wsdl first approach. using jaxws I generated java classes. when i deploy the war into jboss, it is throwing the following WARN.. 23:31:08,656 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: java.security.cert.CertPath.certificates 23:31:08,671 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.gehcit.platform.ws.types.docreg._1.FindDocumentsQuery.availabilityStatus 23:31:08,687 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.gehcit.platform.ws.types.wrapper._1.CodeListCriteria.matchValues 23:31:08,687 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.gehcit.platform.ws.types.docreg._1.FindDocumentsResponse.documentInfo 23:31:08,703 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.gehcit.platform.ws.types.docreg._1.GetAffinityDomainsResponse.affinityDomain Its basically removing the collections that has been generated from the jaxb compiler. when i see my wsdl (ie generated one), these fields are missing from it, let me know what should i do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044771#4044771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044771 From do-not-reply at jboss.com Fri May 11 06:01:53 2007 From: do-not-reply at jboss.com (bk8133) Date: Fri, 11 May 2007 06:01:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - XOP testCase Message-ID: <16142325.1178877713572.JavaMail.jboss@colo-br-02.atl.jboss.com> Greetings! I'm trying to produce a webservice according to the XOP testcase in examples. I implemented endpoint interface and implementing bean. | | package si.zejn.agentpro.core.ws; | | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.xml.ws.BindingType; | | @WebService(targetNamespace = "http://ws.core.agentpro.zejn.si/") | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) | @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true") | public interface MTOMEndpoint | { | public DHResponse getSlikaByID(); | | | | } | | | @WebService(name = "MTOMEndpoint", serviceName = "MTOMService", endpointInterface = "si.zejn.agentpro.core.ws.MTOMEndpoint") | public class WServiceAP_Pictures { | | | @Resource | WebServiceContext wsCtx; | | | public DHResponse getSlikaByID() { | | | FileDataSource fds=new FileDataSource("c:/pics/slika.jpg"); | DataHandler dh=new DataHandler(fds); | return new DHResponse(dh); | } | | | | } | But when invoking the service i get "IllegalAnnotationsException". Any ideas? Eternally greatful.. :) PS. which way is more intuitive and better to use MTOM/XOP or SwA. I'm trying to provide interfaces for a Delphi Client | 11:49:56,984 ERROR [AbstractServiceEndpointServlet] Error processing web service request | javax.xml.ws.WebServiceException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions | javax.activation.DataHandler does not have a no-arg default constructor. | this problem is related to the following location: | at javax.activation.DataHandler | at public javax.activation.DataHandler si.zejn.agentpro.core.ws.DHResponse.getDataHandler() | at si.zejn.agentpro.core.ws.DHResponse | | at org.jboss.ws.core.jaxws.JAXBSerializer.handleMarshallException(JAXBSerializer.java:109) | at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:89) | at org.jboss.ws.core.jaxrpc.binding.SerializerSupport.serialize(SerializerSupport.java:61) | at View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044926#4044926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044926 From do-not-reply at jboss.com Fri May 11 11:40:01 2007 From: do-not-reply at jboss.com (gryffin) Date: Fri, 11 May 2007 11:40:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume schema type reference problem Message-ID: <10778593.1178898001262.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using wsconsume to build the server classes necessary for a top-down implementation of a ws. I get an error that seems to indicate it can't find the type description, but it's there. C:\wsdev\jboss2>wsconsume -k -p com.boeing.nmt.server.ws -o gen -s src NlsSoap.wsdl | Invalid wsdl:operation "AssetAssociationSet": its a rpc-literal operation, message part must refer | to a schema type declaration | at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.fail(WSDLModeler.java:2788) | Excerpt from WSDL binding: | | | | ... | Excerpt from portType: | | | | | ... | Excerpt from message: | | | | | | | | ... | Excerpt from schema: | | | | | | | | | | | | ... | Is there some mistake in the WSDL parts shown that prevent wsconsume from matching the schema type with the binding? To me, it looks good. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045045#4045045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045045 From do-not-reply at jboss.com Fri May 11 15:25:23 2007 From: do-not-reply at jboss.com (mars58) Date: Fri, 11 May 2007 15:25:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume - Problems regarding http://www.w3.org/2001/XMLSch Message-ID: <23144159.1178911523484.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I am using wsconsume to generate the client side components for a web service written in .NET. Originally my error was: warning: src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but componen ts from this namespace are not referenceable from schema document 'http://dev-bi services/Reporting/ReportRequest.asmx?WSDL#types?schema1'. If this is the incorr ect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http ://dev-biservices/Reporting/ReportRequest.asmx?WSDL#types?schema1'. line 0 of http://dev-biservices/Reporting/ReportRequest.asmx?WSDL#types?schema 1 error: undefined element declaration 's:schema' line 0 of http://dev-biservices/Reporting/ReportRequest.asmx?WSDL#types?schema 1 org.xml.sax.SAXParseException: undefined element declaration 's:schema' at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildMo del(WSDLModeler.java:213) at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(Mode lInfo.java:88) So I got local copies of the dtds and added the following import statement to a local copy of the WSDL... Now I am getting the following errors: C:\jboss-4.0.5.GA\bin>wsconsume -k C:\jboss-4.0.5.GA\bin\wstools\BI.wsdl warning: rcase-Recurse.2: There is not a complete functional mapping between the particles. line 405 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd warning: derivation-ok-restriction.5.4.2: Error for type 'complexRestrictionType'. The particle of the type is not a valid restriction of the particle of the base. line 405 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd warning: rcase-Recurse.2: There is not a complete functional mapping between the particles. line 451 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd warning: derivation-ok-restriction.5.4.2: Error for type 'simpleRestrictionType'. The particle of the type is not a valid restriction of the particle of the base. line 451 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd warning: rcase-Recurse.2: There is not a complete functional mapping between the particles. line 749 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd warning: derivation-ok-restriction.5.4.2: Error for type 'all'. The particle of the type is not a valid restriction of the particle of the base. line 749 of file:/C:/jboss-4.0.5.GA/bin/wstools/XMLSchema.xsd error: Two declarations cause a collision in the ObjectFactory class. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 error: (Related to above error) This is the other declaration. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 error: Two declarations cause a collision in the ObjectFactory class. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 error: (Related to above error) This is the other declaration. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 error: Two declarations cause a collision in the ObjectFactory class. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 error: (Related to above error) This is the other declaration. line 0 of file:/C:/jboss-4.0.5.GA/bin/wstools/BI.wsdl#types?schema1 com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration. at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213) at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88) at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82) at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543) at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57) at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163) at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166) at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:193) at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76) Caused by: com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration. at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:128) at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2207) at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:224) at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:181) ... 8 more Caused by: com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration. at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:66) at com.sun.tools.xjc.generator.bean.ObjectFactoryGeneratorImpl.populate(ObjectFactoryGeneratorImpl.java:152) at com.sun.tools.xjc.generator.bean.PublicObjectFactoryGenerator.populate(PublicObjectFactoryGenerator.java:19) at com.sun.tools.xjc.generator.bean.BeanGenerator.(BeanGenerator.java:210) at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:151) at com.sun.tools.xjc.model.Model.generateCode(Model.java:230) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:217) at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:67) at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:126) ... 11 more error: com.sun.istack.SAXParseException2: (Related to above error) This is the other declaration. Here is the WSDL: Sorry for the post from hell, but any help would be much appreciated. -Rob. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045109#4045109 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045109 From drf at blackchairdvd.com Sat May 12 14:45:52 2007 From: drf at blackchairdvd.com (Douglas Fraser) Date: Sat, 12 May 2007 19:45:52 +0100 Subject: [jbossws-users] Namespace problem: Requested element {http://gaws.mec.com/rta/ws/types}businessDate is not allowed in this position in the sequence. Message-ID: <46460B60.1040102@blackchairdvd.com> hi everyone, I have JBoss 4.0.5.GA, and am using JBoss WS 1.2.1. I have created a web service (using wstools - not wscompile etc) and the beans, ear etc deploy fine. The WSDL generated from wstools looks ok (to me). But when I try to use a client written in PHP (using the SOAP extension) I am getting this all the time: Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element {http://gaws.mec.com/rta/ws/types}businessDate is not allowed in this position in the sequence. The next element should be businessDate at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:219) at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:159) at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:277) at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:323) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) this is the SOAP Request 2007-05-02T12:00:00 testing OPEN As you can see, the fields within the notifyStatusChange structure are given a namespace of ns1. the WSDL is defined as such: .... and so on so .... obviously JBoss does not like the subfields being tagged with a namespace (as far as I can tell, all my research has been of no help). But I can't figure out how to get the PHP client to stop tagging the subfields. I am not an expert on WSDL etc so I am not even sure if the PHP client should be doing that. Should something in the WSDL change (as the PHP is working off that as a basis)? So... is there anything I can do to the Java code to get it to stop being so sensitive? Is this a valid error? Or does anyone know what to do in the PHP (I tried using the nusoap library and that worked even worse...)? Or do I just have to write a Java based client for testing as anything-but-java is not up to spec like JBossWS is? But then the real client (another company using Microsoft .NET) is probably going to have problems.... Help! thanks doug From do-not-reply at jboss.com Sat May 12 17:50:43 2007 From: do-not-reply at jboss.com (lafr) Date: Sat, 12 May 2007 17:50:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues? Message-ID: <26120393.1179006643116.JavaMail.jboss@colo-br-02.atl.jboss.com> The problem has been solved with JBossWS 1.2.1. See http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS how to install JBossWS or checkout JBoss-4.0.5.SP1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045232#4045232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045232 From do-not-reply at jboss.com Sun May 13 11:55:56 2007 From: do-not-reply at jboss.com (marco.ciatti) Date: Sun, 13 May 2007 11:55:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <4282816.1179071756637.JavaMail.jboss@colo-br-02.atl.jboss.com> I've just installed Jbossws.1.2.1.GA on my jboss 4.0.5, following the installation instruction and during the AS restart I've noticed the following error indication; nevertheless the http://localhost:8080/jbossws seems "alive"... Does anybody know which is the root cause of this error indication ? 2007-05-13 17:31:16,250 ERROR [org.jboss.jaxr.juddi.JUDDIService] JNDI Bind Failed:JAXR 2007-05-13 17:31:16,250 ERROR [STDERR] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) 2007-05-13 17:31:16,250 ERROR [STDERR] at javax.naming.InitialContext.rebind(InitialContext.java:367) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.bindJAXRConnectionFactory(JUDDIService.java:383) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jboss.jaxr.juddi.JUDDIService.setBindJaxr(JUDDIService.java:320) 2007-05-13 17:31:16,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,250 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,250 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,250 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,250 ERROR [STDERR] at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) 2007-05-13 17:31:16,265 ERROR [STDERR] at org.jboss.system.ServiceController.install(ServiceController.java:226) 2007-05-13 17:31:16,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,265 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,265 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,265 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 2007-05-13 17:31:16,281 ERROR [STDERR] at $Proxy4.install(Unknown Source) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) 2007-05-13 17:31:16,281 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 2007-05-13 17:31:16,281 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,281 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,281 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,281 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 2007-05-13 17:31:16,296 ERROR [STDERR] at $Proxy7.deploy(Unknown Source) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) 2007-05-13 17:31:16,296 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,312 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) 2007-05-13 17:31:16,312 ERROR [STDERR] at $Proxy0.start(Unknown Source) 2007-05-13 17:31:16,312 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,312 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,328 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 2007-05-13 17:31:16,328 ERROR [STDERR] at $Proxy4.start(Unknown Source) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 2007-05-13 17:31:16,328 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) 2007-05-13 17:31:16,328 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2007-05-13 17:31:16,328 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 2007-05-13 17:31:16,328 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 2007-05-13 17:31:16,343 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 2007-05-13 17:31:16,343 ERROR [STDERR] at $Proxy5.deploy(Unknown Source) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200) 2007-05-13 17:31:16,343 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:490) 2007-05-13 17:31:16,343 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) 2007-05-13 17:31:16,359 ERROR [STDERR] Caused by: java.net.SocketTimeoutException: Receive timed out 2007-05-13 17:31:16,359 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive0(Native Method) 2007-05-13 17:31:16,359 ERROR [STDERR] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) 2007-05-13 17:31:16,359 ERROR [STDERR] at java.net.DatagramSocket.receive(DatagramSocket.java:712) 2007-05-13 17:31:16,359 ERROR [STDERR] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287) 2007-05-13 17:31:16,359 ERROR [STDERR] ... 105 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045286#4045286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045286 From do-not-reply at jboss.com Sun May 13 16:03:18 2007 From: do-not-reply at jboss.com (marco.ciatti) Date: Sun, 13 May 2007 16:03:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <23172917.1179086598879.JavaMail.jboss@colo-br-02.atl.jboss.com> The problem was due to a wrong ServiceBindingManager configuration... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045306#4045306 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045306 From do-not-reply at jboss.com Sun May 13 21:06:31 2007 From: do-not-reply at jboss.com (jopere) Date: Sun, 13 May 2007 21:06:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSSecurity not working Message-ID: <11020358.1179104791066.JavaMail.jboss@colo-br-02.atl.jboss.com> I have created web service that uses a POJO endpoint and have successfully connected to it from a servlet. Now I am trying to add WSSecurity to it, using signed certificates. When I run the client, it connects to the web service, but the message is not signed. I verify this by monitoring the soap message, which does not include any of the wsse tags. I am using: JBoss 4.0.4.GA with the default JBossWS installed JDK 1.5.0_07 JWSDP 2.0 Compiling the service using wstools Compiling the client using wscompile I Used OpenSSL to created the signed certificates/keystore/truststore After reading both the JBossWS User Guide and the JAX-WS User Guide as well as many posts to this forum I used the following setup for the web serivice and client. Web Service: included jboss-wsse-server.xml, standard-jaxrpc-endpoint-config.xml, server.truststore and client.keystore in web-inf, along with normal deployment descriptors. jboss-wsse-server.xml: META-INF/client.keystore webservicec META-INF/server.truststore jbossws standard-jaxrpc-endpoint-config.xml: Standard WSSecurity Endpoint ##SOAP11_HTTP WSSecurity Handler org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer web.xml: .. servlet mappings ... jbossws-config-name> Standard Secure Endpoint Client: Included jboss-wsse-client.xml, standard-jaxrpc-client-config.xml, and client.keystore in web-inf, as well as normal deployment descriptorts. jboss-wsse-client.xml: META-INF/client.keystore jbossws standard-jaxrpc-client-config.xml: Standard WSSecurity Client WSSecurity Handlers WSSecurityHandlerOutbound org.jboss.ws.extensions.security.jaxrpc.WSSecurityHandlerOutbound I also included several libs from libraries from the JAXRPC and SAAJ libs in the JWSDP. I did not add any special code to web.wml. Both the web service and client deploy without error, and when I run the service is runs without error. But when I look at the SOAP message that was sent it is not signed. Next I tried upgrading to JBossWS 1.2.1. With this configuration both web the service and client install correctly, but when I run the code I get this error: 19:54:23,064 WARN [[WebClient]] Servlet.service() for servlet WebClient threw exception java.rmi.RemoteException: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAP Exception: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl; nes ted exception is: Couldn't create SOAP message factory due to exception: javax.xml.soap.SOAPException: Unable to create message factory for SOAP: org.jboss.ws.core.soap.MessageFactoryImpl at com.acxiom.mypkg.Purchaser_Stub.purchase(Purchaser_Stub.java:88) at com.acxiom.webclient.Client.doGet(Client.java:41) at com.acxiom.webclient.Client.doPost(Client.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) ... Can somebody please help me to see what I am doing wrong? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045319#4045319 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045319 From do-not-reply at jboss.com Mon May 14 12:45:23 2007 From: do-not-reply at jboss.com (henrik.lindberg) Date: Mon, 14 May 2007 12:45:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume install on jboss4.0.5.GA Message-ID: <24559127.1179161123675.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have just installed jbossws 1.2.1 and I am using jboss-4.0.5.GA. Eveything worked fine until trying to run wsconsume to create the client side classes from the WSDL. Turns out that the install (I used "deploy-40") did not copy consumews to JBOSS_HOME/bin - where I guess it should be. What was I supposed to have done? (either the install should fix this, or the doc should mention something how to run wsconsume). I am using windows so wsconsume.bat is the thing I copied. Regards - henrik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045552#4045552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045552 From do-not-reply at jboss.com Mon May 14 13:20:42 2007 From: do-not-reply at jboss.com (khelenek) Date: Mon, 14 May 2007 13:20:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - creating new targetnamespace for complex types Message-ID: <5694495.1179163242945.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I just upgraded to using jax-ws with my ejb 3.0 beans, and its working fine. The classes used by my web service are being mapped to a shema with a targetNamespace reflected by their package name. Because I'm trying to recreate an exact copy of my old web services I would like to define the target namespace for these classes myself. So i tried using the XmlSchema and XmlType annotations from jaxb on the package-info and class files respectively but it didn't seem to do anything. Is this the correct technique, and does jboss support these? Is there another way to specify the target namespace for these complex types? Thanks, kris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045562#4045562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045562 From do-not-reply at jboss.com Mon May 14 13:26:14 2007 From: do-not-reply at jboss.com (bk8133) Date: Mon, 14 May 2007 13:26:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <20584972.1179163574418.JavaMail.jboss@colo-br-02.atl.jboss.com> Try using this at webservice bean level(at exposed method) WebService(targetNamespace="") WebParam(targetNamespace="") WebResult(targetNamespace="") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045564#4045564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045564 From do-not-reply at jboss.com Mon May 14 16:43:34 2007 From: do-not-reply at jboss.com (rickcr) Date: Mon, 14 May 2007 16:43:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - If I deploy more than one webservice I get "Multiple context Message-ID: <26309798.1179175414787.JavaMail.jboss@colo-br-02.atl.jboss.com> I can deploy a simple webservice and everything works fine. If II create another webservice in a similar manner and deploy it, I end up with a "Multiple context root not supported" error. This is very frustrating since I see nothing about this issue in the users guide. Here was an example of an initial web service I was trying to deploy (which works fine, until I try to deploy another webservice using the same approach): @Local @WebService @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public interface Echo { @WebMethod String testEcho(String s); } @Stateless @WebService(endpointInterface="com.foobar.edsf.example.ejb.webservices.Echo") public class EchoBean { public String testEcho(String s) { return s; } } If I deploy a similar webservice like the above, I'll get the Multiple context root not supported error. Am I doing something unorthodox or is this a bug? My EJB3 book and the examples that come with the jboss patch here: http://docs.jboss.org/ejb3/app-server/tutorial/installing.html show examples like I'm doing above. There is something related to this in jira http://jira.jboss.com/jira/browse/JBWS-1622 but I can't seem to get the concept of @WebContext working correctly (I also don't see why I should even need to use a non-standard JBoss annotation to do something that should be standard.) WITHOUT adding a @WebContext I'll end up with a wsdl location like: http://machine-name:8080/EchoBeanService/EchoBean?wsdl If I try to declare a @WebContext I won't get the multiple context root error, but it changes the wsdl path to a path that it can't find. For example if I give it a path: @WebContext(contextRoot="/EDSF-tests", secureWSDLAccess=false) I end up with a wsdl URL: http://machine-name:8080/EDSF-tests/EchoBean?wsdl Which doesn't point to the wsdl anymore. Can someone give me some pointers about what I'm doing wrong? There must be a reason others have not run into this as well since I don't think I'm creating my webservices in a unique way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045595#4045595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045595 From do-not-reply at jboss.com Mon May 14 16:47:15 2007 From: do-not-reply at jboss.com (khelenek) Date: Mon, 14 May 2007 16:47:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <9619046.1179175635800.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for writing back. That's actually the first technique I tried which also did not seem to work. Here is an example of a my web service bean: | @Stateless(name="VerificationWs") | @WebService( | name="VerificationWs", | targetNamespace = VerificationWsBean.DEFAULT_NS) | @SOAPBinding | public class VerificationWsBean { | | @TransactionAttribute(value=TransactionAttributeType.REQUIRES_NEW) | @WebMethod | @WebResult(targetNamespace=VerificationWsBean.DEFAULT_NS) | public VerificationResponse verify( | @WebParam(targetNamespace=VerificationWsBean.DEFAULT_NS) VerificationRequest request | ) throws Exception { | return verifyDirect(request); | } | } | And then in my VerificationRequest.java class I have: | @XmlType(namespace="http://verification.studentuniverse.com/ws/client") | public class VerificationRequest implements Serializable { | But in my wsdl I still get VerificationRequest mapped as complex types under a schema with the package namespace: | | (The methods map as complex types under the correct namespace as defined by the @WebService annotation, though. Any ideas what to try next? Thanks in advance, kris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045596#4045596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045596 From do-not-reply at jboss.com Mon May 14 17:12:06 2007 From: do-not-reply at jboss.com (rickcr) Date: Mon, 14 May 2007 17:12:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <8783135.1179177126283.JavaMail.jboss@colo-br-02.atl.jboss.com> I guess this is a bug since if I use jbossws-1.2.0.SP1 I do not get this error. The jira bug on this is still open so I guess I'll just use 1.2.0 until it is resolved. If this isn't a bug, though, someone please let me know:) Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045598#4045598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045598 From drf at blackchairdvd.com Mon May 14 21:02:25 2007 From: drf at blackchairdvd.com (Douglas Fraser) Date: Tue, 15 May 2007 02:02:25 +0100 Subject: [jbossws-users] [JBossWS] Re: Namespace problem: Requested element {http://gaws.mec.com/rta/ws/types}businessDate is not allowed in this position in the sequence. In-Reply-To: <46460B60.1040102@blackchairdvd.com> References: <46460B60.1040102@blackchairdvd.com> Message-ID: <464906A1.3040406@blackchairdvd.com> The followup... in case anyone else out there is using JAX-RPC, wstools etc... instead of the fancy new stuff :) I figured out the problem - the PHP libraries I was using do not process the JBoss generated WSDL in the desired way / create a SOAP Message in the format desired by JBoss. I guess it is a standards issue or something but I do not know all this well enough (the PHP SOAP Messages look fine). What is happening is that the data within the SOAP body needs to have the namespace parts defined like this: (where ns is defined elsewhere) or then the parts within the complexType I was sending should have no namespace references e.g. FieldOne FieldTwo any variation on this does not work. The WSDL uses document/literal, parameter style bare. I think this also applies for style wrapped as well. the PHP libraries were creating XML with no namespace references or every element had a namespace reference. I could not get the PHP to generate the XML in this format automatically - I had to use NuSOAP and modified it to figure out what was going on and get it to output the desired XML. Douglas Fraser wrote: > > hi everyone, > > I have JBoss 4.0.5.GA, and am using JBoss WS 1.2.1. I have created a > web service (using wstools - not wscompile etc) and the beans, ear etc > deploy fine. The WSDL generated from wstools looks ok (to me). But > when I try to use a client written in PHP (using the SOAP extension) I > am getting this all the time: > > Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested > element {http://gaws.mec.com/rta/ws/types}businessDate is not allowed in > this position in the sequence. The next element should be businessDate > at > org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:219) > > at > org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:159) > > at > org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:277) > > at > org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:323) > > at > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) > > > this is the SOAP Request > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:ns1="http://gaws.mec.com/rta/ws/types"> > > > 2007-05-02T12:00:00 > testing > OPEN > > > > > As you can see, the fields within the notifyStatusChange structure are > given a namespace of ns1. the WSDL is defined as such: > > xmlns='http://www.w3.org/2001/XMLSchema' > xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' > xmlns:tns='http://gaws.mec.com/rta/ws/types' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > > > > > > > > > > > > > > > > > > > .... and so on > > so .... obviously JBoss does not like the subfields being tagged with a > namespace (as far as I can tell, all my research has been of no help). > But I can't figure out how to get the PHP client to stop tagging the > subfields. I am not an expert on WSDL etc so I am not even sure if the > PHP client should be doing that. Should something in the WSDL change > (as the PHP is working off that as a basis)? > > So... is there anything I can do to the Java code to get it to stop > being so sensitive? Is this a valid error? > > Or does anyone know what to do in the PHP (I tried using the nusoap > library and that worked even worse...)? > > Or do I just have to write a Java based client for testing as > anything-but-java is not up to spec like JBossWS is? > But then the real client (another company using Microsoft .NET) is > probably going to have problems.... > > Help! > > thanks > doug > > From do-not-reply at jboss.com Mon May 14 21:15:45 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 14 May 2007 21:15:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <21371195.1179191745199.JavaMail.jboss@colo-br-02.atl.jboss.com> If I remember correctly, the context root comes from the jar file name. Are both of your jar files named the same? It would appear that the standards define how the default context root is defined, but always leave it up to the implementation to specify alternate context root (hence the context-root entry in the jboss-web.xml file used in war files). Of course, I could always be wrong. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045635#4045635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045635 From do-not-reply at jboss.com Mon May 14 22:05:41 2007 From: do-not-reply at jboss.com (rickcr) Date: Mon, 14 May 2007 22:05:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <32241626.1179194741351.JavaMail.jboss@colo-br-02.atl.jboss.com> The two webservices are in the same package and packaged in the same jar. It seems odd that things work fine in 1.2.0.SP1 but not 1.2.1.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045639#4045639 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045639 From do-not-reply at jboss.com Tue May 15 03:17:03 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 15 May 2007 03:17:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <18000629.1179213423207.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I think this sounds terrible for you, but you probably have to start working in the other direction. If you want to ensure your contract (the wsdl file) is changed in the way you want, then you must start with taking control over it, i.e. develop it by yourself. What I'm saying - take full control of your wsdl and its dependent schema instances. Beeing in your situation, it might be good saving the old wsdl file and then run a wsprovide. Your wsdl will be the same but you have to update your implementation. With kind regards Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045673#4045673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045673 From do-not-reply at jboss.com Tue May 15 05:14:28 2007 From: do-not-reply at jboss.com (genady_yadata) Date: Tue, 15 May 2007 05:14:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <18366357.1179220468358.JavaMail.jboss@colo-br-02.atl.jboss.com> Our jar is named "beans.jar" and adding @WebContext(contextRoot="/beans") to all of the classes seems to work. I also can't understand what caused them to change the behavior in 1.2.1GA. Does anybody know how to specify the context root in an XML file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045721#4045721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045721 From do-not-reply at jboss.com Tue May 15 08:14:43 2007 From: do-not-reply at jboss.com (centecbertl) Date: Tue, 15 May 2007 08:14:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <22613428.1179231283927.JavaMail.jboss@colo-br-02.atl.jboss.com> the package of complex parameters needs to be specified per java package within a package-info.java file: see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103352 JBossWS 1.2.x generates buggy wsdl files, though unless http://jira.jboss.com/jira/secure/ManageAttachments.jspa?id=12335583 is fixed (scheduled for version 2.0.0 now). Although the wsdl files are not correct, clients generated with .net 2.0 and axis 1.4 tend towork at least when the parameter typ names are unique without looking at their package names. The client stub generators are intelligent enough to remember the correct package names then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045790#4045790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045790 From do-not-reply at jboss.com Tue May 15 10:12:14 2007 From: do-not-reply at jboss.com (rickcr) Date: Tue, 15 May 2007 10:12:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <10200185.1179238334191.JavaMail.jboss@colo-br-02.atl.jboss.com> Also, my webservices jar is locate din an ear file if that matters at all. Secondly, I'm not sure why I would need to use @WebContext in order to get this to work in 1.2.1.GA. All the standard examples I see do not mentioning using @WebContext - which if I understand correctly is not even part of the EJB3 Spec but is a JBoss specific annotation. If you check out the webservice example for jboss provided after downloading the examples here http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063 (unzip and then in the docs/tutorials there is a webservice example), You'll see there example does not use the @WebContext notation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045816#4045816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045816 From do-not-reply at jboss.com Tue May 15 11:45:34 2007 From: do-not-reply at jboss.com (openyourmind) Date: Tue, 15 May 2007 11:45:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <30741923.1179243934359.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, We are having the same problem. I mean Alice and John want to consume Bob's service, but Bob is xml configured to use Alice's public key for encryption. How could we tell jbossws to understand who called him and to encrypt with the corresponding key. Thanks for any help OYM View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045853#4045853 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045853 From do-not-reply at jboss.com Tue May 15 12:33:47 2007 From: do-not-reply at jboss.com (mailinator) Date: Tue, 15 May 2007 12:33:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <24388998.1179246827693.JavaMail.jboss@colo-br-02.atl.jboss.com> I have this problem too. The client part must be dynamic, not static. I want to have more than one client! Sorry for my english View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045866#4045866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045866 From do-not-reply at jboss.com Tue May 15 12:41:10 2007 From: do-not-reply at jboss.com (baranowb) Date: Tue, 15 May 2007 12:41:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web serv ice consumer fails to configure automaticly through Message-ID: <2295201.1179247270426.JavaMail.jboss@colo-br-02.atl.jboss.com> Hey. Im relativly new to jbossws. To make it read easier. I have very simple web service (pojo is handling requests). I have used wstool from jboss 4.0.5 GA Here is part of my wsdl: | | .... | | | | | | | .... | | | | | | | .... | | ..... | | | | | ..... | | ..... | | | | | | | | | | ..... | | | | | | | Problem is that when wsdl is returned after GET call service is not configured. Here is client code: | ServiceFactory factory=null; | Call call =null; | QName stringXmlType=new QName("http://test.ws.gogo.java.net/","String_1"); | QName stringResult=new QName("http://test.ws.gogo.java.net/","result"); | | QName operationName = new QName("http://test.ws.gogo.java.net/", "sayHello"); | factory = ServiceFactory.newInstance(); | if(true) | { | | URL wsdlLocation = new URL("http://127.0.0.1:8080/war_to_deploy/OperationsWSAction" + "?wsdl"); | QName serviceName = new QName("http://test.ws.gogo.java.net/", "OperationsWService"); | Service service = (Service)factory.createService(wsdlLocation, serviceName); | call = service.createCall(); | call.setTargetEndpointAddress("http://127.0.0.1:8080/war_to_deploy/OperationsWSAction"); | | | call.setOperationName(operationName); | | | //call.addParameter("String_1", stringXmlType, ParameterMode.IN); | //String first = "4"; | //String second = "7!"; | //Integer first = new Integer(4); | //Integer second= new Integer(7); | //Object retObj = call.invoke(new Object[]{first, second}); | }else | {...} | | However this code causes on the client side: AxisFault | faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client | faultSubcode: | faultString: Cannot find child element: String_1 | faultActor: | faultNode: | faultDetail: | {http://xml.apache.org/axis/}stackTrace:Cannot find child element: String_1 and javax.xml.rpc.JAXRPCException: Cannot find child element: String_1 | at org.jboss.ws.binding.soap.SOAPBindingProvider.getParameterFromMessage(SOAPBindingProvider.java:799) | at org.jboss.ws.binding.soap.SOAPBindingProvider.unbindRequestMessage(SOAPBindingProvider.java:241) | at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:112) | at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) | at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) on the server side. Which is correct behaviour because message looks as follows: | | | | | Opuce | | | | However if clint is configured by hand it works perfectly: | ServiceFactory factory=null; | Call call =null; | QName stringXmlType=new QName("http://test.ws.gogo.java.net/","String_1"); | QName stringResult=new QName("http://test.ws.gogo.java.net/","result"); | try { | QName operationName = new QName("http://test.ws.gogo.java.net/", "sayHello"); | factory = ServiceFactory.newInstance(); | if(false) | { | | ..... | }else | { | | Service service = factory.createService(new QName("OperationsWService")); | | call= service.createCall(); | call.setOperationName(operationName); | call.addParameter("String_1", stringXmlType, ParameterMode.IN); | call.setReturnType(stringResult,String.class); | | call.setTargetEndpointAddress("http://127.0.0.1:8080/war_to_deploy/OperationsWSAction"); | | | } | What could be the problem here? Im running WinXp Sp2 jboss 4.0.5GA JDK1,5 update 7 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045867#4045867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045867 From do-not-reply at jboss.com Tue May 15 13:07:14 2007 From: do-not-reply at jboss.com (memema) Date: Tue, 15 May 2007 13:07:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <28961471.1179248834805.JavaMail.jboss@colo-br-02.atl.jboss.com> Help, I am desperate with this M. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045875#4045875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045875 From do-not-reply at jboss.com Tue May 15 13:17:18 2007 From: do-not-reply at jboss.com (khelenek) Date: Tue, 15 May 2007 13:17:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <25299468.1179249438509.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the help guys. Turns out it was because I was using the jbossws that was installed with jboss-4.0.5.GA, which i believe is version 1.0.3. I guess jaxb bindings were not supported until a later version, because I installed 1.2.1.GA and everything worked as expected. However, I have a new question. My web service seems to be bound to http://localhost/MyBeanClassNameService/MyBeanClassName. Is there anyway to change that? I tried the name attribute of the @Stateless and @WebService annotations to no avail. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045880#4045880 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045880 From do-not-reply at jboss.com Wed May 16 05:12:18 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Wed, 16 May 2007 05:12:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XOP testCase Message-ID: <32892938.1179306738604.JavaMail.jboss@colo-br-02.atl.jboss.com> the problem is due to jax-b jars not up to date. Replace the jaxb-impl and jab-api jars by recent ones. I'm using Jboss1.2.0.SP1; I replaced the jars under Jboss AS by the jars I found under E:\jbossws-samples-1.2.0.SP1\jbossws-samples-1.2.0.SP1\thirdparty. ant retrieves them from net. see build.xml CPires View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046049#4046049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046049 From do-not-reply at jboss.com Wed May 16 05:31:55 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Wed, 16 May 2007 05:31:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XOP testCase Message-ID: <3161857.1179307915870.JavaMail.jboss@colo-br-02.atl.jboss.com> sorry I answered too quickly; first install the samples and run them and check for jars used. after you may find an answer.without using the samples time is lost with problems difficult to understand. tu run the samples for Jboss1.2.0.SP1 you have a post "how to run the jbossws samples" mon 2 april 2007. you also need to work with the generated classes from wsdl with wsconsume. the class I use is a generated class where i set application/octet-stream: @javax.xml.bind.annotation.XmlType public class Message { private DataHandler dataHandler; public Message() { } public Message(DataHandler dataHandler) { this.dataHandler = dataHandler; } @XmlMimeType("application/octet-stream") public DataHandler getDataHandler() { return dataHandler; } public void setDataHandler(DataHandler dataHandler) { this.dataHandler = dataHandler; } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046054#4046054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046054 From do-not-reply at jboss.com Wed May 16 05:40:34 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Wed, 16 May 2007 05:40:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - are exceptions in SOAP11 only implemented ? Message-ID: <5516309.1179308434796.JavaMail.jboss@colo-br-02.atl.jboss.com> I use exceptions as error processing; I use the generated classes (classes generated with wsconsume from wsdl). I use Jboss 4.2.CR2 and JBOSS1.2.0.SP1. With log handlers, I can see the message on the wire is SOAP1.1; looking at the example, it seems it generates SOAP1.1 messages; how can I generate a SOAP1.2 message for exceptions? CPires View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046057#4046057 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046057 From do-not-reply at jboss.com Wed May 16 05:53:29 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 05:53:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Server-side NullpointerException when using ws-security Message-ID: <2730786.1179309209984.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you provide me with the SOAP messages in transit that have been causing this error? I am unable to reproduce the exception. But I am pretty sure it's a client side configuration problem. The messages send from the client have to plain SOAP messages, lacking security headers. But in order to verify i'll need some example requests. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046063#4046063 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046063 From do-not-reply at jboss.com Wed May 16 06:38:39 2007 From: do-not-reply at jboss.com (iorlas) Date: Wed, 16 May 2007 06:38:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Secure Webservice Message-ID: <32954828.1179311919593.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I am using JBoss-4.0.5.GA and have implemented a Webservice using annotations. The Webservice is protected by a SecurityDomain. To access the webservice I have looked at the examples from the jbossws samples for jbossws-1.2.1.GA and tried to followed it as much as possible. Obvioulsy something isn't correct since I get a Authentication Failure even though I passes the correct username and password. The client code: System.setProperty(Provider.JAXWSPROVIDER_PROPERTY, "org.jboss.ws.core.jaxws.spi.ProviderImpl"); | | | URL wsdlURL = new URL(WSDL_LOCATION); | Service service = Service.create(wsdlURL, SERVICE_NAME); | WebServiceEndPoint endPoint = null; | | endPoint = (WebServiceEndPoint) service.getPort(WebServiceEndPoint.class); | | BindingProvider bp = (BindingProvider) endPoint; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "test"); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "test"); | | String result = (String) endPoint.test("Gurka"); | System.out.println("The Server response is: " + result); | I am stomped what I am doing wrong? I have pointed the JBossWS security domain to the correct database with a configuration that I know works for my EJBs. Is the error on the client or the server side? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046081#4046081 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046081 From do-not-reply at jboss.com Wed May 16 07:06:15 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:06:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XOP testCase Message-ID: <12541999.1179313575639.JavaMail.jboss@colo-br-02.atl.jboss.com> The response is not being MTOM optimized. What does the DHResponse class look like? | public DHResponse getSlikaByID() {...} | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046087#4046087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046087 From do-not-reply at jboss.com Wed May 16 07:08:03 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:08:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Secure Webservice Message-ID: <32386765.1179313683157.JavaMail.jboss@colo-br-02.atl.jboss.com> What do the endpoint bean and interface look like? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046088#4046088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046088 From do-not-reply at jboss.com Wed May 16 07:15:05 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:15:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: creating new targetnamespace for complex types Message-ID: <30668078.1179314105932.JavaMail.jboss@colo-br-02.atl.jboss.com> Here's the answer to the web context question: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#JBossWS_Extenstions View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046089#4046089 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046089 From do-not-reply at jboss.com Wed May 16 07:24:05 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:24:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web serv ice consumer fails to configure automaticly thr Message-ID: <26330748.1179314645411.JavaMail.jboss@colo-br-02.atl.jboss.com> Please read the quickstart first: http://jbws.dyndns.org/mediawiki/index.php/Quick_Start View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046091#4046091 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046091 From do-not-reply at jboss.com Wed May 16 07:55:18 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:55:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <6708311.1179316518194.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the valuable discussion. I will try to explain what changes between 1.2.0 and 1.2.1 are causing the problems you encounter. anonymous wrote : | 1.) For EJB3 deployments we need to create a web app for HTTP invocations (obviously) | | 2.) EJB's don't contain web context information, so we derive it automagically. | | 3.) Until 1.2.0 the context name was derived from the ear/jar name. | | 4.) This changed with 1.2.1 to an algorithm that derives it from the bean class name | So what's happening when you deploy a EJB3 jar that contains multiple beans? The default algorithm derives different context names for each bean in this deployment, which in turn we cannot use to setup the HTTP endpoint and thus throw an exception. This also explains why the following did work: anonymous wrote : | @WebContext(contextRoot="/beans") | Unfortunately this is left out in the specs and thus has been changed many times. Until we a have a definite solution i suggest you refer to the @WebContext annotation, even though it's not the most elegant solution. -- Heiko View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046101#4046101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046101 From do-not-reply at jboss.com Wed May 16 07:57:51 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 07:57:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume install on jboss4.0.5.GA Message-ID: <9251401.1179316671609.JavaMail.jboss@colo-br-02.atl.jboss.com> If it's not being copied then it's a bug. I'll check, thanks for the pointer. But You are right: Copying it manually to /bin should solve the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046104#4046104 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046104 From do-not-reply at jboss.com Wed May 16 08:10:05 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 08:10:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume - Problems regarding http://www.w3.org/2001/XM Message-ID: <26850164.1179317405280.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you create a JIRA issue for this and attach the relevant files prior to modification? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046109#4046109 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046109 From do-not-reply at jboss.com Wed May 16 08:11:45 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Wed, 16 May 2007 08:11:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSA sample; response header contains errors Message-ID: <11626089.1179317505938.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, running the sample for jax-ws ws-addressing and adding handlers at client side ; I notice the action is set to http://org.jboss.ws/sample/wsaddressing/StatefulEndpointPort/OUT and not to the value programmatically set and clientid appears 2 times in soap header; where is the mistake? thanks CPires View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046111#4046111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046111 From do-not-reply at jboss.com Wed May 16 08:23:25 2007 From: do-not-reply at jboss.com (rmartony) Date: Wed, 16 May 2007 08:23:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <9301907.1179318205196.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem. JBossWS apparently does not support multiple clients because the certificate used by the server to encrypt the response is specified statically in jboss-wsse-server.xml. This is a big limitation. A workaround to this problem is using SSL. Any other ideas? Thanks, Rafael. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046116#4046116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046116 From do-not-reply at jboss.com Wed May 16 09:09:08 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 16 May 2007 09:09:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSDL-location help? Message-ID: <3794246.1179320948940.JavaMail.jboss@colo-br-02.atl.jboss.com> Taken from the JAX-WS 2.0 specs, section 5.2.5.3: anonymous wrote : | | Use of @WebService(wsdlLocation) and Metadata | | There are some restrictions on the packaging of the description and any associated metadata documents. | The goal of these restrictions is to make it possible to publish an endpoint without forcing a JAX-WS | implementation to retrieve, store and patch multiple documents from potentially remote sites. | The value of the wsdlLocation annotation element on an endpoint implementation class, if any, MUST | be a relative URL. The document it points to MUST be packaged with the application. Moreover, it MUST | follow the requirements in section 5.2.5.4 below (?Application-specified Service?). | | | Therefore i don't consider this to be a bug. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046127#4046127 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046127 From do-not-reply at jboss.com Wed May 16 09:27:12 2007 From: do-not-reply at jboss.com (rickcr) Date: Wed, 16 May 2007 09:27:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <29730062.1179322032180.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Heiko for the information. My only question now (and pardon if this is a very 'newbie' question) but what would I set the web context to? In other words, do I need to make sure the various webapp wars that might be in the ear all have web.xml definitions that point to the ejbs so that I can create a context for the ejbs through the web.xml? If so, this seems like a lot of extra work. I guess I'm just confused how I know what @WebContext to use for the ejbs? I could have several wars that all have their own web context. I would think the ejb context would be independent of those contexts, but just giving it an arbitrary context doesn't help in regard to having the wsdl being located. If someone could provide a simple example of what to set this @WebContext to I'd appreciate. I'm sure I'm missing something simple. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046133#4046133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046133 From do-not-reply at jboss.com Wed May 16 10:29:20 2007 From: do-not-reply at jboss.com (charboss) Date: Wed, 16 May 2007 10:29:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - problem with consuming WS using jbossws-1.2.1.GA Message-ID: <32282313.1179325760587.JavaMail.jboss@colo-br-02.atl.jboss.com> I use wsImport to generate all the stubs of a WS that I would like to consum. But running this in a Junit test is giveing me some wired error: | java.lang.NoSuchMethodError: javax.jws.WebMethod.exclude()Z | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:825) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:278) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:274) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:200) | at javax.xml.ws.Service.getPort(Service.java:116) | | Any ideas? Thanks Charlie View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046164#4046164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046164 From do-not-reply at jboss.com Wed May 16 11:50:01 2007 From: do-not-reply at jboss.com (henrik.lindberg) Date: Wed, 16 May 2007 11:50:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume install on jboss4.0.5.GA Message-ID: <9679476.1179330601813.JavaMail.jboss@colo-br-02.atl.jboss.com> actually none of the .bat files got copied View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046198#4046198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046198 From do-not-reply at jboss.com Wed May 16 13:24:43 2007 From: do-not-reply at jboss.com (marco.ciatti) Date: Wed, 16 May 2007 13:24:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Caused by: java.lang.ClassNotFoundException: org.jboss.ws.WS Message-ID: <32836387.1179336283112.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I'm currently making some tests with -) jbossws.1.2.1.GA, -) Java5, Jboss-4.0.5-GA (EJB3 cluster) using a stateless ejb3 (deployed on Jboss-AS) as Webservice client towards a remote Webservice server based on a Sun SOA platform. An external standalone-client call an EJB service, using the remote interface of the EJB, and: -) If the remote webservice is up I have no problem -) If the webservice is down than I have the exception below. Of course an exception is expexted but here it seems that the AS is not able to recontruct the org.jboss.ws.WSException class. Such a class is defined into the jbossws-client.jar and I did some tests putting such jar into the EJB jar or into the EAR, but nothing changed... Does anybody have an explanation for this ? Could be a class loader problem, I mean jbossws use a class loader that is different from the one used to load the EJB stuff and the serialized class could not be recontructed into the EJB scope since it has been serialized bu jbossws stuff ? Thankx, Marco Buildfile: D:\develop\wfm\test\fwfaxprx\build.xml prepare: tstcompile: [javac] Compiling 1 source file to D:\develop\wfm\test\fwfaxprx\build\classes run.client: [java] The connected device Kind is : FaxServer [java] Getting a random fax status [java] Exception in thread "main" java.lang.reflect.UndeclaredThrowableException [java] at $Proxy0.getItemSts(Unknown Source) [java] at com.siemens.fw.test.FwFaxPrxTest.main(FwFaxPrxTest.java:30) [java] Caused by: java.lang.ClassNotFoundException: org.jboss.ws.WSException [java] at java.net.URLClassLoader$1.run(Unknown Source) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at java.net.URLClassLoader.findClass(Unknown Source) [java] at java.lang.ClassLoader.loadClass(Unknown Source) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [java] at java.lang.ClassLoader.loadClass(Unknown Source) [java] at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50) [java] at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139) [java] at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) [java] at java.io.ObjectInputStream.readClassDesc(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source) [java] at java.io.ObjectInputStream.readSerialData(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source) [java] at java.io.ObjectInputStream.readSerialData(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source) [java] at java.io.ObjectInputStream.readSerialData(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source) [java] at java.io.ObjectInputStream.readSerialData(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source) [java] at java.io.ObjectInputStream.readSerialData(Unknown Source) [java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) [java] at java.io.ObjectInputStream.readObject0(Unknown Source) [java] at java.io.ObjectInputStream.readObject(Unknown Source) [java] at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128) [java] at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66) [java] at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279) [java] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) [java] at org.jboss.remoting.Client.invoke(Client.java:525) [java] at org.jboss.remoting.Client.invoke(Client.java:488) [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) [java] ... 2 more [java] Java Result: 1 BUILD SUCCESSFUL Total time: 3 seconds View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046234#4046234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046234 From do-not-reply at jboss.com Wed May 16 14:49:52 2007 From: do-not-reply at jboss.com (jplenhart) Date: Wed, 16 May 2007 14:49:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Maven Dependency Message-ID: <22849717.1179341392748.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am trying to setup my services within Maven 2 -- I would like to set my dependency on: jboss-jaxws.jar I looked in the following and could not locate: http://repository.jboss.com/maven2/jboss/jbossws/ Is this something I will have to place on my local mirror? Thanks, Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046255#4046255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046255 From do-not-reply at jboss.com Wed May 16 15:45:11 2007 From: do-not-reply at jboss.com (errobins) Date: Wed, 16 May 2007 15:45:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Pls help me in running simple document/literal webservic Message-ID: <599952.1179344711411.JavaMail.jboss@colo-br-02.atl.jboss.com> when you use document style, wstools generates some wrapper classes that you need to compile and include in your jar file. the wrapper classes are rooted in the same output directory that your other server-side stubs go to. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046283#4046283 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046283 From do-not-reply at jboss.com Wed May 16 15:57:05 2007 From: do-not-reply at jboss.com (amvzw) Date: Wed, 16 May 2007 15:57:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to get wstools working in jboss 4.2 Message-ID: <15392058.1179345425032.JavaMail.jboss@colo-br-02.atl.jboss.com> Were you able to solve the problem.If so i would surely like to know the solution. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046290#4046290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046290 From do-not-reply at jboss.com Thu May 17 00:16:19 2007 From: do-not-reply at jboss.com (clebert.suconic@jboss.com) Date: Thu, 17 May 2007 00:16:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Null pointer exception when using JBOSSWS 1.0.4 GA vesio Message-ID: <4722220.1179375379823.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you guys fix the documentation please? I have spent two-three hours of my time trying to figure out this today... And it's even worse.. wstools doesn't throw any message unless you do ant -debug Even worse... $JBOSS_HOME/bin/wstools doesn't include all the needed client jars. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046370#4046370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046370 From do-not-reply at jboss.com Thu May 17 00:20:04 2007 From: do-not-reply at jboss.com (clebert.suconic@jboss.com) Date: Thu, 17 May 2007 00:20:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Null pointer exception when using JBOSSWS 1.0.4 GA vesio Message-ID: <1303999.1179375604445.JavaMail.jboss@colo-br-02.atl.jboss.com> Or at least change ToolsHelper to do some sanity check.. and throw a proper message saying.. "You User didn't set Location property as expected!" if null.. throw a message to System.out than fail the tas/batch public void handleWSDLToJavaGeneration(Configuration config, String outDir) | { | WSDLToJavaConfig w2jc = config.getWSDLToJavaConfig(false); | GlobalConfig glc = config.getGlobalConfig(false); | | WSDLToJava wsdlToJava = new WSDLToJava(); | wsdlToJava.setTypeMapping(new LiteralTypeMapping()); | | WSDLDefinitions wsdl = null; | try | { | URL wsdlURL = null; | try | { | wsdlURL = new URL(w2jc.wsdlLocation); | } | catch (MalformedURLException e) | { | // ignore | } | | if (wsdlURL == null) | { | File wsdlFile = new File(w2jc.wsdlLocation); <<<<---- Here.. | if (wsdlFile.exists()) | { | wsdlURL = wsdlFile.toURL(); | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046371#4046371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046371 From do-not-reply at jboss.com Thu May 17 00:21:34 2007 From: do-not-reply at jboss.com (clebert.suconic@jboss.com) Date: Thu, 17 May 2007 00:21:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Null pointer exception when using JBOSSWS 1.0.4 GA vesio Message-ID: <22274593.1179375694910.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually.. both! :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046372#4046372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046372 From do-not-reply at jboss.com Thu May 17 07:28:19 2007 From: do-not-reply at jboss.com (martin.capote) Date: Thu, 17 May 2007 07:28:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <13900224.1179401299336.JavaMail.jboss@colo-br-02.atl.jboss.com> I agree. If I must share the same public/private key pair between several clients, the encryption does not have sense. It is a problem of the specification or is a problem of the present implementation? Thanks, Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046451#4046451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046451 From do-not-reply at jboss.com Thu May 17 08:36:35 2007 From: do-not-reply at jboss.com (charboss) Date: Thu, 17 May 2007 08:36:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with consuming WS using jbossws-1.2.1.GA Message-ID: <30712802.1179405395909.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry my mistake i mean ran wsconsume rather the wsimport. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046467#4046467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046467 From do-not-reply at jboss.com Thu May 17 08:51:58 2007 From: do-not-reply at jboss.com (maciej.machulak) Date: Thu, 17 May 2007 08:51:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Customised deployment of Web Services Message-ID: <23950701.1179406318744.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I wanted to ask if anyone can point out any documents/etc so that I could start looking at how to customise deployment of Web Services in JBoss. I have added some custom annotations and I am currently processing them during the compile time (using apt). However, I would like to have this done during the runtime/deployment time. Thanks in advance for any suggestions. Cheers, Maciej View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046471#4046471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046471 From do-not-reply at jboss.com Thu May 17 09:18:25 2007 From: do-not-reply at jboss.com (marco.ciatti) Date: Thu, 17 May 2007 09:18:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot resolve the name 'ns1:FaxStsType' to a(n) 'type defin Message-ID: <13592436.1179407905778.JavaMail.jboss@colo-br-02.atl.jboss.com> Does anybody knows why wsconsume throws such a warning for a ws-i comliant wsdl, that you can find here at the end of message. -) the mentioned wsdl is ws-compliant, if needed I can provide also the conformance report from ws-i tools -) a simple ws tools like soapUI is able to use it and perform the expected ws call. Thankx, Marco [exec] warning: src-resolve: Cannot resolve the name 'ns1:FaxStsType' to a(n) 'type definition' component. [exec] line 0 of file:/D:/develop/wfm/test/fwfaxprx/resources/GetFaxStsIBndPort.wsdl#types?schema2 [exec] com\siemens\faxsrvprx\sis\GetFaxStsI.java [exec] com\siemens\faxsrvprx\sis\ObjectFactory.java [exec] com\siemens\faxsrvprx\sis\SisfaxprxGetstsService.java [exec] com\siemens\faxsrvprx\sis\domain\FaxStsType.java [exec] com\siemens\faxsrvprx\sis\GetFaxStsI.java [exec] com\siemens\faxsrvprx\sis\ObjectFactory.java [exec] com\siemens\faxsrvprx\sis\SisfaxprxGetstsService.java [exec] com\siemens\faxsrvprx\sis\domain\FaxStsType.java ================================================ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046480#4046480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046480 From do-not-reply at jboss.com Thu May 17 15:15:41 2007 From: do-not-reply at jboss.com (rickcr) Date: Thu, 17 May 2007 15:15:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem trying to use a jmx component to call my webservice Message-ID: <2169037.1179429341426.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm a bit confused what is going wrong here. I have a simple class that can call my webservice by creating a javax.xml.ws.Service and getting a handle to my endpoint interface. This works fine if I call this class from a servlet. I know annotated this class so that it would show up as a JMX component and I'm trying to call the test method (echo) through the JMX console. When I try this, however, I'll get an error back... org.jboss.ws.WSException: Cannot load java type: com.foobar.edsf.example.ejb.webservices.jaxws.TestEchoExample I'm not sure why I'm getting such an error. Apparently JBoss is trying to make this class in the package jaxws? (since I don't have that package named anywhere in my examples). Here is the class I'm trying to use as a JMX component... | package com.foobar.edsf.example.client; | | import java.net.URL; | | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | | import org.apache.commons.logging.Log; | import org.apache.commons.logging.LogFactory; | import org.jboss.annotation.ejb.Management; | | import com.foobar.edsf.example.ejb.webservices.Echo; | | @org.jboss.annotation.ejb.Service(objectName="examples:service=TestEcho") | @Management(ITestEcho.class) | public class TestEchoExample implements ITestEcho { | private static Log log = LogFactory.getLog(TestEchoExample.class); | | public String echo(String s) { | String retVal = "Failed"; | try { | Service service = Service.create( | new URL("http://localhost:8080/edsf-1-edsf-examples-ejb/EchoBean?wsdl"), | new QName("http://webservices.ejb.example.edsf.foobar.com/", "EchoBeanService") ); | Echo echo = service.getPort(Echo.class); | retVal = echo.testEchoExample(s); | log.info("In TestEcho client. Echo response with call to echo: "+ retVal); | } catch (Exception e) { | e.printStackTrace(); | retVal = e.toString(); | } | return retVal; | } | } | [/CODE] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046610#4046610 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046610 From do-not-reply at jboss.com Thu May 17 16:08:32 2007 From: do-not-reply at jboss.com (bilal_0003) Date: Thu, 17 May 2007 16:08:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Need Help Message-ID: <15203710.1179432512959.JavaMail.jboss@colo-br-02.atl.jboss.com> hi im using jboss 4.0.5 in my app with Hibernate 3.1 and actually the problem im facing is , i have created a DS file for my project addressbook PostgresqlAddressBookDS jdbc:postgresql://192.168.1.11:5432/addressbook org.postgresql.Driver postgres backend 5 20 0 the thing is actually i want jboss to crate sessions and bind them with JNDI so then i use them in my app for this i craeted a file hibernate-service.xml java:PostgresqlAddressBookDS org.hibernate.dialect.PostgreSQLDialect java:addressbookSessionFactory org.hibernate.cache.HashtableCacheProvider update-drop false but the problem is when i start jboss it gives arroe no DS find but i already give it both of these files are in deploy folder and the interesting thing after jboss throw exception that it did't find ny data source ,if i change my hibrenate-service file just add a space and save it it give no error and create session cus some tell me im doing right and wat steps i should do to configure jboss with hibernate for session handling and where to specify my *.cfg.xml file plz View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046621#4046621 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046621 From do-not-reply at jboss.com Fri May 18 00:54:06 2007 From: do-not-reply at jboss.com (iorlas) Date: Fri, 18 May 2007 00:54:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Secure Webservice Message-ID: <2474308.1179464046087.JavaMail.jboss@colo-br-02.atl.jboss.com> I have tried a few different version, the latest look like this: | @WebService(name = "WebServiceEndPoint", targetNamespace = "http://se.pilotfish/fairfleet/ws", | serviceName = "WebServiceTest") | @SOAPBinding(style= SOAPBinding.Style.RPC) | @WebContext(contextRoot = "/service", urlPattern = "/*", authMethod = "BASIC", | transportGuarantee = "NONE", secureWSDLAccess = false) | | @SecurityDomain("fleet-database") | @Stateless | public class WebServiceTestBean implements WebServiceTest { | | @WebMethod | @WebResult(name = "result") | public String test(@WebParam(name = "input") String input) { | return "WebService:" + input; | } | | } | @Remote | public interface WebServiceTest { | | public String test(String input); | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046701#4046701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046701 From do-not-reply at jboss.com Fri May 18 06:26:42 2007 From: do-not-reply at jboss.com (Cheffilet) Date: Fri, 18 May 2007 06:26:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - IllegalStateException due calling wsconsume Message-ID: <4749358.1179484002824.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there, i?ve one problem there, as you can see by the topic. When i try to generate the client-stub java files by typing in the console wsconsume echo.wsdl i receiving following stack trace: anonymous wrote : | C:\JBossWebService\install\bin>wsconsume echo.wsdl -t | Exception in thread "main" java.lang.IllegalStateException: Could not load provi | der:org.jboss.ws.tools.jaxws.impl.WSContractConsumerFactoryImpl | at org.jboss.ws.tools.jaxws.api.Locator.locate(Locator.java:55) | at org.jboss.ws.tools.jaxws.api.WSContractConsumer.newInstance(WSContrac | tConsumer.java:68) | at org.jboss.ws.tools.jaxws.api.WSContractConsumer.newInstance(WSContrac | tConsumer.java:56) | at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.j | ava:170) | at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:76) | I mention, that i?ve invoking the particular wsconsume file at the JbossWebFolder/install/bin as you can downloading from the jboss homepage as well. The rather install procedure to migrate the JBossWebService into the Application Server(4) works for me very well. Any ideas? Have i to insert specifiy librarys into the JAVA_HOME/lib/ext Folder or something like that? Best regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046761#4046761 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046761 From do-not-reply at jboss.com Fri May 18 06:27:40 2007 From: do-not-reply at jboss.com (tremalnaik) Date: Fri, 18 May 2007 06:27:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error 401 and server redirection Message-ID: <4324540.1179484060194.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have a problem with my Jax-Rpc style WS: A client is accessing a remote server using the following code: // setting up the authenticator (BasicAuthenticator extends java.net.Authenticator) | BasicAuthenticator ba = new BasicAuthenticator(username, password); | Authenticator.setDefault(ba); | // setting a relaxed host verifier (to avoid too strict the server name checking) | HttpsURLConnection.setDefaultHostnameVerifier(new NiceVerifier()); | // get service | String urlstr = "https://cor319.cor-fs.com:8443/bitatraveller/TravellerSynchronizer"; | URL url = new URL(urlstr); | String ns = "https://ws.web.bitastar.bitaplus.com/"; | QName qname = new QName(ns, "TravellerSynchronizer"); | QName port = new QName(ns, "TravellerSynchronizerIfacePort"); | QName operation = new QName(ns, "synchronize"); | ServiceFactoryImpl sfi = new ServiceFactoryImpl(); | // read mapping file | File mapping = new File("mapping.xml"); | Service service = sfi.createService(url, qname, mapping.toURL()); | // call service | Call call = service.createCall(port, operation); | ClientCharacteristics cc = (ClientCharacteristics) call.invoke(new Object[] { characters }); I receive the error 401 and the client keep going on trying many times. Tomcat Axis Tcpmon gives the following output: GET /bitatraveller/TravellerSynchronizer?wsdl HTTP/1.1 | User-Agent: Java/1.5.0_09 | Host: 127.0.0.1:9999 | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | Connection: keep-alive | Content-type: application/x-www-form-urlencoded | | HTTP/1.1 401 Unauthorized | Server: Apache-Coyote/1.1 | Pragma: No-cache | Cache-Control: no-cache | Expires: Thu, 01 Jan 1970 01:00:00 GMT | WWW-Authenticate: Basic realm="127.0.0.1:9999" | Content-Type: text/html;charset=utf-8 | Content-Length: 952 | Date: Fri, 18 May 2007 09:45:39 GMT | | Apache Tomcat/5.5.9 - Error report

HTTP Status 401 -


type Status report

message

description This request requires HTTP authentication ().


Apache Tomcat/5.5.9

Well, everything is working fine, except when the password issued by the client is wrong. All I see in my application output, after 20 repetitions of the above request/response: 2007-05-18 10:06:43,878 [http-8443-Processor23] ERROR [ROM] [_system_] com.bitaplus.bitastar.common.exception.InvalidPasswordException: Invalid password or username. | at com.bitaplus.bitastar.traveller.util.FileUserHelper.validateLogin(FileUserHelper.java:73) | at com.bitaplus.bitastar.traveller.security.auth.tomcat.TomcatXmlDbLoginModule.validate(TomcatXmlDbLoginModule.java:27) | at com.bitaplus.bitastar.common.security.auth.tomcat.TomcatLoginModule.login(TomcatLoginModule.java:122) | 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 javax.security.auth.login.LoginContext.invoke(Unknown Source) | at javax.security.auth.login.LoginContext.access$000(Unknown Source) | at javax.security.auth.login.LoginContext$4.run(Unknown Source) | at java.security.AccessController.doPrivileged(Native Method) | at javax.security.auth.login.LoginContext.invokePriv(Unknown Source) | at javax.security.auth.login.LoginContext.login(Unknown Source) | at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:365) | at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416) | at com.bitaplus.bitastar.web.valve.TomcatFixValve.invoke(TomcatFixValve.java:181) | at com.bitaplus.bitastar.web.valve.LicenseRequirementsValve.invoke(LicenseRequirementsValve.java:408) | at com.bitaplus.bitastar.web.valve.LoginErrorMessageValve.invoke(LoginErrorMessageValve.java:35) | 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.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) | at java.lang.Thread.run(Unknown Source) | I wonder how can I catch the HTTP errors sent by the remote server and avoid the client repeat many times the request? I've looked for the answer in the documentation, but I was not able to find it. Sorry Your help would be appreciated View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046762#4046762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046762 From do-not-reply at jboss.com Fri May 18 08:15:52 2007 From: do-not-reply at jboss.com (kcp) Date: Fri, 18 May 2007 08:15:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to get wstools working in jboss 4.2 Message-ID: <26674869.1179490552648.JavaMail.jboss@colo-br-02.atl.jboss.com> In the script wstool.sh the classpath is set for the wstools. It seems that some jar that wstools needs are missing. Adding jboss-jaxrpc.jar and wsdl4.jar worked for me. Regards Charly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046774#4046774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046774 From do-not-reply at jboss.com Fri May 18 08:45:35 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 18 May 2007 08:45:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <4954678.1179492335257.JavaMail.jboss@colo-br-02.atl.jboss.com> Regular war's are not touched by this probelm. Just make sure all EJB's within a jar point to the same web context thriugh something like: anonymous wrote : | @WebContext(contextRoot="/myEJBServices") | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046794#4046794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046794 From do-not-reply at jboss.com Fri May 18 08:58:35 2007 From: do-not-reply at jboss.com (Cheffilet) Date: Fri, 18 May 2007 08:58:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: IllegalStateException due calling wsconsume Message-ID: <33428051.1179493115848.JavaMail.jboss@colo-br-02.atl.jboss.com> Now, it seems to be that it works right for me. I?ve manually adapted the particluar batch files (wsconsume e.g.) so, that they pointed to my JBOSS_HOME directory, without variable using. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046801#4046801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046801 From do-not-reply at jboss.com Fri May 18 09:07:49 2007 From: do-not-reply at jboss.com (Cheffilet) Date: Fri, 18 May 2007 09:07:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error: Unable to createEndpointReference Provider Message-ID: <6154826.1179493669870.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there again, i?ve processed the first steps at the user-guide(it belongs to the Echo Java Tutorial) tutorial and currently i standing for a problem where i?ve personally no matter what this error want from me. When i had created all of the java-files by wsconsume and trying to building the client (excerpt) | package echo; | | import java.net.MalformedURLException; | import java.net.URL; | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | import javax.xml.ws.WebEndpoint; | import javax.xml.ws.WebServiceClient; | | | /** | * JBossWS Generated Source | * | * Generation Date: Fri May 18 14:07:30 CEST 2007 | * | * This generated source code represents a derivative work of the input to | * the generator that produced it. Consult the input for the copyright and | * terms of use that apply to this source code. | * | * JAX-WS Version: 2.0 | * | */ | @WebServiceClient(name = "EchoService", targetNamespace = "http://echo/", wsdlLocation = "http://localhost:8080/echo/Echo?wsdl") | public class EchoService | extends Service | { | | private final static URL ECHOSERVICE_WSDL_LOCATION; | | static { | URL url = null; | try { | url = new URL("http://localhost:8080/echo/Echo?wsdl"); | } catch (MalformedURLException e) { | e.printStackTrace(); | } | ECHOSERVICE_WSDL_LOCATION = url; | } | | public EchoService(URL wsdlLocation, QName serviceName) { | super(wsdlLocation, serviceName); | } | | public EchoService() { | super(ECHOSERVICE_WSDL_LOCATION, new QName("http://echo/", "EchoService")); | } | | /** | * | * @return | * returns Echo | */ | @WebEndpoint(name = "EchoPort") | public Echo getEchoPort() { | return (Echo)super.getPort(new QName("http://echo/", "EchoPort"), Echo.class); | } | | } | i getting this error during executing time: anonymous wrote : | Exception in thread "main" javax.xml.ws.WebServiceException: Unable to createEndpointReference Provider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl | at javax.xml.ws.spi.Provider.provider(Provider.java:99) | at javax.xml.ws.Service.(Service.java:83) | at echo.EchoService.(EchoService.java:46) | at EchoClient.main(EchoClient.java:13) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046805#4046805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046805 From do-not-reply at jboss.com Fri May 18 10:11:49 2007 From: do-not-reply at jboss.com (ssuyamboo) Date: Fri, 18 May 2007 10:11:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - webservices development/deployment in jboss 4.0.5 and jboss Message-ID: <12399021.1179497509147.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I tried the following webservice , package com.javasrc.webservices.age; public class AgeServlet { public String age( String name, Integer age ) { return name + " is " + age + " years old!"; } } SEI is , package com.javasrc.webservices.age; import java.rmi.Remote; import java.rmi.RemoteException; public interface Age extends Remote { public String age( String name, Integer age ) throws RemoteException; } web.xml AgeServlet com.javasrc.webservices.age.AgeServlet AgeServlet /Age used this config file to generate wsdl and mapping file using Webservices Developer Pack which runs on jre 1.5 and my jboss server runs on java 1.4 my directory structure looks like , age.war /WEB-INF /classes mapping.xml web.xml webservices.xml /wsdl AgeService.wsdl When I opened up mapping and webservices.xml in jboss IDE 2 Beta , it showed some schema errors. cvc-id.3: A field of identity constraint 'port-component-name-key' matched element 'webservice-description', but this element does not have a simple type. I resolved this by removing , 'http://java.sun.com/xml/ns/j2ee from the following . And then published using jboss IDE Beta. Though I see the webservice in the console http://localhost:8080/jbossws/services , I couldn't invoke the webservice using client program in which I was thrown with error 500. How do I resolve this ? Any help would be greatly appreciated. Is the jbossws is a suggested environment to develop webservices? Thanks Sundar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046824#4046824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046824 From do-not-reply at jboss.com Fri May 18 10:14:34 2007 From: do-not-reply at jboss.com (dinesh_dike) Date: Fri, 18 May 2007 10:14:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - when i restart jboss server web service is not starting Message-ID: <23149950.1179497674642.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi i am using jboss 4.0.5 GA and jbossws1.2.1 to develope web service (jsr181) . first time when i deployed war , its deploying & statring web service properly. when i restart jboss server again, its deploying the war but it not starting web service. if i change the class name of endpoint, again deploying that time its starting properly please help me asap View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046827#4046827 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046827 From do-not-reply at jboss.com Fri May 18 10:30:07 2007 From: do-not-reply at jboss.com (rickcr) Date: Fri, 18 May 2007 10:30:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <13171095.1179498607852.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Heiko. That worked great. Not sure what I was doing wrong earlier when I had tried that (using @WebContext) and wasn't able to find the wsdl. It's working fine now, so I'll chalk my mistakes up to typical stupid human error:) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046838#4046838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046838 From do-not-reply at jboss.com Fri May 18 15:58:30 2007 From: do-not-reply at jboss.com (bcflynn2) Date: Fri, 18 May 2007 15:58:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Using wstools, how to reference non standrad mapping file in Message-ID: <7538839.1179518310363.JavaMail.jboss@colo-br-02.atl.jboss.com> Hey all. Using JBoss 4.04, I'm trying to create a jar to store all our web service generated classes and the jaxrpc mapping files; all of which are generated from the wsdl using wstools. This works beautifully if I generate the mapping file as "jaxrpc-mapping.xml" because this is discovered by default, but when I try a unique xml name, and use the jboss 'ServiceFactoryImpl' to specify this file when consuming the web service, I can't find the file. Even worse, it seems like the URL path starts from the jboss/bin folder- how would I tell the system to access an xml file inside a jar file from outside the relative jar? Has anyone been able to do this? I assume since the 'ServiceFactoryImpl' class seems to have been created solely for this purpose that there is indeed a way. Any help would be greatly appreciated- thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046921#4046921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046921 From do-not-reply at jboss.com Fri May 18 20:10:22 2007 From: do-not-reply at jboss.com (maciej.machulak) Date: Fri, 18 May 2007 20:10:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Handlers - reference to service endpoints Message-ID: <22300901.1179533422876.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Is there ANY way to get information in a handler about the class/method that is being executed (when a message comes)? I'm not asking about the web-method name that can be obtained from the SOAP message but I it is possible to get a reference to the method itself (somehow:) ). Thanks in advance for your reply. Kind regards, Maciej M. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046960#4046960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046960 From do-not-reply at jboss.com Sat May 19 13:00:22 2007 From: do-not-reply at jboss.com (ramat123) Date: Sat, 19 May 2007 13:00:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Exception in EJB 3.0 Client Execution Message-ID: <6071360.1179594022377.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there, Have you found a solution to this problem? I am exactly in the same situation right now trying to solve it for hours. Thanks a lot, David View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047004#4047004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047004 From do-not-reply at jboss.com Sun May 20 09:23:04 2007 From: do-not-reply at jboss.com (genady_yadata) Date: Sun, 20 May 2007 09:23:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <11673441.1179667384420.JavaMail.jboss@colo-br-02.atl.jboss.com> Heiko, Is there an XML syntax that can override the WebContext or we must use the annotation? Thanks, Genady View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047054#4047054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047054 From do-not-reply at jboss.com Mon May 21 17:52:16 2007 From: do-not-reply at jboss.com (gryffin) Date: Mon, 21 May 2007 17:52:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume cannot use JBoss-derived schema Message-ID: <17277234.1179784336570.JavaMail.jboss@colo-br-02.atl.jboss.com> I built a web service using a wsdl. THis wsdl imports a schema that defines types used by the schema in the wsdl. wsconsume builds the types just fine, the namespaces appear to work out. I deploy the service and discover that there JBoss wrote a new wsdl that incorporated the types document, but upon deployment JBoss cannot unravel it's own wsdl to figure out some of the type definitions. How do I change my deployment to get JBoss to avoid this trap? Thanks. Here are the console log entries: | 14:23:59,305 ERROR [JBossXSErrorHandler] JBossWS_www.com_NLS_ns_soapTypes43545.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:Device'to a(n) 'element declaration' component. | 14:23:59,305 ERROR [JBossXSErrorHandler] JBossWS_www.com_NLS_ns_soapTypes43545.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:AssetDisplayName' to a(n) 'element declaration' component. | 14:23:59,305 ERROR [JBossXSErrorHandler] JBossWS_www.com_NLS_ns_soapTypes43545.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:AssetCategory' to a(n) 'element declaration' component. | 14:23:59,305 ERROR [JBossXSErrorHandler] JBossWS_www.com_NLS_ns_soapTypes43545.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:AssetDescription' to a(n) 'element declaration' component. | 14:23:59,305 ERROR [JBossXSErrorHandler] JBossWS_www.com_NLS_ns_soapTypes43545.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve: Cannot resolve the name 'ns1:AssetSuspended' to a(n) 'element declaration' component. | 14:23:59,461 INFO [TomcatDeployer] deploy, ctxPath=/NetworkLocationService3, warUrl=.../tmp/deploy/tmp43543NetworkLocationService3-exp.war/ | 14:23:59,664 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.5.GA/server/default/data/wsdl/NetworkLocationService3.war/NetworkLocationService43544.wsdl | Here's the resultant WSDL: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047393#4047393 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047393 From do-not-reply at jboss.com Mon May 21 17:52:34 2007 From: do-not-reply at jboss.com (go_rags) Date: Mon, 21 May 2007 17:52:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - What Webservice Impl should I use with JBoss 4.0.3 and EJB3 Message-ID: <23071551.1179784354997.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, We have implemented our application using EJB3 on JBoss 4.0.3. We need to write a Web service adapter to our application. The documents I am reading makes me understand JBossWS can be used only with JBoss 4.0.5 or higher while JBossWS4EE is compatible only with J2EE 1.4. Since we are using JBoss 4.0.3 and the EJB3.0 container what should be the approach I can take to implement a Web service in my application. I appreciate your response. Thanks, Raghu. Note : A simple deployment of our application to JBoss 4.0.5 fails and we don't have enough manpower and time to port it to JBoss 4.0.5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047395#4047395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047395 From do-not-reply at jboss.com Mon May 21 18:32:56 2007 From: do-not-reply at jboss.com (tejasjani) Date: Mon, 21 May 2007 18:32:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wstools error from WSDL to Java Message-ID: <5193074.1179786776521.JavaMail.jboss@colo-br-02.atl.jboss.com> Trying to generate java artifacts from wsdl, using wstools, I get the following error: $ ./wstools.sh -config C:/test/wstools-config.xml -dest C:/test/ | ========================================================================= | | WSTools Environment | | JBOSS_HOME: D:\dtsource\main\deploy\servers\jboss-4.0.5.GA1 | | JAVA: /d/dtsource/main/thirdparty/tool/jdk/windows/jdk1.5.0/bin/java | | JAVA_OPTS: | | ========================================================================= | | Exception in thread "main" java.lang.NullPointerException | at java.io.File.(File.java:194) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:308) | at org.jboss.ws.tools.WSTools.process(WSTools.java:138) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:120) | at org.jboss.ws.tools.WSTools.main(WSTools.java:61) | | My environment is JBossWS 1.0.4 on JBoss 4.0.5GA running on Java 5 what am I missing ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047402#4047402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047402 From do-not-reply at jboss.com Mon May 21 19:44:53 2007 From: do-not-reply at jboss.com (schmaggis) Date: Mon, 21 May 2007 19:44:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: how to get wstools working in jboss 4.2 Message-ID: <31472627.1179791093550.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem and adding the lines: WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jboss-jaxrpc.jar" | WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/wsdl4.jar" to the wstools.sh file didn't solve the problem :( any other ideas? Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047408#4047408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047408 From do-not-reply at jboss.com Tue May 22 00:31:38 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 22 May 2007 00:31:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools error from WSDL to Java Message-ID: <32589939.1179808298736.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you provide me the wstools-config.xml file contents? Thanks, Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047422#4047422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047422 From do-not-reply at jboss.com Tue May 22 01:16:56 2007 From: do-not-reply at jboss.com (tejasjani) Date: Tue, 22 May 2007 01:16:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools error from WSDL to Java Message-ID: <19409391.1179811016812.JavaMail.jboss@colo-br-02.atl.jboss.com> Here is the wstools-config.xml file: (both the wsdl and xsd files are in the same location) | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047427#4047427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047427 From do-not-reply at jboss.com Tue May 22 02:50:09 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 22 May 2007 02:50:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools error from WSDL to Java Message-ID: <2286101.1179816609849.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello!! You shall use forward slashes instead of the backslash in the windows path, i.e. change C:\test\HEBService_Full_.wsdl to C:/test/HEBService_Full_.wsdl Kind Regards Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047442#4047442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047442 From do-not-reply at jboss.com Tue May 22 04:52:57 2007 From: do-not-reply at jboss.com (trivedi) Date: Tue, 22 May 2007 04:52:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools error from WSDL to Java Message-ID: <6142507.1179823977685.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, Instead of Location, use file as mentioned below: As far as I understand I need a file ws4ee.sar to develop WebServices under JBoss v4.0.5 I did not found this *.sar file in my current JBoss installation. Is this an add-on which I have to download (from where ?) or is it replaced by another archive in v4.0.5 ? Are all *.jars which I need in v4.0.5. already included in the "standard" JBoss distribution ? Which WebService specific *.jars do I have to add to my CLASSPATH which I don't need for other java development ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047476#4047476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047476 From do-not-reply at jboss.com Tue May 22 06:34:32 2007 From: do-not-reply at jboss.com (sashaxiv) Date: Tue, 22 May 2007 06:34:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - A question about webservices Message-ID: <10928635.1179830072612.JavaMail.jboss@colo-br-02.atl.jboss.com> I have an application developed with ejb3 and jboss. Now i need to use webservices. I have a problem, i tried to use @WebService from java6 but my application don?t work with this version of Java(there is a bug regerencing VO`s from others). Any proposal? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047498#4047498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047498 From do-not-reply at jboss.com Tue May 22 10:20:00 2007 From: do-not-reply at jboss.com (avbentem) Date: Tue, 22 May 2007 10:20:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <14587708.1179843600982.JavaMail.jboss@colo-br-02.atl.jboss.com> Rick, can you confirm that your question in JIRA JBWS-1622 is solved (for you, but maybe not for the reporter of that issue) by Heiko's replies? And for the archives: @WebContext is org.jboss.ws.annotation.WebContext as found in jbossws-core.jar Arjan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047595#4047595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047595 From do-not-reply at jboss.com Tue May 22 14:34:44 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 22 May 2007 14:34:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: A question about webservices Message-ID: <7989759.1179858884326.JavaMail.jboss@colo-br-02.atl.jboss.com> JDK 6 ships with web services built in. Unfortunately, I think they use an older version of web service, which means that JBossWS will not work with JDK 6. (Please note: this is what I recall of this problem which I ran into about two months ago.) The solution is to use JDK 5 for now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047672#4047672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047672 From do-not-reply at jboss.com Tue May 22 14:43:24 2007 From: do-not-reply at jboss.com (tejasjani) Date: Tue, 22 May 2007 14:43:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools error from WSDL to Java Message-ID: <26513082.1179859404376.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, here is the final file that seems to work | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047678#4047678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047678 From do-not-reply at jboss.com Tue May 22 14:49:20 2007 From: do-not-reply at jboss.com (tejasjani) Date: Tue, 22 May 2007 14:49:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jboss4.0.5 + which version of jbossws + correct document Message-ID: <4585508.1179859760348.JavaMail.jboss@colo-br-02.atl.jboss.com> My understanding based on what i have read, is that jbossws 1.2 (or jbossws 2.0 which is scheduled to be out in July timeframe) is supposed to work with JBoss 4.0.5 AS. In other words, JBoss 1.2 or JBoss 2.0 can be installed on top of JBoss 4.0.5 and can be used to write JAX-WS compliant or JAX-RPC compliant webservices. Can someone valiidate (or correct) my understanding thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047681#4047681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047681 From do-not-reply at jboss.com Tue May 22 14:54:54 2007 From: do-not-reply at jboss.com (khelenek) Date: Tue, 22 May 2007 14:54:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <32480432.1179860094501.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, can you or anyone else elaborate more on what causes this or where to look to fix this? Getting it with same configuration as original poster. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047682#4047682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047682 From do-not-reply at jboss.com Tue May 22 20:31:55 2007 From: do-not-reply at jboss.com (tejasjani) Date: Tue, 22 May 2007 20:31:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Unable to start JBoss after installing JBossWS 1.2.1 on JBos Message-ID: <8426480.1179880315364.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi , I tried installing JBossWS 1.2.1 on JBoss 4.0.5 GA (using Java 5), using the following installation instructions: http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS Now, I am unable to start JBoss server which fails with the folllowing exception: | 2007-05-22 17:17:40,623 WARN [org.jboss.security.auth.login.XMLLoginConfigImpl] End loadConfig, failed to load config: file:/D:/dtsource/main/deploy/servers/jboss-4.0.5.GA1/server/default/conf/login-config.xml | org.jboss.security.auth.login.ParseException: Encountered " | ... | | at org.jboss.security.auth.login.SunConfigParser.generateParseException(SunConfigParser.java:395) | at org.jboss.security.auth.login.SunConfigParser.jj_consume_token(SunConfigParser.java:333) | at org.jboss.security.auth.login.SunConfigParser.config(SunConfigParser.java:98) | at org.jboss.security.auth.login.SunConfigParser.parse(SunConfigParser.java:57) | at org.jboss.security.auth.login.SunConfigParser.doParse(SunConfigParser.java:79) | at org.jboss.security.auth.login.XMLLoginConfigImpl.loadSunConfig(XMLLoginConfigImpl.java:310) | at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:294) | at org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig(XMLLoginConfigImpl.java:268) | at org.jboss.security.auth.login.XMLLoginConfig.startService(XMLLoginConfig.java:176) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor4.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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | 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 $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | 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.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 $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:490) | at java.lang.Thread.run(Thread.java:595) | 2007-05-22 17:17:42,249 INFO [org.jboss.system.server.Server] Runtime shutdown hook called, forceHalt: true | 2007-05-22 17:17:42,249 INFO [org.jboss.system.server.Server] JBoss SHUTDOWN: Undeploying all packages | can anyone pls. help with this I am assuming that JBossWS 1.2.1 can be run on JBoss 4.0.5 server, although the following line in installation guide makes me suspicious: anonymous wrote : Currently, we have integration layers for the JBoss application server (> 4.0.5.GA) and Apache Tomcat. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047746#4047746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047746 From do-not-reply at jboss.com Wed May 23 06:43:32 2007 From: do-not-reply at jboss.com (ollka) Date: Wed, 23 May 2007 06:43:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jboss and web service client problems. Message-ID: <5670217.1179917012213.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I hope, this is rigth place to ask my question. I'm trying to create "hello world" web service. I use jboss 4.0.5.GA, jbossws1.2.1GA I found this article and follow it step by step, but i could not run web service client not once. My web service deployed successfully, but running client got an error. I read somewhere, that jboss and jax-ws doesnot work with jdk1.6, so i change it to jdk1.5 i run jboss with jdk1.5 and compile all source files with it. but when i'm trying to deploy service, i have error: 14:16:58,706 ERROR [MainDeployer] Could not create deployment: file:/home/ollka/jboss-4.0.5.GA/server/default/deploy/SecondWS.war | java.lang.UnsupportedClassVersionError: Bad version number in .class file | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(ClassLoader.java:620) | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) | at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) | at java.net.URLClassLoader.access$100(URLClassLoader.java:56) | at java.net.URLClassLoader$1.run(URLClassLoader.java:195) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.ws.core.utils.JavaUtils.loadJavaType(JavaUtils.java:148) | at org.jboss.ws.metadata.umdm.ParameterMetaData.loadWrapperBean(ParameterMetaData.java:244) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:746) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:828) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:122) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:87) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) | at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | 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 $Proxy43.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor19.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 $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor2.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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.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.server.Invocation.invoke(Invocation.java:86) | 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 $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | 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.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 $Proxy5.deploy(Unknown Source) | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | at org.jboss.Main.boot(Main.java:200) | at org.jboss.Main$1.run(Main.java:490) | at java.lang.Thread.run(Thread.java:595) I'm sure, that i compiled source files with jdk1.5, because i delete all .class files, and my old .war file from anywhere. If i deploy it to jboss, running on jdk1.6, i have no error while deploy, but have an error when runnig client: 14:14:02,159 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/tc5/WebAppClassLoader) previously initiated loading for a different type with name "javax/xml/rpc/ParameterMode" | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(ClassLoader.java:620) | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) | at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815) | at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869) | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322) | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201) | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | at java.lang.Class.forName0(Native Method) | at java.lang.Class.forName(Class.java:169) | at $Proxy83.(Unknown Source) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.createProxy(ServiceDelegateImpl.java:398) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:278) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:200) | at javax.xml.ws.Service.getPort(Service.java:94) | at oll.wsc.HelloWorldService.getHelloWorldPort(HelloWorldService.java:50) | at org.apache.jsp.index_jsp._jspService(index_jsp.java:72) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | 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.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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 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:619) | I must mention, that i trying to use jboss's libs. In tutorial, pointed above, it uses JAX-WS lib, which is in netbeans modules. Firstly i used it, (following the tutorial), but when i try to run client (service is deployed), i have error: 14:29:00,716 ERROR [STDERR] javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | 14:29:00,716 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:304) | 14:29:00,717 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:242) | 14:29:00,717 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | 14:29:00,717 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | 14:29:00,717 ERROR [STDERR] at $Proxy79.sayHi(Unknown Source) | 14:29:00,717 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_jsp.java:78) | 14:29:00,717 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | 14:29:00,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | 14:29:00,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | 14:29:00,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | 14:29:00,717 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | 14:29:00,717 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 14:29:00,717 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | 14:29:00,717 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | 14:29:00,718 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | 14:29:00,718 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | 14:29:00,718 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | 14:29:00,718 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | 14:29:00,718 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 14:29:00,718 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | 14:29:00,718 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | 14:29:00,718 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | 14:29:00,718 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | 14:29:00,718 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | 14:29:00,718 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | 14:29:00,718 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619) | 14:29:00,718 ERROR [STDERR] Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | 14:29:00,718 ERROR [STDERR] at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424) | 14:29:00,718 ERROR [STDERR] at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:67) | 14:29:00,718 ERROR [STDERR] at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:155) | 14:29:00,719 ERROR [STDERR] at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:58) | 14:29:00,719 ERROR [STDERR] at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:153) | 14:29:00,719 ERROR [STDERR] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:274) | 14:29:00,719 ERROR [STDERR] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:230) | 14:29:00,719 ERROR [STDERR] ... 29 more What i'm doing wrong? Please, help me! Sorry for my bad english. thanx oll. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047861#4047861 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047861 From do-not-reply at jboss.com Wed May 23 06:52:56 2007 From: do-not-reply at jboss.com (spinergywmy) Date: Wed, 23 May 2007 06:52:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - org.jboss.ws.WSException: Cannot obtain java type mapping Message-ID: <23605990.1179917576424.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, When I try to pass ArrayList as a result back to the client-server and I hit this org.jboss.ws.WSException: Cannot obtain java type mapping exception. What does this exception means and is it not possible to pass ArrayList as a result? Can anyone explain why? Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047864#4047864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047864 From do-not-reply at jboss.com Wed May 23 07:22:18 2007 From: do-not-reply at jboss.com (spinergywmy) Date: Wed, 23 May 2007 07:22:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <18323824.1179919338077.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Just to add extra info, below are the wsdl and the exception is org.jboss.ws.WSException: Cannot obtain java type mapping for {http://ws.search.ds.mymcsb.com/jaws}ArrayList: - - - - - - - - - - - - - - View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047866#4047866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047866 From do-not-reply at jboss.com Wed May 23 07:27:52 2007 From: do-not-reply at jboss.com (spinergywmy) Date: Wed, 23 May 2007 07:27:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain java type mappin Message-ID: <16330573.1179919672434.JavaMail.jboss@colo-br-02.atl.jboss.com> complexType name="ArrayList" sequence element name="empty" type="boolean" / /sequence /complexType /schema /types This above codes are the part of the missing part when the 2nd time I posted. Sorry for the incovenience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047868#4047868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047868 From do-not-reply at jboss.com Wed May 23 09:42:32 2007 From: do-not-reply at jboss.com (superomega) Date: Wed, 23 May 2007 09:42:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Using Log4j with jbossws-1.2.1.GA Message-ID: <3810748.1179927752283.JavaMail.jboss@colo-br-02.atl.jboss.com> Hallo with jbossws-1.2.0 I usesd server\default\conf\log4j.xml to trace the soap Messages: | | | | | Now this isn't working any more. What has changed, what can I do that it will work again? Thank you, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047902#4047902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047902 From do-not-reply at jboss.com Wed May 23 10:09:45 2007 From: do-not-reply at jboss.com (guiturk) Date: Wed, 23 May 2007 10:09:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Port 8080 and Web Services Message-ID: <12967718.1179929385366.JavaMail.jboss@colo-br-02.atl.jboss.com> I can not use port 8080, so I switched to 8082. Everything works fine, but when deploying web services I get this: 22:05:31,812 INFO [ServiceEndpointManager] WebService started: http://PVGT:8080/pharos My web client can access the wsdl but when I try to load the service implmentation class using ServiceFactory, it fails: Exception in thread "main" java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source) at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:737) at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180) at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227) at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118) at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145) at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:110) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82) at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) at PharosWebTest.main(PharosWebTest.java:29) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047911#4047911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047911 From do-not-reply at jboss.com Wed May 23 10:56:18 2007 From: do-not-reply at jboss.com (ethan1980) Date: Wed, 23 May 2007 10:56:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Set WS-Configuration Message-ID: <1841620.1179932178316.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I have created client artifacts with wsconsume from wsdl. I have a class service like: package com.hp.som.handlers.webservices.impl; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; /** * JBossWS Generated Source * * Generation Date: Tue May 22 16:55:09 CEST 2007 * * This generated source code represents a derivative work of the input to * the generator that produced it. Consult the input for the copyright and * terms of use that apply to this source code. * * JAX-WS Version: 2.0 * */ @WebServiceClient(name = "TestService", targetNamespace = "http://som.hp.som/com/hp/som/handlers/webservices/impl", wsdlLocation = "WEB-INF/wsdl/TestBean.wsdl") public class TestService_Service extends Service { private final static URL TESTSERVICE_WSDL_LOCATION; static { URL url = null; /*try { url = new File("WEB-INF/wsdl/TestBean.xml").toURL(); } catch (MalformedURLException e) { e.printStackTrace(); }*/ TESTSERVICE_WSDL_LOCATION = url; } public TestService_Service(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public TestService_Service() { super(TESTSERVICE_WSDL_LOCATION, new QName("http://som.hp.som/com/hp/som/handlers/webservices/impl", "TestService")); } /** * * @return * returns TestService */ @WebEndpoint(name = "TestServicePort") public TestService getTestServicePort() { return (TestService)super.getPort(new QName("http://som.hp.som/com/hp/som/handlers/webservices/impl", "TestServicePort"), TestService.class); } } ... I want configure ws-security of this mode: TestService_Service service = new TestService_Service(); String configFilePath = initConfigFilePath(ctx); if ( (configFilePath != null) && (!"".equals(configFilePath.trim()))) { URL securityURL = new File(configFilePath).toURL(); ((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm()); } My problem is that i cant cast TestService_Service in ServiceExt for set security config and i want not create Service like Service.create(url,qname). Thanks in advance. [/img] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047931#4047931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047931 From do-not-reply at jboss.com Thu May 24 01:10:35 2007 From: do-not-reply at jboss.com (king_country2000) Date: Thu, 24 May 2007 01:10:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: schema validation for xml Message-ID: <15081789.1179983435740.JavaMail.jboss@colo-br-02.atl.jboss.com> How can one access the Schema generated (the ones in the WSDL file) in the Java code.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048120#4048120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048120 From do-not-reply at jboss.com Thu May 24 02:28:30 2007 From: do-not-reply at jboss.com (sashaxiv) Date: Thu, 24 May 2007 02:28:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: A question about webservices Message-ID: <32922025.1179988110568.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks Peter, one more question.. Which is th best way to build webservices? i?ve read something about axis, another posibility i found was wscompile from J2EE package. What do you recomend me? Jboss should let us using anotations for webservices as Sun J2EE server! Is Jboss 5 ready for this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048128#4048128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048128 From do-not-reply at jboss.com Thu May 24 06:07:19 2007 From: do-not-reply at jboss.com (avbentem) Date: Thu, 24 May 2007 06:07:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: If I deploy more than one webservice I get Message-ID: <12968477.1180001239600.JavaMail.jboss@colo-br-02.atl.jboss.com> Even when deploying only a single web service, this error may also be caused by some left-overs after refactoring without properly cleaning up. I changed the name of my service using Eclipse, which left the old compiled classes in various exploded archive folders. Those were then still copied to, and loaded by, JBoss. This resulted in multiple services (same implementation with different class names) within the same application, and thus yielding the "org.jboss.ws.WSException: Multiple context root not supported" error. My stupid mistake, of course... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048197#4048197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048197 From do-not-reply at jboss.com Thu May 24 09:35:11 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 24 May 2007 09:35:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: A question about webservices Message-ID: <14513510.1180013711887.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS 1.2 supports annotations for creating web services. See docs at http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048296#4048296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048296 From do-not-reply at jboss.com Thu May 24 12:15:11 2007 From: do-not-reply at jboss.com (guiturk) Date: Thu, 24 May 2007 12:15:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <24098134.1180023311171.JavaMail.jboss@colo-br-02.atl.jboss.com> Have you been able to solve the [JUDDIService] JNDI Bind Failed:JAXR problem, with 4.0.5.GA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048387#4048387 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048387 From do-not-reply at jboss.com Thu May 24 12:33:35 2007 From: do-not-reply at jboss.com (guiturk) Date: Thu, 24 May 2007 12:33:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <16191271.1180024415038.JavaMail.jboss@colo-br-02.atl.jboss.com> HI, I have the same problem and I have not been able to figure out how to solve it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048396#4048396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048396 From do-not-reply at jboss.com Thu May 24 12:49:25 2007 From: do-not-reply at jboss.com (guiturk) Date: Thu, 24 May 2007 12:49:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.1 error Message-ID: <17929738.1180025365397.JavaMail.jboss@colo-br-02.atl.jboss.com> HI, I have the same problem, have you been able to find a solution for it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048400#4048400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048400 From do-not-reply at jboss.com Thu May 24 13:09:18 2007 From: do-not-reply at jboss.com (centecbertl) Date: Thu, 24 May 2007 13:09:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.1 error Message-ID: <9447861.1180026558560.JavaMail.jboss@colo-br-02.atl.jboss.com> see JBossWS 1.2.1 release announcement : jboss 4.0.5 is required http://www.jboss.com/index.html?module=bb&op=viewtopic&t=106898 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048409#4048409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048409 From do-not-reply at jboss.com Thu May 24 13:29:59 2007 From: do-not-reply at jboss.com (lasterra) Date: Thu, 24 May 2007 13:29:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Can't install JbossWS on Tomcat Message-ID: <17635568.1180027799993.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, i get a clean tomcat-5.5.23 and jbossws.1.2.0. I follow steps of http://labs.jboss.com/jbossws/user-guide/en/html/installation.html#install-tomcat and then i run tomcat. When i try to see http://localhost:8080/jbossws i get a 404 error. I see on webapps that jbossws folder is created, but jbossws-deploy is not created. There is no logs on console, and the file jbossws.log is not created on tomcat/logs. I open the tomcat-manager, but jbossws application is not listed. Tomcat serlvet samples and others run perfectly. I checked that jboss*.jar libs are con tomcat/common/lib with activation and mail, and xerces, xalan and serializer jars are on common/endorsed... So I think the instalation is ok. What i make wrong?? I use jdk_1_5_09 on WindowsXP, i tried on tomcat5.5.20 and 5.5.23 with jbossws 1.2.0 and 1.2.1. Regards, Enrique. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048424#4048424 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048424 From do-not-reply at jboss.com Thu May 24 14:45:18 2007 From: do-not-reply at jboss.com (guiturk) Date: Thu, 24 May 2007 14:45:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.1 error Message-ID: <30073283.1180032318207.JavaMail.jboss@colo-br-02.atl.jboss.com> I have 4.0.5.ga and still have the same problem... any idea of what it could be? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048450#4048450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048450 From do-not-reply at jboss.com Thu May 24 15:40:06 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Thu, 24 May 2007 15:40:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <12038091.1180035606622.JavaMail.jboss@colo-br-02.atl.jboss.com> The WS-Security spec does not specify a standard or convention for dynamically encrypting based on client input. Although it could be possible to add a feature that would use the client identity to determine the certificate to use for encryption. Open one in Jira if this is what you want. Otherwise your options are | * Use SSL | * Deploy the same service multiple times per client | * Use a separate shared client key for encryption, authentication can still be validated using individual keys for signature processing. | -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048464#4048464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048464 From pat at xvalheru.org Thu May 24 15:48:07 2007 From: pat at xvalheru.org (pat) Date: Thu, 24 May 2007 21:48:07 +0200 Subject: [jbossws-users] WS & JBoss 3.2.5 Message-ID: <20070524194413.M30327@xvalheru.org> Hello, I need to develop a WS, which has to be deployed on the JBoss 3.2.5. I've search the Web, but without luck :-( Could you suggest me a way how to do that, point me to web page and the best to point me to the example? Thanks a lot !!! Pat From do-not-reply at jboss.com Thu May 24 17:32:01 2007 From: do-not-reply at jboss.com (jcstaff) Date: Thu, 24 May 2007 17:32:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how to set http header properties Message-ID: <2318379.1180042321277.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there a way for a client to set the properties used in the HTTP client header? I am using jboss 1.0.4 as well as testing with 1.2.1GA. We are having a problem with jbossws hanging in between calls to a .NET web service. The problem occurs on or after the second call and clears/completes after a lengthy timeout (and then re-occurs on a subsequent call). The actual call takes ~28secs of processing to complete. The timeouts/re-tries automatically happen (and complete) in about ~90-120secs. The.NET server sees no activity during the hang, we have no problems calling other jbossws services and we have no trouble calling the same .NET service from Axis. Our deployed code runs in a JBoss 4.0.5 MDB, but we are able to re-create the problem with a stripped down Java SE JUnit environment. We'd like to try a work-around by eliminating the "Connection: keep-alive" property from being automatically added in the SOAP call. We are hoping that this will successfully reset the connection between client/server calls. I cannot locate a way to specify HTTP Header properties. thanks, jim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048490#4048490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048490 From do-not-reply at jboss.com Fri May 25 08:37:42 2007 From: do-not-reply at jboss.com (ulliobst) Date: Fri, 25 May 2007 08:37:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Servlet based Webservice Deployment without web.xml does not Message-ID: <33266919.1180096662168.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Deploying Web Services in a war file without web.xml seems not to work. I deployed a war file which contains only the WebService class file in WEB-INF/classes (of cause annotated with @WebService) . The same war file runs fine on sun application server. JSR109 (WebServices for java EE, Version 1.2), which is part of EE5, says, that the web.xml is not required (See chapter 7.1.2: "Servlet based web service endpoints using JAX-WS are not required to provide the web.xml deployment descriptor file"). Is it a feature that is not yet implemented or am I wrong? Best regards Ulli View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048669#4048669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048669 From do-not-reply at jboss.com Fri May 25 13:05:23 2007 From: do-not-reply at jboss.com (akhil.bhaskar) Date: Fri, 25 May 2007 13:05:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0CR2 with JEMS 1.2 (and JBoss 4.0.5) fails Message-ID: <20505101.1180112723289.JavaMail.jboss@colo-br-02.atl.jboss.com> A similar issue I'm having, but this involves an EJB3 SLSB exposed as a webservice. I'm getting an error when deploying my EJB (built using Maven2 as an 'ejb' jar) | JBoss 4.0.5.GA | JBossWS 1.2.1.GA (build=200704161533) | JBoss EJB 3.0 RC9 Patch 1 | | | my EJB: | | | @Stateless | | @WebService | | public class DnCommitmentBean extends BaseServiceBean implements DnCommitment | | { | | | | @WebMethod | | public DnCommitmentVo[] getDnCommitmentList(byte[] authenticationInfo) throws FhlbServiceException | | | | | | 12:31:19,986 DEBUG [JAXWSWebServiceMetaDataBuilder] JAXBContext [types=[class com.fhlb.service.dncommitment.business.jaxws.GetDnCommitmentList, class com.fhlb.service.dncommitment.business.jaxws.GetDnCommitmentListResponse, class com.fhlb.service.dncommitment.business.jaxws.FhlbServiceExceptionBean, class com.fhlb.service.dncommitment.business.jaxws.SaveDnCommitment, class com.fhlb.service.dncommitment.business.jaxws.SaveDnCommitmentResponse, class com.fhlb.service.dncommitment.business.jaxws.FhlbServiceExceptionBean],tns=http://business.dncommitment.service.fhlb.com/] | | 12:31:20,659 DEBUG [WSDLDefinitionsFactory] parse: file:/Applications/jboss-4.0.5.GA/server/default/tmp/jbossws/DnCommitmentBeanService20342.wsdl | | 12:31:20,825 DEBUG [JavaToXSD] Load schema: http://business.dncommitment.service.fhlb.com/=file:/Applications/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_business.dncommitment.service.fhlb.com_20343.xsd | | 12:31:20,825 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/Applications/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_business.dncommitment.service.fhlb.com_20343.xsd] | | 12:31:20,831 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null] | | 12:31:20,861 DEBUG [EndpointMetaData] Create new config [name=Standard Endpoint,file=META-INF/standard-jaxws-endpoint-config.xml] | | 12:31:20,864 DEBUG [JBossWSConfigFactory] getConfig: [name=Standard Endpoint,url=META-INF/standard-jaxws-endpoint-config.xml] | | 12:31:20,865 DEBUG [JBossWSConfigFactory] parse: file:/Applications/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-endpoint-config.xml | | 12:31:20,866 ERROR [ServiceEndpointDeployer] Cannot create service endpoint | | org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser | | at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100) | | at org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfigFactory.java:76) | | at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:134) | | at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(EndpointMetaData.java:683) | | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:152) | | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) | | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77) | | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92) | | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) | | at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43) | | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) | | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) | | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) | | 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 $Proxy29.create(Unknown Source) | | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | | at sun.reflect.GeneratedMethodAccessor19.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 $Proxy8.deploy(Unknown Source) | | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | | at sun.reflect.GeneratedMethodAccessor2.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.server.Invocation.invoke(Invocation.java:86) | | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | | at $Proxy0.start(Unknown Source) | | at org.jboss.system.ServiceController.start(ServiceController.java:417) | | at sun.reflect.GeneratedMethodAccessor9.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.server.Invocation.invoke(Invocation.java:86) | | 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 $Proxy4.start(Unknown Source) | | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | | 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.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 $Proxy5.deploy(Unknown Source) | | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | | at org.jboss.Main.boot(Main.java:200) | | at org.jboss.Main$1.run(Main.java:490) | | at java.lang.Thread.run(Thread.java:613) | | Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser | | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:96) | | at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl.java:55) | | at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96) | | ... 84 more | | Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized. | | at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) | | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92) | | ... 86 more | | | | I had some other annotations, but cleared them out to test out the most simple implementation. I have used this in previous versions (I'm pretty sure 4.0.4) and have had success with this. The WSDL is generated - I see it in the ${INSTANCE}/tmp/jbossws/ directory, but the XSD is not in there. What am I missing? | | Thanks | -Akhil View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048745#4048745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048745 From do-not-reply at jboss.com Fri May 25 14:04:02 2007 From: do-not-reply at jboss.com (bypaik) Date: Fri, 25 May 2007 14:04:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jboss and web service client problems. Message-ID: <30732515.1180116242483.JavaMail.jboss@colo-br-02.atl.jboss.com> for the first question, check your build script. sounds like your building with jdk1.6 versioning for 1.5. i'd double-check to make sure you're building with 1.5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048757#4048757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048757 From do-not-reply at jboss.com Sat May 26 02:20:07 2007 From: do-not-reply at jboss.com (Juergen.Zimmermann) Date: Sat, 26 May 2007 02:20:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0CR2 with JEMS 1.2 (and JBoss 4.0.5) fails Message-ID: <8526479.1180160407173.JavaMail.jboss@colo-br-02.atl.jboss.com> Meanwhile I switched to JBoss 4.2 and the problem is gone View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048821#4048821 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048821 From do-not-reply at jboss.com Mon May 28 06:08:55 2007 From: do-not-reply at jboss.com (khdung) Date: Mon, 28 May 2007 06:08:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsdl4j and no content-type exception Message-ID: <29081218.1180346935623.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello everybody, I'm working with JBoss 4.0.5 and trying to read a wsdl file using the javax.wsdl.xml.WSDLReader.readWSDL(pathToWsdl) method. where pathToWsdl is similar to /myWsdlDir/myWsdl.wsdl but I got a no content-type exception ... I tried to use another version of wsdl4j.jar ... it works but other web services doesn't work anymore because the setResolver(..) not found. If anyone has experienced this problem, please help me ... I guest - a good version of wsdl4j.jar - some changes in my code while reading wsdl file Hope to hearing from you soon, Thanks in advance, khdung. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048996#4048996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048996 From do-not-reply at jboss.com Mon May 28 07:44:00 2007 From: do-not-reply at jboss.com (martin.capote) Date: Mon, 28 May 2007 07:44:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <28664516.1180352640656.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for your reply. The feature you mention is an interesting and useful one, on the contrary the XML encryption does not have sense for more than one client. To share a private key is unacceptable (a REAL private key, issued by a CA), and the multiple deploys option does not scale (for example, the incorporation of new clients cannot be dynamic). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049022#4049022 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049022 From do-not-reply at jboss.com Mon May 28 08:28:22 2007 From: do-not-reply at jboss.com (sirigiris) Date: Mon, 28 May 2007 08:28:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SWA / MTOM attachments Message-ID: <15810707.1180355302364.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I've deployed the samples provided by jbossws 1.2.0 on Jboss4.0.4GA and while trying to execute the SWA example, I'm getting the following exception. I came to know through forums that I need to enable MTOM endpoint. The MTOM service is also deployed on the server. Now to get the attachments example working what should I do? - Call invocation failed with unkown Exception org.jboss.ws.binding.BindingException: Mime type text/xml not allowed for parameter mimepart allowed types are [application/xml] at org.jboss.ws.binding.soap.SOAPBindingProvider.createAttachmentPart(SOAPBindingProvider.java:605) at org.jboss.ws.binding.soap.SOAPBindingProvider.bindRequestMessage(SOAPBindingProvider.java:118) at org.jboss.ws.binding.soap.SOAP11BindingProvider.bindRequestMessage(SOAP11BindingProvider.java:65) at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:645) at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) at ws.jboss.org.samples.swa.AttachTest1.main(AttachTest1.java:108) Exception in thread "main" java.rmi.RemoteException: Call invocation failed: Mime type text/xml not allowed for parameter mimepart allowed types are [application/xml]; nested exception is: org.jboss.ws.binding.BindingException: Mime type text/xml not allowed for parameter mimepart allowed types are [application/xml] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718) at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) at ws.jboss.org.samples.swa.AttachTest1.main(AttachTest1.java:108) As of now I'm running a standalone java program. Please find the code attached. Help is highly appreciated. ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(SERVICE_NAME); Call call = service.createCall(); call.setOperationName(new QName(TARGET_NAMESPACE, rpcMethodName)); call.addParameter("message", new QName(Constants.NS_SCHEMA_XSD, "string"), ParameterMode.IN); if (contentType.equals("application/xml")) call.addParameter("mimepart", Constants.TYPE_MIME_APPLICATION_XML, DataHandler.class, ParameterMode.IN); call.setReturnType(new QName(Constants.NS_SCHEMA_XSD, "string")); call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS); call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS); URL temp = new File("resources/jaxrpc/samples/swa/attach.xml").toURL(); String strTempURL = temp.toString(); strTempURL = strTempURL.substring(strTempURL.lastIndexOf("/"),strTempURL.length()); URL url = new URL("http","10.2.154.75",8080,strTempURL); String value = (String)call.invoke(new Object[] {"application/xml" , new DataHandler(url)}); System.out.println("Value ::"+ value); Regards, Sreedhar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049033#4049033 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049033 From do-not-reply at jboss.com Mon May 28 15:58:07 2007 From: do-not-reply at jboss.com (sirigiris) Date: Mon, 28 May 2007 15:58:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jbossws1.2 support SWA on Jboss4.0.4GA?? Message-ID: <15156497.1180382287815.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I'm trying to send a soap attachment from my client to the server on Jboss4.0.4GA application server(built-in wstools1.2). The code is downloaded from Jboss labs and the version I'm working on is jbossws-samples-1.2.0.GA(according to the realease notes, the samples support soap attachments). Does jbossws1.2 on Jboss4.0.4GA support soap attachments? or do I need to go for a higher version? Kindly help Sreedhar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049140#4049140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049140 From do-not-reply at jboss.com Tue May 29 11:31:02 2007 From: do-not-reply at jboss.com (marco.ciatti) Date: Tue, 29 May 2007 11:31:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Jbossws.1.2.1.GA... JNDI Bind Failed:JAXR Message-ID: <3478865.1180452662739.JavaMail.jboss@colo-br-02.atl.jboss.com> If you are using JBoss 4.0.5 I suggest you to install it with the last versione of jems installer java -jar jems-installer-1.2.0.GA.jar I'm currently useing EJB3 profile with Jbossws.1.2.1.GA without any problem; instead I've noticed that the problem appear with former version of jems installer (e.g. 1.2.0.BETA)... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049397#4049397 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049397 From do-not-reply at jboss.com Tue May 29 12:11:26 2007 From: do-not-reply at jboss.com (teknokrat) Date: Tue, 29 May 2007 12:11:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Looking for explanation of wsdl mapping problem Message-ID: <10990757.1180455086410.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using the latest jbossWS to try and generate a JAX-WS client from a wsdl file, which I belive was generated via .NET. The problem is that the jboss wsconsume chokes wherever there exists a element with a org.xml.sax.SAXParseException: undefined element declaration 's:schema'. And this wsdl has a lot of them, all like this: | | | | | | | | | | s is the following namespace xmlns:s="http://www.w3.org/2001/XMLSchema". If I remove the offending element, jbossws generates all the java classes just fine. Since I don't control the wsdl I can't go around editing it. Can someone please explain to me what is the problem here? I can generate classes for this wsdl just fine using Axis, so is the problem with jbossws? Is this a valid wsdl element? Is there something I can do to make this problem go away? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049421#4049421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049421 From do-not-reply at jboss.com Tue May 29 14:19:43 2007 From: do-not-reply at jboss.com (Seto) Date: Tue, 29 May 2007 14:19:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - User guide link not available without proxy. Message-ID: <29002525.1180462783909.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/Main_Page http://jbws.dyndns.org/mediawiki/index.php/Quick_Start http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide These wiki pages are not available without proxy. Could it be moved to the original wiki of jboss? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049486#4049486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049486 From do-not-reply at jboss.com Tue May 29 14:53:17 2007 From: do-not-reply at jboss.com (omatzura) Date: Tue, 29 May 2007 14:53:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Looking for explanation of wsdl mapping problem Message-ID: <19378974.1180464797267.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! The problem is that the .net generated wsdls probably dont actually import the xmlschema schema (via an s:import statement), which results in the wsconsume schema parser not being able to find the global element definition for the schema element.. (You'll get an error for this in for example eclipse wtp wsdl editor also..) I don't really know if there is any way to work around this in jbossws.. what you can do otherwise is save the wsdl locally, add the import yourself and then try to run wsconsume on it.. Hope this helps! regards, /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049498#4049498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049498 From do-not-reply at jboss.com Wed May 30 01:50:31 2007 From: do-not-reply at jboss.com (DivyaMan0j) Date: Wed, 30 May 2007 01:50:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Attachment size limit added using SOAP Message-ID: <23466314.1180504231055.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using JBoss 4.0.2v and jboss-ws4ee.sar from Jboss 4.0.3v. I am using jboss-ws4ee.sar from 4.0.3v because I was not able to send/receive SOAP attachments with file size greater than 64 KB. Could any one please let me know if there is any file size restriction that can be sent/received as a part of SOAP with this version of JBoss ? Actually, we have a requirement in our application, where we have to support (send/receive) upto 15 GB file size as a part of SOAP ? please let me know. -thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049589#4049589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049589 From do-not-reply at jboss.com Wed May 30 04:39:38 2007 From: do-not-reply at jboss.com (teknokrat) Date: Wed, 30 May 2007 04:39:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Looking for explanation of wsdl mapping problem Message-ID: <11405096.1180514378112.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the help. I did consider this but right at the beginning of all the element definitions is which I think is correct. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049620#4049620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049620 From do-not-reply at jboss.com Wed May 30 04:44:25 2007 From: do-not-reply at jboss.com (omatzura) Date: Wed, 30 May 2007 04:44:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Looking for explanation of wsdl mapping problem Message-ID: <26707847.1180514665056.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, the import probably needs to specify the location for it to work, ie regards, /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049624#4049624 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049624 From do-not-reply at jboss.com Wed May 30 06:02:05 2007 From: do-not-reply at jboss.com (teknokrat) Date: Wed, 30 May 2007 06:02:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Looking for explanation of wsdl mapping problem Message-ID: <15482632.1180519325677.JavaMail.jboss@colo-br-02.atl.jboss.com> That worked! Thank you very much. Is this actually a mandatory requirement of some specification or a quirk of jbossws? If the wsdl is not being generated correctly I'd like to be able to tell the people involved. Thank you p.s Is it possible to add this attribute using a binding file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049655#4049655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049655 From do-not-reply at jboss.com Wed May 30 06:10:12 2007 From: do-not-reply at jboss.com (omatzura) Date: Wed, 30 May 2007 06:10:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Looking for explanation of wsdl mapping problem Message-ID: <21562880.1180519812454.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, well, judging from the XML Schema spec for imports (http://www.w3.org/TR/2001/PR-xmlschema-1-20010316/#composition-schemaImport), there are actually rules/guidelines for how to locate an XML Schema when the schemaLocation attribute is missing.. I don't know though if they would have been applicable to this situation and/or if the schema parser in jbossws actually tries to follow them.. regards! /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049656#4049656 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049656 From do-not-reply at jboss.com Wed May 30 09:04:54 2007 From: do-not-reply at jboss.com (teknokrat) Date: Wed, 30 May 2007 09:04:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ant task produces java.lang.NoClassDefFoundError: com/sun/m Message-ID: <20141408.1180530294799.JavaMail.jboss@colo-br-02.atl.jboss.com> When I run the wsconsume ant task it produces the error java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory I can get rid of this by referencing tools.jar in the classpath, but why is this necessary? Whats happening here that the class is not being picked up anyway? cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049704#4049704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049704 From do-not-reply at jboss.com Wed May 30 10:39:43 2007 From: do-not-reply at jboss.com (BK_JBoss) Date: Wed, 30 May 2007 10:39:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsrunclient for jax-ws Message-ID: <13839517.1180535983798.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm getting the same issue, did you ever get a response or otherwise resolve the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049745#4049745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049745 From do-not-reply at jboss.com Wed May 30 11:20:25 2007 From: do-not-reply at jboss.com (tooltime185) Date: Wed, 30 May 2007 11:20:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsrunclient for jax-ws Message-ID: <26656655.1180538425777.JavaMail.jboss@colo-br-02.atl.jboss.com> I corrected this by setting classpath to: c:\jboss-4.0.5.GA\server\default\deploy\jbossws.sar It could not find the jbossws.sar folder. Thanks Tim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049776#4049776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049776 From do-not-reply at jboss.com Wed May 30 12:17:55 2007 From: do-not-reply at jboss.com (swaminathan.ramaswamy) Date: Wed, 30 May 2007 12:17:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Jboss 4.0.5 JBWS 1.0.4 : Cannot obtain xmlType for element Message-ID: <3011949.1180541875974.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi , I encountered this exception will trying to deploy a webservice into jboss "org.jboss.ws.WSException: Cannot obtain xmlType for element: {http://xmlns.oracle.com/bpel/workflow/runtimeConfig}getWorkflowPayloadMappingsRequest" from my searches i figured that this issue will be fixed in 1.0.6 .Can anyone let me know when the release is expected. Is there a workaround to solve this issue Thanks Swami View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049805#4049805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049805 From do-not-reply at jboss.com Wed May 30 17:27:04 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 30 May 2007 17:27:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - MIssing wsdl4j.jar in scripts Message-ID: <25097957.1180560424505.JavaMail.jboss@colo-br-02.atl.jboss.com> When I run the wsrunclient or wsprovide scripts (possibly also with wsconsume, but I am not sure), I get the following exception (if I use the --show-traces option to see what the error was): Generating WSDL: | SalesTaxService.wsdl | Error: Could not generate. (use --show-traces to see full traces) | java.lang.NoClassDefFoundError: javax/wsdl/WSDLException | at org.jboss.ws.tools.wsdl.WSDLWriter.write(WSDLWriter.java:89) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.pr | ocessOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:292) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu | ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:131) | at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContra | ctProviderImpl.java:118) | at org.jboss.ws.tools.jaxws.impl.WSContractProviderImpl.provide(WSContra | ctProviderImpl.java:134) | at org.jboss.ws.tools.jaxws.command.wsprovide.generate(wsprovide.java:16 | 7) | at org.jboss.ws.tools.jaxws.command.wsprovide.main(wsprovide.java:76) Adding the client/wsdl4j.jar file to the claspsath constructed in the script solves this problem. What bugs me about this is how these scripts that deal with WSDLs can even run without the WSDL JAR file being included? Is anyone else seeing this error? I am seeing this in JBoss AS, both 5.0 beta2 and 4.2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049921#4049921 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049921 From do-not-reply at jboss.com Wed May 30 17:29:00 2007 From: do-not-reply at jboss.com (Maffewl) Date: Wed, 30 May 2007 17:29:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume, now what? server side deployment Message-ID: <20032047.1180560540670.JavaMail.jboss@colo-br-02.atl.jboss.com> I used wsconsume to generate appropriate artifacts for server side deployment. It gave me a bunch of classes. I made an implementation of the service. now how do i actually deploy this? I checked the guides listed here, but they don't actually tell you how to go from wsconsume output to deployment (or I'm not seeing it): http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Top-Down_.28Using_wsconsume.29 http://jbws.dyndns.org/mediawiki/index.php/Wsconsume any help on the matter would be greatly appreciated. even if its just a link to a more detailed guide of this 'top down' approach. thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049923#4049923 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049923 From do-not-reply at jboss.com Wed May 30 18:11:49 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 30 May 2007 18:11:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume, now what? server side deployment Message-ID: <3474938.1180563109120.JavaMail.jboss@colo-br-02.atl.jboss.com> Does this discussion help: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049930#4049930 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049930 From do-not-reply at jboss.com Wed May 30 18:46:53 2007 From: do-not-reply at jboss.com (yalnifj) Date: Wed, 30 May 2007 18:46:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: calling a web service from the standlone client Message-ID: <20011252.1180565213562.JavaMail.jboss@colo-br-02.atl.jboss.com> You also need to add the jboss.home/client/javassist.jar to the classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049937#4049937 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049937 From do-not-reply at jboss.com Thu May 31 04:27:46 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Thu, 31 May 2007 04:27:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Deploy a Web Service on Tomcat Message-ID: <613995.1180600066070.JavaMail.jboss@colo-br-02.atl.jboss.com> I have deployed a Web Service with JbossWs on a Jboss-4.0.5 Server and it works But now, I have to deploy the same Web Service on a Tomcat Server I've installed JbossWs on my Tomcat like this: http://labs.jboss.com/jbossws/user-guide/en/html/installation.html and I've deployed my Web Service but it doesn't work Could anyone explain me the deployment process on Tomcat? I haven't find it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050018#4050018 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050018 From do-not-reply at jboss.com Thu May 31 05:59:39 2007 From: do-not-reply at jboss.com (ulliobst) Date: Thu, 31 May 2007 05:59:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WebServiceRef injection does not work Message-ID: <19599314.1180605579293.JavaMail.jboss@colo-br-02.atl.jboss.com> Ha, I have JBoss 5.0 beta2 and jbossws-1.2.1 deployed. I wrote a simple web web-service and everything works fine, when I access the service with Service.create(...) But when I try to access the service with @WebServiceRef I simply get a NullPointerException. @WebServiceRef(wsdlLocation = "http://localhost:8080/jbaddnumbers/addservice?wsdl") Service service; The injection has not occurred and the service field is null. I run the client with the wsrunclient.bat provided in the bin directory of JBoss. Do I have to add some configuration files somewhere? Best regards Ulli View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050065#4050065 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050065 From do-not-reply at jboss.com Thu May 31 08:17:39 2007 From: do-not-reply at jboss.com (fburlet) Date: Thu, 31 May 2007 08:17:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JAXWS: handlers and exceptions Message-ID: <22619417.1180613859638.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I don't understand everything in the exception handling in JAXWS. I written a small webservice; the code is here under: | package com.kiala.handler.test.webservice; | | import javax.ejb.Stateless; | import javax.jws.HandlerChain; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import com.kiala.handler.test.exception.UserException; | | @Stateless | @WebService | @HandlerChain(file = "handler-chain.xml") | @SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.LITERAL) | public class ExceptionService { | | public String throwException(String s) throws UserException { | if ("Hello".equals(s)) { | return "World!"; | } else { | throw new UserException(s); | } | } | } | UserException is a custom exception extending java.lang.Exception. My question is: is UserException obliged to extend java.lang.RuntimeException in ordre to trigger the execution of the handlers's handleFault(MessageContext msgContext) method ? If I don't extend RuntimeException, the handleFault(MessageContext msgContext) is not executed... Note that the generated response is the same if I extend RuntimeException or not: the reason of my question. The specification and the doc is not clear (at least for me) about that. I'm using jboss 4.2.0.GA and jbossws 1.2.1.GA with jdk 1.5. Thanks for you help, Fred. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050115#4050115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050115 From do-not-reply at jboss.com Thu May 31 08:26:41 2007 From: do-not-reply at jboss.com (Maffewl) Date: Thu, 31 May 2007 08:26:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume, now what? server side deployment Message-ID: <19197056.1180614401350.JavaMail.jboss@colo-br-02.atl.jboss.com> the link seems VERY useful, ill try it now. thanks. anyone else have any info on the matter? never hurts to have too much info. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050118#4050118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050118