From do-not-reply at jboss.com Thu Nov 1 03:30:51 2007 From: do-not-reply at jboss.com (adinarayana.gunnam) Date: Thu, 1 Nov 2007 03:30:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Hold the client ip from the client calls made to the we Message-ID: <27307520.1193902251124.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I got the solution for this problem. I got the implementation class for the WebServiceContextImpl class.I hope this it is not been implemented in jars provided. I found a method to get the messagecontext. i.e public MessageContext getMessageContext() { CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext(); if(msgContext instanceof SOAPMessageContextJAXWS) return (SOAPMessageContextJAXWS) msgContext; else return new SOAPMessageContextJAXWS(msgContext); } plesae import the jar C:\JBOSS\server\all\deploy\jbossws.sar\jbossws- core to get all the classesequired for this method I used the obtained message context from this method to obtain the ip addtress as below MessageContext mc=getMessageContext(); System.out.println(((javax.servlet.ServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getRemoteAddr()); Thanks Adinarayana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100911#4100911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100911 From do-not-reply at jboss.com Thu Nov 1 09:09:00 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 1 Nov 2007 09:09:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Time when server started from ws Message-ID: <29624711.1193922540645.JavaMail.jboss@colo-br-02.atl.jboss.com> How I can obtain time when server started from web-service? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100929#4100929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100929 From do-not-reply at jboss.com Thu Nov 1 11:18:11 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 1 Nov 2007 11:18:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Time when server started from ws Message-ID: <25339943.1193930291142.JavaMail.jboss@colo-br-02.atl.jboss.com> Use the StartDate attribute of the jboss.system:type=Server MBean. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100951#4100951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100951 From do-not-reply at jboss.com Thu Nov 1 12:08:18 2007 From: do-not-reply at jboss.com (ulath) Date: Thu, 1 Nov 2007 12:08:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - maven2 and jbossws Message-ID: <25682589.1193933298475.JavaMail.jboss@colo-br-02.atl.jboss.com> how can i use jbossws with maven2? some dependencies are not published(i.e: jbossws-core.jar) to jboss maven2 repository, am i wrong? regards.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100966#4100966 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100966 From do-not-reply at jboss.com Thu Nov 1 14:21:10 2007 From: do-not-reply at jboss.com (Jihnd) Date: Thu, 1 Nov 2007 14:21:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Webservice invocation woes! Message-ID: <16496959.1193941270132.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I've created a web service using netbeans on jboss 4.2.1ga by exposing a ejb. the wdsl is created and loads in browser when i check it & the jmx-console also seems pretty convinced all is working but then when i try an invoke it from within a flex page, i get either; 2007-10-26 00:08:40,500 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBException: java.lang.NullPointerException | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | ............... | Caused by: java.lang.NullPointerException | at Audiorec.AVmanBean.findAudiorec(AVmanBean.java:30) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl or, it's this; 16:14:08,703 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl | at org.jboss.ws.core.soap.SOAPEnvelopeImpl.(SOAPEnvelopeImpl.java:60) | at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:124) | at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:96) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:262) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | 16:14:09,000 ERROR [RequestHandlerImpl] Error processing web service request | org.jboss.ws.WSException: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl | at org.jboss.ws.WSException.rethrow(WSException.java:68) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) i've been rebuilding and redeploying tons, which is why i post the two exceptions because i cant seem to get past either. am i missing something major, i been battling this for 2weeks now and the deadline is killing me! any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101031#4101031 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101031 From do-not-reply at jboss.com Thu Nov 1 15:38:47 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 1 Nov 2007 15:38:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Time when server started from ws Message-ID: <9596457.1193945927318.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : Use the StartDate attribute of the jboss.system:type=Server MBean. Thanks! It works great :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101061#4101061 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101061 From do-not-reply at jboss.com Thu Nov 1 17:31:01 2007 From: do-not-reply at jboss.com (whichever) Date: Thu, 1 Nov 2007 17:31:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot find service endpoint target Message-ID: <2449542.1193952661922.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm seeing this same problem. Whats the proper workaround? I'm using 4.2.2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101087#4101087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101087 From do-not-reply at jboss.com Thu Nov 1 20:17:01 2007 From: do-not-reply at jboss.com (kyriakost) Date: Thu, 1 Nov 2007 20:17:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service Message-ID: <12229052.1193962621204.JavaMail.jboss@colo-br-02.atl.jboss.com> Can anyone help on this ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101123#4101123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101123 From do-not-reply at jboss.com Thu Nov 1 21:44:15 2007 From: do-not-reply at jboss.com (Jihnd) Date: Thu, 1 Nov 2007 21:44:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice invocation woes! Message-ID: <32112927.1193967855069.JavaMail.jboss@colo-br-02.atl.jboss.com> okay, the saajimpl exception i am able to get rid of, so here is a more detailed snippet of my nullpointer exception when i google it, i come here; http://jira.jboss.org/jira/secure/attachment/12316304/SOAPFaultHelperJAXWS.java and it says if the event context is initialised, it is fixed, my log tells me that initialcontext did not implement eventcontext - so this seems to be my problem. could anyone point me in the direction of getting my event context up - when i've googled it, i've read that the warning is merely a red herring & ignorable! context message; anonymous wrote : 2007-10-30 22:17:21,750 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=AVmanBean.jar,unitName=AVmanBean | 2007-10-30 22:17:21,750 WARN [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext | 2007-10-30 22:17:22,140 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiated session factory invocaation error; anonymous wrote : 2007-11-02 01:29:00,437 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] doPost: /AVmanBean/AVmanBean | 2007-11-02 01:29:00,437 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleRequest: jboss.ws:context=AVmanBean,endpoint=AVmanBean | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at eea1e7 (Thread http-127.0.0.1-8080-2) | 2007-11-02 01:29:00,437 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] BEGIN handleRequest: jboss.ws:context=AVmanBean,endpoint=AVmanBean | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=utf-8] | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: POST | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={http://Audiorec/}AVmanBean,port={http://Audiorec/}AVmanBeanPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.soap.SOAPMessageDispatcher] getDispatchDestination: {http://Audiorec/}findAudiorec | 2007-11-02 01:29:00,437 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindRequestMessage: {http://Audiorec/}findAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.EndpointInvocation] setRequestParamValue: [name={http://Audiorec/}findAudiorec,value=org.jboss.ws.core.soap.SOAPBodyElementDoc] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: ENDPOINT | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=ENDPOINT,info=[service={http://Audiorec/}AVmanBean,port={http://Audiorec/}AVmanBeanPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: PRE | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=PRE,info=[service={http://Audiorec/}AVmanBean,port={http://Audiorec/}AVmanBeanPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestPayload | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestParamValue: {http://Audiorec/}findAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to OBJECT_VALID | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.XMLContent] getObjectValue [xmlType={http://Audiorec/}findAudiorec,javaType=class Audiorec.jaxws.FindAudiorec] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialize: [xmlName={http://Audiorec/}findAudiorec,xmlType={http://Audiorec/}findAudiorec] | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialized: Audiorec.jaxws.FindAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.XMLContent] objectValue: Audiorec.jaxws.FindAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: org.jboss.ws.core.soap.SOAPBodyElementDoc -> Audiorec.jaxws.FindAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxrpc.ParameterWrapping] unwrapRequestParameters: Audiorec.jaxws.FindAudiorec | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4890488588095488 | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Looking for a JTA transaction to join | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] Transaction already joined | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.loader.Loader] loading entity: [domain.Audiorec#Edirol red 1] | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.SQL] select audiorec0_.Audiorec_alias as Audiorec1_0_0_, audiorec0_.Serial_audiorec as Serial2_0_0_, audiorec0_.Barcode_audiorec as Barcode3_0_0_, audiorec0_.Media_audiorec as Media4_0_0_, audiorec0_.Formats_audiorec as Formats5_0_0_ from Audiorec audiorec0_ where audiorec0_.Audiorec_alias=? | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0) | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1) | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)] | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections | 2007-11-02 01:29:00,453 DEBUG [org.hibernate.loader.Loader] done entity load | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession ************** | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at eea1e7 (Thread http-127.0.0.1-8080-2) | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 18dbef1 (Thread http-127.0.0.1-8080-2) | 2007-11-02 01:29:00,453 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBException: java.lang.NullPointerException | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.NullPointerException | at Audiorec.AVmanBean.findAudiorec(AVmanBean.java:30) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | ... 39 more | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class javax.ejb.EJBException | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: PRE | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: ENDPOINT | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: POST | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close | 2007-11-02 01:29:00,453 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-11-02 01:29:00,453 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBException: java.lang.NullPointerException | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.NullPointerException | at Audiorec.AVmanBean.findAudiorec(AVmanBean.java:30) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | ... 39 more | 2007-11-02 01:29:00,468 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class javax.ejb.EJBException | 2007-11-02 01:29:00,468 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] END handleRequest: jboss.ws:context=AVmanBean,endpoint=AVmanBean | 2007-11-02 01:29:00,468 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 18dbef1 (Thread http-127.0.0.1-8080-2) thanks for reading so far :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101129#4101129 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101129 From do-not-reply at jboss.com Fri Nov 2 01:32:56 2007 From: do-not-reply at jboss.com (EricJava) Date: Fri, 2 Nov 2007 01:32:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JSON output? Message-ID: <32351040.1193981576543.JavaMail.jboss@colo-br-02.atl.jboss.com> Simple question: Does anyone know of a good way to respond to requests with JSON instead of XML? I know, XML is the better way to do things but JSON is a fact of life for many JS libraries. I notice there is a feature request on this: http://jira.jboss.com/jira/browse/JBWS-1165 but I could find out information about it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101150#4101150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101150 From do-not-reply at jboss.com Fri Nov 2 02:50:55 2007 From: do-not-reply at jboss.com (alfred.rsa) Date: Fri, 2 Nov 2007 02:50:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - NoSuchMethodError exception on webservice invocation Message-ID: <13934745.1193986255650.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys Im using JBoss 4.2.2GA and JBossWS 2.0.1GA I exposed a simple method as a web service but when I call it from the client I get the following exception: java.lang.NoSuchMethodError: org.jboss.ejb3.stateless.StatelessBeanContext.getWebServiceContextProperty()Lorg/jboss/injection/lang/reflect/BeanProperty; at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3$CallbackImpl.attached(InvocationHandlerEJB3.java:129) at org.jboss.ejb3.EJBContainerInvocation.setBeanContext(EJBContainerInvocation.java:77) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:56) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619) Does anyone have any ideas? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101155#4101155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101155 From do-not-reply at jboss.com Fri Nov 2 03:47:02 2007 From: do-not-reply at jboss.com (rukus) Date: Fri, 2 Nov 2007 03:47:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <31476867.1193989622849.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Post here code of your webservice, client and web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101161#4101161 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101161 From do-not-reply at jboss.com Fri Nov 2 04:55:26 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Fri, 2 Nov 2007 04:55:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service client side Message-ID: <33445858.1193993726455.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I've tryed to write this client but it doesn't work: | import javax.xml.namespace.QName; | import javax.xml.rpc.Call; | import javax.xml.rpc.ParameterMode; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceException; | import javax.xml.rpc.ServiceFactory; | import javax.xml.rpc.encoding.XMLType; | | public class ClientProva { | | public static void main(String[] args) throws ServiceException, RemoteException{ | | QName serviceName = new QName("Tesi"); | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(serviceName); | | Call call = service.createCall(); | call.setTargetEndpointAddress("http://localhost:8080/Tesi/services/port"); | QName operationName = new QName("getNumberOfRequest"); | call.setOperationName(operationName); | call.addParameter( | "arg0", // parameter name | XMLType.XSD_STRING, // parameter XML type QName | String.class, // parameter Java type class | ParameterMode.IN); // parameter mode | call.setReturnType(XMLType.XSD_INT); | call.setProperty( | Call.OPERATION_STYLE_PROPERTY, | "wrapped"); | Object[] actualArgs = {"fattoriale"}; | Integer response = (Integer) call.invoke(actualArgs); | System.out.println("response = " + response); | } | } | I've ONLY service name, operation name and endpoint address. When I run the client jboss give me this output: | 11:21:24,850 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://tesi/}TesiPort does | not contain operation meta data for: getNumberOfRequest | at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestinatio | n(ServiceEndpointInvoker.java:457) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin | tInvoker.java:176) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan | dlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand | lerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl | .java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request | HandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java | :84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC | onnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce | ss(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 | 7) | at java.lang.Thread.run(Thread.java:595) | 11:21:24,888 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception | javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://tesi/}TesiPort does not | contain operation meta data for: getNumberOfRequest | at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessag | e(SOAPFaultHelperJAXRPC.java:189) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage( | SOAPFaultHelperJAXWS.java:157) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessage | FromException(SOAP11BindingJAXWS.java:104) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBindin | g.java:645) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin | tInvoker.java:277) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan | dlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand | lerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl | .java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request | HandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java | :84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC | onnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce | ss(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 | 7) | at java.lang.Thread.run(Thread.java:595) | 11:21:24,938 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://tesi/}TesiPort does | not contain operation meta data for: getNumberOfRequest | at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestinatio | n(ServiceEndpointInvoker.java:457) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpoin | tInvoker.java:176) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan | dlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand | lerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl | .java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request | HandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java | :84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC | onnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce | ss(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 | 7) | at java.lang.Thread.run(Thread.java:595) | 11:21:24,981 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception | javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://tesi/}TesiPort does not | contain operation meta data for: getNumberOfRequest | at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.exceptionToFaultMessag | e(SOAPFaultHelperJAXRPC.java:189) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage( | SOAPFaultHelperJAXWS.java:157) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessage | FromException(SOAP11BindingJAXWS.java:104) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBindin | g.java:645) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHan | dlerImpl.java:430) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHand | lerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl | .java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(Request | HandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java | :84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC | onnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce | ss(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 | 7) | at java.lang.Thread.run(Thread.java:595) | Instead the client give me this error: | Exception in thread "main" AxisFault | faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client | faultSubcode: | faultString: Endpoint {http://tesi/}TesiPort does not contain operation meta data for: getNumberOfRequest | faultActor: | faultNode: | faultDetail: | {http://xml.apache.org/axis/}stackTrace:Endpoint {http://tesi/}TesiPort does not contain operation meta data for: getNumberOfRequest | at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) | at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) | at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) | at javax.xml.parsers.SAXParser.parse(Unknown Source) | at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) | at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) | at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) | at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) | at org.apache.axis.client.Call.invokeEngine(Call.java:2784) | at org.apache.axis.client.Call.invoke(Call.java:2767) | at org.apache.axis.client.Call.invoke(Call.java:2443) | at org.apache.axis.client.Call.invoke(Call.java:2366) | at org.apache.axis.client.Call.invoke(Call.java:1812) | at ClientProva.main(ClientProva.java:48) | | {http://xml.apache.org/axis/}hostname:server | | Endpoint {http://tesi/}TesiPort does not contain operation meta data for: getNumberOfRequest | at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) | at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) | at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) | at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) | at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) | at javax.xml.parsers.SAXParser.parse(Unknown Source) | at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) | at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) | at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) | at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) | at org.apache.axis.client.Call.invokeEngine(Call.java:2784) | at org.apache.axis.client.Call.invoke(Call.java:2767) | at org.apache.axis.client.Call.invoke(Call.java:2443) | at org.apache.axis.client.Call.invoke(Call.java:2366) | at org.apache.axis.client.Call.invoke(Call.java:1812) | at ClientProva.main(ClientProva.java:48) | I've tryed everything how can I create this holy dynamic client having only service Name, operation Name and enpoint address? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101171#4101171 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101171 From do-not-reply at jboss.com Fri Nov 2 05:19:28 2007 From: do-not-reply at jboss.com (alfred.rsa) Date: Fri, 2 Nov 2007 05:19:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <16411750.1193995168986.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Rukus My WebService is: @WebService() @Stateless() public class DownloadRequest { @WebMethod(operationName = "requestDataQueue") public String requestDataQueue(@WebParam(name = "fileID") String fileID) { return "Test"; } } I have no web.xml as the webservice is in my ejb module. The client is generated by Netbeans from my WSDL so I am not sure exactly what to send you but this is the calling code: try { testwebservice.DownloadRequestService service = new testwebservice.DownloadRequestService(); testwebservice.DownloadRequest port = service.getDownloadRequestPort(); java.lang.String fileID = "File123"; java.lang.String result = port.requestDataQueue(fileID); System.out.println("Result = "+result); } catch (Exception ex) { ex.printStackTrace(); } This is the most basic web service I am testing to see if I could get it to run View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101175#4101175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101175 From do-not-reply at jboss.com Fri Nov 2 05:24:40 2007 From: do-not-reply at jboss.com (alfred.rsa) Date: Fri, 2 Nov 2007 05:24:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <16235734.1193995480498.JavaMail.jboss@colo-br-02.atl.jboss.com> This is my request POST http://10.204.72.87:8080/BFlo-BFlo-ejb/DownloadRequest HTTP/1.1 SOAPAction: "" Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-Type: text/xml;charset="utf-8" User-Agent: hudson-jaxws-2.1.2-nightly-push-32 Host: 10.204.72.87:8080 Proxy-Connection: keep-alive Content-Length: 222 Proxy-authorization: NTLM TlRMTVNzGjD4XNGB3alJXgaQ== File123 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101181#4101181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101181 From do-not-reply at jboss.com Fri Nov 2 06:55:52 2007 From: do-not-reply at jboss.com (alfred.rsa) Date: Fri, 2 Nov 2007 06:55:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <10979873.1194000952904.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys I took the exact same web service and deployed it in my web module and now it works. What could be the reason that it does not work when deploying in the ejb module? Regards Alfred View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101234#4101234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101234 From do-not-reply at jboss.com Fri Nov 2 08:17:21 2007 From: do-not-reply at jboss.com (aroppone) Date: Fri, 2 Nov 2007 08:17:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss, JXB and NetBeans Message-ID: <33537798.1194005841581.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm using Netbeans 5.5 and JBoss 4.0. I'd like to make a web service and I've written XML Schemas (or it was already made) that descripes message contents (GetMatadataRequest and GetMetadataResponse). I know that there is a tool , XJC, that can "convert" those Schemas to Java classes. How can this be done in Netbeans 5.5 (I know that 6.0 has tutorial on it)? And can those classes be used in a web service running on JBoss 4.0? Could it be wise to manually convert those Schemas to WSDLs and then generate Java classes and web services automatically? Which is to best way? Waht comes to the security I read about that JBossWS and it security guidelines, but how are those done using Netbeans? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101275#4101275 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101275 From do-not-reply at jboss.com Fri Nov 2 14:32:05 2007 From: do-not-reply at jboss.com (ulath) Date: Fri, 2 Nov 2007 14:32:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WebService in a war Message-ID: <13338500.1194028325629.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I added a WebService to my JSF application like the one in seambay sample. I added an interface with @Remote annotation, and marked implementation as @Stateles, and @WebService. Only one echo method exists in the web service. I use JBossAS 4.2.2.GA. If I deploy this as a war file, WebService is not recognized by jboss, jsf application runs smooth. I tried and created an ear as in seambay by hand, and web service is recognized. I couldn't find any info on deploying Web Services using war to jboss, so I assumed there wouldn't be any differences. I guess my assumption is wrong. What can be the problem? Thanks in advance... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101413#4101413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101413 From do-not-reply at jboss.com Sun Nov 4 07:42:16 2007 From: do-not-reply at jboss.com (kaprys) Date: Sun, 4 Nov 2007 07:42:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WebService with Basic Security Profile Message-ID: <1469341.1194180136960.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm trying to write a WebService on EJB 3.0 that is using Basic Security Profile to communicate. Every send message i signed with x509 certificate. I'm new in java WebServices and I really don't know how to do it. Can anybody help me?? WebService will be deployed on JBoss 4.2.1 GA with java jdk 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101573#4101573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101573 From do-not-reply at jboss.com Sun Nov 4 15:56:51 2007 From: do-not-reply at jboss.com (kaprys) Date: Sun, 4 Nov 2007 15:56:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Retrieving alias for WS Secure client Message-ID: <21773258.1194209811191.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm having very identical problem. I would like to authenticate the connecion with webservice using x509 certificate. Many clients will connect to webservice. Every client will have their own certificate. Webservice should recognize with client is connecting to him after getting the name from certificate. And here I have two problems. First problem is that I really don't know whether I configure the authentication to webservice in a good way. And the second problem is that I don't know how to get then certificate from MessageContext. I found such example: @Resource WebServiceContext ctx; ... MessageContext msg = ctx.getMessageContext(); HttpServletRequest req = (HttpServletRequest) msg.get(MessageContext.SERVLET_REQUEST); X509Certificate[] certificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); if (certificates != null) { X509Certificate cert = certificates[0]; Principal clientDN = cert.getSubjectDN(); String name = clientDN.getName() } And every time certificates is null. Could anybody help me?? Maybe you know any tutorial where is shown how to configure the webservice to make a authentication via certificate because I don't have any idea what to do :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101614#4101614 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101614 From do-not-reply at jboss.com Sun Nov 4 21:55:16 2007 From: do-not-reply at jboss.com (hugo_th02) Date: Sun, 4 Nov 2007 21:55:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - problem with calling ssl web service Message-ID: <32076093.1194231316315.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I've successfully deploy jboss web service using ssl. But when calling this ssl web service from standalone client, i got error at client side as follow: Exception in thread "main" javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message | at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:304) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:242) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy10.sslMethod(Unknown Source) | at jb.secure.ws.client.TestMain.main(TestMain.java:26) | Caused by: java.io.IOException: Could not transmit message | at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:192) | at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:322) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:230) | ... 4 more | Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:332) | at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) | at org.jboss.remoting.Client.invoke(Client.java:1550) | at org.jboss.remoting.Client.invoke(Client.java:530) | at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:171) | ... 7 more | Caused by: org.jboss.ws.WSException: Invalid HTTP server response [401] - Unauthorized | at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:72) | at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:472) | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:304) | ... 12 more | what does it mean, and how to solve this? Please help me. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101654#4101654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101654 From do-not-reply at jboss.com Mon Nov 5 02:15:05 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 5 Nov 2007 02:15:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <21312398.1194246905569.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you have to setup stub properties: MyService port = (MyService)service.getPort(portName, MyService.class); | Stub stub = (Stub)port; | stub._setProperty(Stub.USERNAME_PROPERTY, USERNAME); | stub._setProperty(Stub.PASSWORD_PROPERTY, PASSWORD); | port.myMethodCall(); | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101670#4101670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101670 From do-not-reply at jboss.com Mon Nov 5 02:44:34 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 5 Nov 2007 02:44:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <23247252.1194248675008.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, the ClassLoader will be the difference. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101673#4101673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101673 From do-not-reply at jboss.com Mon Nov 5 02:54:39 2007 From: do-not-reply at jboss.com (alfred.rsa) Date: Mon, 5 Nov 2007 02:54:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Initializing parameters in a webservice Message-ID: <1254518.1194249279670.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys I want to be able to add init-params or something similar to my deployment descriptor and access it from my webservice (through injection if possible) If I add the following to my web.xml: dispatcherName FNB.Commercial.BFLo:service=JMSDataDispatcherService How can I access them ein my web service? I use annotated webservices. Regards Alfred View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101674#4101674 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101674 From do-not-reply at jboss.com Mon Nov 5 03:06:19 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 5 Nov 2007 03:06:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice invocation woes! Message-ID: <29592997.1194249979789.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, according to your post it seems to me there are fighting two versions of SAAJ in your code. Try to ensure only JBoss SAAJ version is used. You can enforce this e.g. by setting up the following JVM properties in your IDE: -Djavax.xml.soap.MessageFactory=org.jboss.ws.core.soap.MessageFactoryImpl | -Djavax.xml.soap.MetaFactory=org.jboss.ws.core.soap.SAAJMetaFactoryImpl | -Djavax.xml.soap.SOAPFactory=org.jboss.ws.core.soap.SOAPFactoryImpl Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101675#4101675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101675 From do-not-reply at jboss.com Mon Nov 5 03:12:07 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 5 Nov 2007 03:12:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Web Service client side Message-ID: <13745918.1194250327628.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you must set up SOAP action too Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101677#4101677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101677 From do-not-reply at jboss.com Mon Nov 5 04:23:14 2007 From: do-not-reply at jboss.com (rukus) Date: Mon, 5 Nov 2007 04:23:14 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NoSuchMethodError exception on webservice invocation Message-ID: <23586275.1194254594639.JavaMail.jboss@colo-br-02.atl.jboss.com> I've tried to create ws with netbeans ide and there is same exception - then i've tried to create it with idea and it works fine... looks like this is netbeans bug (i've seen some bug connected with RPC style binding in it's bug tracking system) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101686#4101686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101686 From do-not-reply at jboss.com Mon Nov 5 10:35:41 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Mon, 5 Nov 2007 10:35:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Warning with ServiceObjectFactory with jbossws-native-2. Message-ID: <13519168.1194276941660.JavaMail.jboss@colo-br-02.atl.jboss.com> Service.getPort(SEI) must be able to retrieve a distinct port definition. Please show us your definitions | /** | * Narrow available endpoints by declarations. | * Service.getPort(SEI) must be able to retrieve a distinct port definition. | */ | protected void narrowPortSelection(UnifiedServiceRefMetaData serviceRef, ServiceMetaData serviceMetaData) | { | if (serviceMetaData.getEndpoints().size() > 1) | { | Map pcrefs = new HashMap(); | for (UnifiedPortComponentRefMetaData pcref : serviceRef.getPortComponentRefs()) | { | String seiName = pcref.getServiceEndpointInterface(); | | // Constraint#1: within a service-ref it's not allowed to use a SEI across different pcref's | if (pcrefs.get(seiName) != null) | throw new WSException("Within a it's not allowed to use a SEI across different 's: " + seiName); | | pcrefs.put(seiName, pcref); | } | | // Constraint#2: A pcref may only match one EndpointMetaData | for (String sei : pcrefs.keySet()) | { | // Narrow available endpoints by port-component-ref declaration | List narrowedEndpoints = new ArrayList(); | | UnifiedPortComponentRefMetaData pcref = pcrefs.get(sei); | | // Constraint#3: Port selection only applies when both SEI and QName are given | if (pcref.getServiceEndpointInterface() != null && pcref.getPortQName() != null) | { | List pcRef2EndpointMapping = new ArrayList(); | for (EndpointMetaData epMetaData : serviceMetaData.getEndpoints()) | { | if (pcref.getServiceEndpointInterface().equals(epMetaData.getServiceEndpointInterfaceName())) | { | pcRef2EndpointMapping.add(epMetaData.getPortName()); | } | } | | for (QName q : pcRef2EndpointMapping) | { | EndpointMetaData mappedEndpoint = serviceMetaData.getEndpoint(q); | if (!pcref.getPortQName().equals(mappedEndpoint.getPortName())) | narrowedEndpoints.add(q); | } | | // Constraint: Dont exclude all of them ;) | if (pcRef2EndpointMapping.size() > 0 && (pcRef2EndpointMapping.size() == narrowedEndpoints.size())) | throw new WSException("Failed to narrow available endpoints by declaration"); | | for (QName q : narrowedEndpoints) | { | EndpointMetaData removed = serviceMetaData.removeEndpoint(q); | log.debug("Narrowed endpoint " + q + "(" + removed + ")"); | } | } | else | { | // TODO: In case there is more then one EMPD this should cause an exception | log.warn("Unable to narrow port selection for " + pcref); | } | } | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101849#4101849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101849 From do-not-reply at jboss.com Mon Nov 5 11:11:21 2007 From: do-not-reply at jboss.com (chris.laprun@jboss.com) Date: Mon, 5 Nov 2007 11:11:21 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Warning with ServiceObjectFactory with jbossws-native-2. Message-ID: <18514717.1194279082022.JavaMail.jboss@colo-br-02.atl.jboss.com> "thomas.diesler at jboss.com" wrote : Service.getPort(SEI) must be able to retrieve a distinct port definition. Please show us your definitions | Yes, I figured as much (I looked at that source code as well) but I wasn't quite sure what was wrong in my service definition: | service/ServiceDescriptionService | javax.xml.rpc.Service | META-INF/wsdl/wsrp_services.wsdl | META-INF/jaxrpc-mappings.xml | | org.jboss.portal.wsrp.core.WSRP_v1_ServiceDescription_PortType | | I have four of them all similar to this one. I didn't include any handler definition here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101863#4101863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101863 From do-not-reply at jboss.com Mon Nov 5 11:44:10 2007 From: do-not-reply at jboss.com (jova73) Date: Mon, 5 Nov 2007 11:44:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Same WS as RPC and document literal Message-ID: <32090624.1194281050738.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have to expose a business service (an EJB) as a web service with JBossWS, but I want to expose it as RPC literal and also as document literal. The only solution that I can see is: * develop two SEI * develop one EJB * configure two EJB endpoint over the same EJB class and the two correspondant SEI interfaces Do you agree? Is there any better solution? Thanks in advance, Andrea View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101889#4101889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101889 From do-not-reply at jboss.com Mon Nov 5 12:28:55 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 5 Nov 2007 12:28:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <10555255.1194283735668.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you see http://labs.jboss.com/jbossws/docs/jaxws_userguide-2.0/index.html#d0e1165? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101903#4101903 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101903 From do-not-reply at jboss.com Mon Nov 5 15:13:02 2007 From: do-not-reply at jboss.com (dode) Date: Mon, 5 Nov 2007 15:13:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using custom exception inheritance Message-ID: <9241147.1194293583009.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for digging up this old thread, but I have the same problem and can't seem to solve it. I have annotated the exception base class thrown by my WebMethods with @XmlSeeAlso to refer to the subtype exceptions, but it doesn't seem to have any effect and still in the client a SOAPFaultException is thrown instead of the user exception. I am running JBoss AS 4.0.5 with JBossWS 2.0.1.GA. What am I missing? Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101950#4101950 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101950 From do-not-reply at jboss.com Mon Nov 5 15:35:50 2007 From: do-not-reply at jboss.com (Sefai) Date: Mon, 5 Nov 2007 15:35:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - service-name-pattern Message-ID: <21308584.1194294950811.JavaMail.jboss@colo-br-02.atl.jboss.com> I have to call more than one web service in my web application. Each of the web services I call have different authentication mechanisms,some have none.I am trying to configure the clients using javaee:service-name-pattern. | | ns1:SomeService | | WSSecurity Handler Client (Some Service) | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | | | This gives me the error org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'post-handler-chains'. One of '{"urn:jboss:jaxws-config:2.0":feature, "urn:jboss:jaxws-config:2.0":property}' is expected. @ *unknown*[26,28]. I looked at the schema definitons in jbossws,there is javaee_web_services_client_1_2.xsd which defines service-name-pattern, but it is not imported in any other schema, all the samples I have seen use xsi:schemaLocation='urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd' which imports javaee_web_services_1_2.xsd but not the client xsd. Is this a bug, or am I missing something? How can I configure each web service to use different authentication mechanisms? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101957#4101957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101957 From do-not-reply at jboss.com Mon Nov 5 16:28:11 2007 From: do-not-reply at jboss.com (Sefai) Date: Mon, 5 Nov 2007 16:28:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBoss, WebServices and Microsoft SOAP3.0 Message-ID: <26021035.1194298091055.JavaMail.jboss@colo-br-02.atl.jboss.com> The Microsoft SOAP Toolkit is deprecated by the .NET Framework. SOAP Toolkit support will be retired in April 2005. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101971#4101971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101971 From do-not-reply at jboss.com Mon Nov 5 16:59:27 2007 From: do-not-reply at jboss.com (Brad Marshall) Date: Mon, 5 Nov 2007 16:59:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Can I point a wsconsume-generated client to a local WSDL fil Message-ID: <20367467.1194299967847.JavaMail.jboss@colo-br-02.atl.jboss.com> I am calling an Axis/Tomcat web service with a JAX-WS client proxy generated by wsconsume (from JBossWs 2.0.1 GA) run against our hand-coded WSDL file. When we execute the client, the constructor of the xxxService class is obtaining the WSDL from the Web service (via the ?WSDL command) and performing a dynamic element binding at run-time (at least we think that?s what happening). The problem is that the Axis Web service is returning a WSDL with syntax errors and outright mistakes. This isn?t a problem with a client proxy generated by the Axis WSDL2Java from the hand-coded WSDL. The WSDL2Java client classes are statically bound and do not access the service?s WSDL at run time. WSDL2Java-generated clients have been in production for more than a year without any difficulty. The wsconsume-generated client throws an exception and terminates when it encounters the first error in the WSDL generated by the Axis run-time ? I never get out of the constructor of the xxxService class. Yet wsconsume had no difficulty digesting the hand-coded WSDL. We?ve studied the WSDL for a very long time now, and do not believe there is an error in its design. Indeed, the fact that it works with WSDL2Java-generated clients shows that the WSDL is designed properly. We are convinced that the AXIS Web Service run-time is making an error generating the WSDL on demand. Can I easily override the Service class?s retrieval of the WSDL from the Web service and point it instead at a local copy of the WSDL file? In out environment, every caller of the Web service also implements their own Web service with the identical interface, so we can enforce a rule that they have a copy local of the valid WSDL file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101985#4101985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101985 From do-not-reply at jboss.com Mon Nov 5 17:25:52 2007 From: do-not-reply at jboss.com (tjones) Date: Mon, 5 Nov 2007 17:25:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBoss Transaction Integration Status Message-ID: <2263982.1194301552727.JavaMail.jboss@colo-br-02.atl.jboss.com> What is the status of the integration of JBossWS and the JBoss Transaction project? Is there JBossWS client support for WS-Coordination, WS-Atomic Transaction and WS-Business Activity? Thanks! Ted Jones View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101994#4101994 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101994 From do-not-reply at jboss.com Mon Nov 5 18:30:22 2007 From: do-not-reply at jboss.com (cbalaves) Date: Mon, 5 Nov 2007 18:30:22 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Enabling cookies in a JBossWS web service client Message-ID: <1206920.1194305422346.JavaMail.jboss@colo-br-02.atl.jboss.com> I am consuming a web service that requires that cookies be enabled (the web service requires a login before further requests are sent, and the credentials are sent back to the caller in a cookie). How can one enable cookies in a JBossWS web service client? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102012#4102012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102012 From do-not-reply at jboss.com Mon Nov 5 23:09:27 2007 From: do-not-reply at jboss.com (thenewmexican) Date: Mon, 5 Nov 2007 23:09:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Problem deploying WebServices Message-ID: <8819380.1194322167562.JavaMail.jboss@colo-br-02.atl.jboss.com> JBoss Appserver version: 4.0.5 When testing the the deployment of a test echo WS. I get the following on the client side: Cannot unmarshall SOAPMessage javax.xml.soap.SOAPException: Failed to create SOAPFactory: org.jboss.axis.soap.SOAPFactoryImpl at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:48) at org.jboss.ws.core.soap.SOAPFactoryImpl.createElement(SOAPFactoryImpl.java:113) at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:87) at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:76) at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:253) at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:75) at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:463) at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:299) at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:133) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) at org.jboss.remoting.Client.invoke(Client.java:1544) at org.jboss.remoting.Client.invoke(Client.java:530) at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnectionImpl.java:192) at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:109) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:309) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:185) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:163) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:149) at $Proxy8.echo(Unknown Source) at com.htg.tests.WebServicesTest.testEcho(WebServicesTest.java:42) 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 junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.ClassNotFoundException: org.jboss.axis.soap.SOAPFactoryImpl I didn't realize that the org.jboss.axis.soap classes were still being used. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102056#4102056 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102056 From do-not-reply at jboss.com Mon Nov 5 23:53:55 2007 From: do-not-reply at jboss.com (hugo_th02) Date: Mon, 5 Nov 2007 23:53:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <19189260.1194324835505.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks, Richard! I've solved this problem... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102067#4102067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102067 From do-not-reply at jboss.com Tue Nov 6 00:00:15 2007 From: do-not-reply at jboss.com (hugo_th02) Date: Tue, 6 Nov 2007 00:00:15 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Username token with password digest? Message-ID: <10967491.1194325215914.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I want to implement username token security to my web service. The problem is that password always appears as plain text in the soap header message: | | | | kermit | thefrog | | | | | | | | I try to use digest password, but don't know how to config. So anyone successfully use that, please help me... Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102068#4102068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102068 From do-not-reply at jboss.com Tue Nov 6 02:44:59 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 02:44:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Enabling cookies in a JBossWS web service client Message-ID: <19080790.1194335100017.JavaMail.jboss@colo-br-02.atl.jboss.com> Service service = Service.create(wsdlURL, serviceQName); | YourInterface proxy = (YourInterface)service.getPort(YourInterface.class); | // the following call enables cookies | ((BindingProvider)proxy) | .getRequestContext() | .put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); | | proxy.callYourMethod() | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102093#4102093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102093 From do-not-reply at jboss.com Tue Nov 6 02:46:28 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 02:46:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Enabling cookies in a JBossWS web service client Message-ID: <21631248.1194335188377.JavaMail.jboss@colo-br-02.atl.jboss.com> You must use JBossWS 2.0.1 or higher, because of the following bug in previous releases: http://jira.jboss.org/jira/browse/JBWS-1733 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102094#4102094 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102094 From do-not-reply at jboss.com Tue Nov 6 02:54:30 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 02:54:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem deploying WebServices Message-ID: <20113593.1194335670619.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, your eclipse workspace has Axis webservices jars in the classpath. If you want to enforce it to use JBoss native webservices, you must ensure that JBoss native webservices jars are before Axis jars in the classpath. Another approach to activate JBossWS native webservices is to set up the following properties in your eclipse workspace environment: -Djavax.xml.soap.MessageFactory=org.jboss.ws.core.soap.MessageFactoryImpl | -Djavax.xml.soap.MetaFactory=org.jboss.ws.core.soap.SAAJMetaFactoryImpl | -Djavax.xml.soap.SOAPFactory=org.jboss.ws.core.soap.SOAPFactoryImpl | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102097#4102097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102097 From do-not-reply at jboss.com Tue Nov 6 03:19:34 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 03:19:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Can I point a wsconsume-generated client to a local WSDL Message-ID: <14337596.1194337174888.JavaMail.jboss@colo-br-02.atl.jboss.com> "Brad Marshall" wrote : Can I easily override the Service class?s retrieval of the WSDL from the Web service and point it instead at a local copy of the WSDL file? In out environment, every caller of the Web service also implements their own Web service with the identical interface, so we can enforce a rule that they have a copy local of the valid WSDL file. | URL wsdlURL = new File("resources/YourService.wsdl").toURL(); | QName serviceName = new QName("yourWsdlNs", "ServiceQName"); | Service service = Service.create(wsdlURL, serviceName); | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102105#4102105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102105 From do-not-reply at jboss.com Tue Nov 6 03:32:46 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 03:32:46 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using custom exception inheritance Message-ID: <2751307.1194337966394.JavaMail.jboss@colo-br-02.atl.jboss.com> "dode" wrote : | What am I missing? | Torsten You have to use javax.xml.bind.annotation.* annotations. Take a look to Java Types To XML chapter of JAXB 2.1 specification. I suggest you to write your wsdl first with exceptions inheritance inside and use wsprovide to generate the java artifacts for you. Then you can study them to get familiar how to do it. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102113#4102113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102113 From do-not-reply at jboss.com Tue Nov 6 03:45:25 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 03:45:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: service-name-pattern Message-ID: <606514.1194338725266.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, unfortunately javaee:service-name-pattern element isn't supported by jbossws post-handler-chains configuration. However, you're doing your job right. Create new JAX-WS client config, define there your post-handler-chains configurations but use config-name instead of service-name-pattern subelement. The last step you should do is to refer to this config by annotating the SEI interface, you're using on your client side. Here's the example. @EndpointConfig(configName = "Config Name Sample", configFile = "META-INF/custom-jaxws-client-config.xml") | public interface SEI { ... } | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102115#4102115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102115 From do-not-reply at jboss.com Tue Nov 6 06:03:00 2007 From: do-not-reply at jboss.com (adinn) Date: Tue, 6 Nov 2007 06:03:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBoss Transaction Integration Status Message-ID: <15715169.1194346980091.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Ted, Before answering your question I'll just note that the current XTS package in JBossTS already allows JaxWS clients and servers to participate in transactions using the 1.0 WSCOOR protocols. All that is need is to configure the client and server with the SOAP handlers supplied in the package. However, this WSCOOR implementation is based on a 'home-grown' soap stack embedded in the XTS implementation. I am currently extending XTS to provide a wscoor 1.1 conformant implementation of web service transactions based on JaxWS. The WSCOOR, WSAT and WSBA 1.1 services are exposed as JaxWS endpoints. Client code will normally only access these services via a suitably configured UserTransaction or TransactionManager class but it should be possible to go 'under the hood' to configure the JaxWS layer e.g. with logging interceptors, etc. This new XTS will rely upon on the JaxWS implementation provided by JBossWS. in App Server 5.0. However, it is not tied to the JBoss implementation, for two reasons. In AS 5.0 JBossWS is being split into a generic API layer and an implementation layer (called JBossWS-Native). This will allow alternative WS implementaions to be dropped into the AS in place of JBossWS-Native. Furthermore, the XTS implementation only relies on generic JaxWS features so it should be able to run directly over any fully compliant JaxWS 2.1 implementation, e.g. by dropping the TS and XTS implementation into a different app server. WSCOOR 1.0 support should still be available alongside this new implementation by retaining the 'home-grown' soap stack currently embedded in the XTS package. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102168#4102168 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102168 From do-not-reply at jboss.com Tue Nov 6 08:09:13 2007 From: do-not-reply at jboss.com (dode) Date: Tue, 6 Nov 2007 08:09:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to do cleanup when undeploying webservice Message-ID: <28358735.1194354553805.JavaMail.jboss@colo-br-02.atl.jboss.com> To anyone having the same question: Have your SEI implement javax.xml.rpc.server.ServiceLifecycle. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102201#4102201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102201 From do-not-reply at jboss.com Tue Nov 6 08:25:06 2007 From: do-not-reply at jboss.com (dode) Date: Tue, 6 Nov 2007 08:25:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Design question - initializing and cleaning up resources Message-ID: <25952944.1194355506634.JavaMail.jboss@colo-br-02.atl.jboss.com> I am developing a POJO SEI deployed as WAR to JBoss 4.0.5, JBossWS 2.0.1.GA. I am unsure how I would initialize resources such as JMS connections on deployment and how to clean them up on undeployment. I looked at ServiceLifecycle, but since the init() and destroy() methods are called for each webservice call, it does not seem to be a good idea to perform expensive operations in them. Would it make more sense to implement the webservice as EJB3 SLSB? Can someone give me some advice? Torsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102205#4102205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102205 From do-not-reply at jboss.com Tue Nov 6 08:52:02 2007 From: do-not-reply at jboss.com (Sefai) Date: Tue, 6 Nov 2007 08:52:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: service-name-pattern Message-ID: <25248955.1194357122626.JavaMail.jboss@colo-br-02.atl.jboss.com> I added this handler-chain in standard-jaxws-endpoint-config.xml,and it didn't work,then I added it in standard-jaxws-client-config.xml,I looked into the DEBUG output,and didn't see any anything regarding this config during deployment.So I posted here. Then I worked on it more, and discovered that this client-config is loaded after you call it,not during deployment,and if you put service-name-pattern in endpoint-config you get an exception,but you dont get any exceptions if you put this in client-config. Also the web-service-call I want to make with secure works smooth, and other web-services-call I make continue to work without any security constraint,meaning this pattern provides us using different authentication mechanisms. When I logged in this forum to post the resolution I saw your reply and I am confused. I changed the service-name-pattern definiton to point to an unsecured web-service-client,to test if it worked before by chance. But it didn't,it throw exception as excepted. And I am now confused more. You say it is not supported,but it works as expected. Can you enlighten me please? best regards... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102216#4102216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102216 From do-not-reply at jboss.com Tue Nov 6 10:38:08 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 10:38:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: service-name-pattern Message-ID: <27283484.1194363488347.JavaMail.jboss@colo-br-02.atl.jboss.com> There's no source code that would read service-name-pattern element content at all. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102253#4102253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102253 From do-not-reply at jboss.com Tue Nov 6 10:41:59 2007 From: do-not-reply at jboss.com (Brad Marshall) Date: Tue, 6 Nov 2007 10:41:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Can I point a wsconsume-generated client to a local WSDL Message-ID: <8987361.1194363719788.JavaMail.jboss@colo-br-02.atl.jboss.com> Brilliant. That works. Thanks Richard. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102256#4102256 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102256 From do-not-reply at jboss.com Tue Nov 6 11:12:12 2007 From: do-not-reply at jboss.com (Sefai) Date: Tue, 6 Nov 2007 11:12:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: service-name-pattern Message-ID: <4856730.1194365532799.JavaMail.jboss@colo-br-02.atl.jboss.com> This is the debug output of JBossAS 2007-11-06 17:58:34,493 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-11-06 17:58:34,493 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-11-06 17:58:34,493 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-11-06 17:58:34,493 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-11-06 17:58:34,493 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] addHandler: | HandlerMetaDataJAXWS: | type=POST | name=WSSecurity Handler Client(x509v3) | class=class org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | params=[] | protocols=null | services={http://mywebservice.org/}MyWebService | ports=null And this is the client-config | | | My Web Service Client Security Config | | | | | myns:MyWebService | | | | WSSecurity Handler Client(x509v3) | | | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | | | | | | This seems to me OK. What you say about this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102261#4102261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102261 From do-not-reply at jboss.com Tue Nov 6 11:53:07 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 6 Nov 2007 11:53:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: service-name-pattern Message-ID: <7784580.1194367987530.JavaMail.jboss@colo-br-02.atl.jboss.com> I was looking to the wrong element schema definition. Sorry for that. Your element is handled by third-party jars so you're right. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102276#4102276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102276 From do-not-reply at jboss.com Tue Nov 6 15:32:13 2007 From: do-not-reply at jboss.com (whichever) Date: Tue, 6 Nov 2007 15:32:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot find service endpoint target Message-ID: <1034539.1194381133407.JavaMail.jboss@colo-br-02.atl.jboss.com> Anyone home? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102346#4102346 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102346 From do-not-reply at jboss.com Wed Nov 7 01:42:44 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 7 Nov 2007 01:42:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Problem with wsconsume ant task Message-ID: <20870525.1194417764958.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I am using wsconsume ant task for generating client side artifacts. The following is ant task | | | | | | | | | It is able to generate stubs using local WSDL file. But when i use the following task for remote WSDL file | | | | | | | | | | It is giving following exception [wsconsume] Consuming wsdl: http://testdrive.mcafeeasap.com/ws/mop/mop.asmx?wsdl [wsconsume] parsing WSDL... [wsconsume] [ERROR] Failed to read the WSDL document: http://testdrive.mcafeeasap.com/ws/mop/mop.asmx?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not . [wsconsume] unknown location [wsconsume] Failed to parse the WSDL. [wsconsume] Failed to invoke WsImport [wsconsume] java.lang.IllegalStateException: WsImport invocation failed. Try the verbose switch for more information [wsconsume] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:190) [wsconsume] at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:189) [wsconsume] at org.jboss.wsf.spi.tools.ant.WSConsumeTask.executeNonForked(WSConsumeTask.java:206) [wsconsume] at org.jboss.wsf.spi.tools.ant.WSConsumeTask.execute(WSConsumeTask.java:226) [wsconsume] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) [wsconsume] at org.apache.tools.ant.Task.perform(Task.java:364) [wsconsume] at org.apache.tools.ant.Target.execute(Target.java:301) [wsconsume] at org.apache.tools.ant.Target.performTasks(Target.java:328) [wsconsume] at org.apache.tools.ant.Project.executeTarget(Project.java:1215) [wsconsume] at org.apache.tools.ant.Project.executeTargets(Project.java:1063) [wsconsume] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:377) [wsconsume] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135) The following are the jars which are used for running the task | | | | | | | | | | | | | | | | | | | | | | | | I am not getting what the problem is? Am i missing any jars ,if the WSDL is remote. Please help me. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102409#4102409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102409 From do-not-reply at jboss.com Wed Nov 7 09:19:49 2007 From: do-not-reply at jboss.com (sodik) Date: Wed, 7 Nov 2007 09:19:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to dynamically change URL where client is connecting to? Message-ID: <23141954.1194445189704.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi *, I have generated wsdl file of service I want to call. The service is fixed but I don't know where this service will be located. Is there an option how to generate client classes that I can use runtime URL parameter that specifies where the client is connecting to? Only solution I found out is to load wsdl from each of those services (runtime) and there will be the good url. Is there possibility to skip downloading wsdl each time I want to connect to other host? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102552#4102552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102552 From do-not-reply at jboss.com Wed Nov 7 07:11:53 2007 From: do-not-reply at jboss.com (kapil.singhal) Date: Wed, 7 Nov 2007 07:11:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Problem in building JBossWS 2.0. Message-ID: <28059496.1194437513489.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am using JBoss 4.2.2 and JBossWS 2.0 I have to provide a patch for checking the EJBs exposed as Web Services in the SOAPFaultJAXRPC.java class. I have downloaded the source code of JBossWS 2.0 from SVN Repository. When I am building the complete code all jar/sar files are not created and size of some .jar files are reduced. Can anyone suggest how to build the complete source and able to get all the jar files? Thanks & Regards, Kapil View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102500#4102500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102500 From do-not-reply at jboss.com Wed Nov 7 07:05:30 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 7 Nov 2007 07:05:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - bind datatype javax.xml.datatype.XMLGregorianCalendar to jav Message-ID: <14728373.1194437130464.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, When i generated schema classes from jaxb 2.1.5.It generated XMLGregorianCalendar data type for xml type xsd:date.Then i changed my schema adding inline annotations and binded the XMLGregorianCalendar to Calendar.Following is the code that i have added in my schema. | | | | But When i generated the client stubs using wsconsume from the WSDL it is still generating XMLGregorianCalendar data type. So my question what should i do to bind the data type XMLGregorianCalendar to Calendar in client side stubs, but i should not change the WSDL. Please help me. Thanks Pavan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102493#4102493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102493 From do-not-reply at jboss.com Wed Nov 7 05:40:43 2007 From: do-not-reply at jboss.com (aleks) Date: Wed, 7 Nov 2007 05:40:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - wsconsume Message-ID: <13792045.1194432043670.JavaMail.jboss@colo-br-02.atl.jboss.com> On the "other side" was made web service with Borland Developer Studio 2006. WSDL file is: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I try to consume this web service with wsconsume and get the error: [WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/home/alex/webapps/korund-ws.xml#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:wsdl.xml#types?schema1'. | line 14 of file:wsdl.xml#types?schema1 | | [ERROR] undefined simple or complex type 'soapenc:Array' | line 14 of file:wsdl.xml | | [ERROR] undefined attribute 'soapenc:arrayType' | line 16 of file:wsdl.xml | | [ERROR] undefined simple or complex type 'soapenc:Array' | line 29 of file:wsdl.xml | | [ERROR] undefined attribute 'soapenc:arrayType' | line 31 of file:wsdl.xml | | Failed to invoke WsImport | java.lang.NullPointerException | at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:237) | at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518) | at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232) | at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85) | at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120) | at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173) | at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:173) | at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119) | at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:148) | at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:187) | at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216) | at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79) | On wich side is the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102460#4102460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102460 From do-not-reply at jboss.com Wed Nov 7 04:11:17 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 7 Nov 2007 04:11:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem with wsconsume ant task Message-ID: <16987007.1194426678058.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, this behaviour is really strange to me. Anyway try to set attribute fork="true". Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102431#4102431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102431 From do-not-reply at jboss.com Wed Nov 7 04:26:00 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Wed, 7 Nov 2007 04:26:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem with wsconsume ant task Message-ID: <32773219.1194427561015.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, When i set fork="true" i am getting the below exception BUILD FAILED: java.lang.NoSuchMethodError: org.apache.tools.ant.taskdefs.ExecuteJava.fork(Lorg/apache/tools/ant/ProjectComponent;)I Following is the target | | | | | | | | Do i need to keep any jar wscon.classpath? Please help me. Thanks Pavan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102438#4102438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102438 From do-not-reply at jboss.com Wed Nov 7 19:58:53 2007 From: do-not-reply at jboss.com (bineec) Date: Wed, 7 Nov 2007 19:58:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - java.lang.NoSuchMethodError: javax.xml.soap.SOAPFactory.newI Message-ID: <28696844.1194483533406.JavaMail.jboss@colo-br-02.atl.jboss.com> I am getting follwing error when deploying java web service developed using JWSDP 2.0 in JBOSS 3.2.x. Please let me know if any one knows the reason for this cause and how to fix it. Thanks, INFO: WSSERVLET12: JAX-WS context listener initializing 22:46:48,062 ERROR [Engine] StandardContext[/pmservice]Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener java.lang.NoSuchMethodError: javax.xml.soap.SOAPFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/SOAPFactory; at com.sun.xml.xwss.SystemHandlerDelegateImpl.(SystemHandlerDelegateImpl.java:658) at com.sun.xml.xwss.SystemHandlerDelegateFactory.create(SystemHandlerDelegateFactory.java:26) at com.sun.xml.ws.spi.runtime.SystemHandlerDelegateFactory.getDelegate(SystemHandlerDelegateFactory.java:59) at com.sun.xml.ws.binding.soap.SOAPBindingImpl.setupSystemHandlerDelegate(SOAPBindingImpl.java:205) at com.sun.xml.ws.binding.soap.SOAPBindingImpl.(SOAPBindingImpl.java:66) at com.sun.xml.ws.binding.BindingImpl.getBinding(BindingImpl.java:179) at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parseEndpoints(RuntimeEndpointInfoParser.java:118) at com.sun.xml.ws.transport.http.servlet.RuntimeEndpointInfoParser.parse(RuntimeEndpointInfoParser.java:64) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3831) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4323) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5456) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:324) at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:320) at org.jboss.web.WebModule.startModule(WebModule.java:62) at org.jboss.web.WebModule.startService(WebModule.java:40) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899) at $Proxy18.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:415) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy30.start(Unknown Source) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:363) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:821) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:415) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:588) 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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54) at org.jboss.mx.server.Invocation.invoke(Invocation.java:82) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311) at org.jboss.Main.boot(Main.java:191) at org.jboss.Main$1.run(Main.java:480) at java.lang.Thread.run(Thread.java:595) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102744#4102744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102744 From do-not-reply at jboss.com Thu Nov 8 08:16:47 2007 From: do-not-reply at jboss.com (pdepaepe) Date: Thu, 8 Nov 2007 08:16:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Is it valid? Message-ID: <22708646.1194527807448.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I'm very noob on WS, so, excuse me in advance. I wish to submit several Users in one soap request. Let's say that a user is : @Entity | @Name("user") | public class User implements Serializable | { | | private int id; | private String uid; | | public User(){} | | @Id | public int getId() | { | return id; | } | | public void setId(int id) | { | this.id = id; | } | | public String getUid() | { | return uid; | } | | public void setUid(String uid) | { | this.uid = uid; | } | | } Is such web method allowed? @Stateless | @WebService(name = "UserService", serviceName = "UserService") | public class UserService implements UserServiceRemote | { | | @Logger | private static Log log; | | @WebMethod | @WebResult(name="count") | public int countUsers ( | @WebParam(name="users") User[] users){ | return users.length; | } | | } In soapUi, i'm abble to build easily a soap envelope wich return the exact count of users, but in PHP (nusoap or php5lib), the parser never build the correct enveloppe. So i have some doubts on the validity of my service. (i have to try a java client too). Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102886#4102886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102886 From do-not-reply at jboss.com Thu Nov 8 10:05:57 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 8 Nov 2007 10:05:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Is it valid? Message-ID: <24929045.1194534357055.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, such usecase should work very well ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102934#4102934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102934 From do-not-reply at jboss.com Thu Nov 8 13:10:40 2007 From: do-not-reply at jboss.com (garypinkham) Date: Thu, 8 Nov 2007 13:10:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WS with Seam 2.0... Message-ID: <29496571.1194545440471.JavaMail.jboss@colo-br-02.atl.jboss.com> Hoping to get some advice on what I might be doing wrong trying to add a web service to a seam app. So for starters I'm running Seam 2.0GA with JBossWS 2.0.0GA on Jboss 4.2.0GA. I created a Seam Web project using the jboss tools so I have three eclipse projects.. A Web, an EJB and an EAR. I used the wsconsume to produce the code for the service. I created a stub implementation of the service interface. I included this code in the ejb project. I also included the "standard-jaxws-endpoint-config.xml" file in the meta-inf directory of the ejb project. These get deployed as an exploded jar under the exploded EAR in Jboss. The app starts fine (no errors) and runs fine as a Seam app.. But when i try localhost:8080/jbossws/services I see "There are currently no endpoints deployed". I have tried numerous things including putting the service in the war instead of ejb jar. I don't see anything special mentioned in the Seam docs for hosting web services (but they do Java first). My Service Interface class has: @WebService(name = "TenantPortType", targetNamespace = "http://www.foos.com/saas/tenant/wsdl") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | public interface TenantPortType { | This looks ok (at least to me). Any suggestions on what/where I can look? I created a web service in the past with Seam (but that was 2.0Beta and I did Java First and it was deployed as a War not an Ear..) Any suggestions would be greatly appreciated! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103023#4103023 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103023 From do-not-reply at jboss.com Thu Nov 8 21:47:23 2007 From: do-not-reply at jboss.com (hugo_th02) Date: Thu, 8 Nov 2007 21:47:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS with Seam 2.0... Message-ID: <27972760.1194576443637.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, garypinkham You should use seam-gen to create seam project then import it into eclipse, because it seems there's problem with jboss tools when creating seam ejb project. Or you can try the lastest build of jboss tools, but i've not tried yet... Hope this help... Hugo. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103147#4103147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103147 From do-not-reply at jboss.com Thu Nov 8 22:49:35 2007 From: do-not-reply at jboss.com (garypinkham) Date: Thu, 8 Nov 2007 22:49:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS with Seam 2.0... Message-ID: <10436180.1194580175223.JavaMail.jboss@colo-br-02.atl.jboss.com> "hugo_th02" wrote : Hi, garypinkham | You should use seam-gen to create seam project then import it into eclipse, because it seems there's problem with jboss tools when creating seam ejb project. Or you can try the lastest build of jboss tools, but i've not tried yet... | Hope this help... | | Hugo. Thanks.. I;'ll try that tomorrow. FYI.. I did use the latest JBoss Tools (nov 7th build). That seems to have created all the projects fine.. I reversed entities from the DB.. modified the authenticator etc.. All works fine.. I get the site up and running.. Just the Web Services have been an issue.. Anyways I think I'm going to switch it to a single WAR project.. I really don't need the EJBs for this experiment.. Gary View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103152#4103152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103152 From do-not-reply at jboss.com Fri Nov 9 03:58:58 2007 From: do-not-reply at jboss.com (szaccaria) Date: Fri, 9 Nov 2007 03:58:58 -0500 (EST) Subject: [jbossws-users] [JBossWS] - modify the generated web.xml with EJB endpoints Message-ID: <17100958.1194598738422.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi to all, I want to modify the web.xml file to insert a filter... but I don't know how modify if I've created a ws with ejb. Can somebody help me? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103182#4103182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103182 From do-not-reply at jboss.com Fri Nov 9 11:44:08 2007 From: do-not-reply at jboss.com (yyin) Date: Fri, 9 Nov 2007 11:44:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to create WS from wsdl Message-ID: <383707.1194626648814.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am new to JBoss Web Service. I used to use Netbeans to create JAX-RPC WS for Sun Java Application Server. (from the wsdl files). Now I need to deploy the WS(RPC type will be preferred) on JBoss 4. I have searched on line the docments and the tips about creating WS from wsdl on Jboss, but I couldn't find some useful info. Give me some advice, please. Regards, yyin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103314#4103314 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103314 From do-not-reply at jboss.com Fri Nov 9 21:05:13 2007 From: do-not-reply at jboss.com (garypinkham) Date: Fri, 9 Nov 2007 21:05:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WS Endpoint registration issue... Message-ID: <15363361.1194660313137.JavaMail.jboss@colo-br-02.atl.jboss.com> So I sort of kind of have my web services working in a seam project. The issue remaining is whenever I make a change to my project (WS related or not) and restart my Jboss server my WS Endpoints don't register. I have to undeploy, clean and redeploy for them to take. Then the cycle starts all over again if I restart the server. I tried searching the forum bit didn't see anything (odd search terms..) Any ideas? Thanks Gary View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103397#4103397 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103397 From do-not-reply at jboss.com Mon Nov 12 04:22:32 2007 From: do-not-reply at jboss.com (jtestori) Date: Mon, 12 Nov 2007 04:22:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to create WS from wsdl Message-ID: <24390906.1194859352840.JavaMail.jboss@colo-br-02.atl.jboss.com> regarding creation of ws from wsdl, take a look at http://jbws.dyndns.org/mediawiki/index.php/Wsconsume View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103578#4103578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103578 From do-not-reply at jboss.com Mon Nov 12 06:46:57 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Mon, 12 Nov 2007 06:46:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Information about deployed service Message-ID: <10109792.1194868017579.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've deployed a service on jbossws 2.0.1, with the library jbossws-spi-1.0.0.GA.jar I succed to find information about the starting time of the service the number of request and other statistics. Now I would find information about the service like the encryption or authorization, Does it exist a library that it permitts me this? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103612#4103612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103612 From do-not-reply at jboss.com Mon Nov 12 07:55:48 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Mon, 12 Nov 2007 07:55:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to publish my own wsdl Message-ID: <1942088.1194872148744.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I am migrating my web service from Weblogic to Jboss.I am using Jboss 4.2.1 GA and Jbossws 1.2.1 GA.I am using Jax-ws. I have wsdl file and i used top-down approach.When i deployed my application in jboss it is creating a different wsdl file. Is there any way to publish my own wsdl file other than Jboss created? Any suggestions would be appreciated. Thanks in Advance. Pavan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103652#4103652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103652 From do-not-reply at jboss.com Mon Nov 12 10:01:19 2007 From: do-not-reply at jboss.com (burakbayramli) Date: Mon, 12 Nov 2007 10:01:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Returning lists on jbossws-1.2.1.GA Message-ID: <22057821.1194879679334.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, How can we return lists using @WebMethod, @WebService annotations I have used the following code but I received the error below: Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://service.gg.com/}arrayList | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildOutputParameter(JAXRPCMetaDataBuilder.java:346) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataRpc(JAXRPCMetaDataBuilder.java:592) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.setupOperationsFromWSDL(JAXRPCMetaDataBuilder.java:210) | 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) | at com.gg.service.Client.main(Client.java:21) | Code: | @WebService | @SOAPBinding(style=Style.RPC) | public interface ProductDb extends Remote { | | @WebMethod ArrayList getProducts(); | | } | | @Stateless | @WebService(endpointInterface="com.gg.service.ProductDb") | @WebContext(contextRoot="/ggServices") | public class ProductDbBean { | | @PersistenceContext(unitName="GGLocal") | EntityManager em; | | public ArrayList getProducts() { | List l = em.createQuery("from Product").getResultList(); | ArrayList list = new ArrayList(); | for (Product p : l) { | list.add(p); | } | return list; | } | | | } | | public class Client | { | public static void main(String[] args) throws Exception | { | URL url = new URL("http://localhost:8080/ggServices/ProductDbBean?wsdl"); | QName qname = new QName("http://service.gg.com/", | "ProductDbBeanService"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | ProductDb s = (ProductDb) service.getPort(ProductDb.class); | | ArrayList list = s.getProducts(); | | } | Thanks in advance, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103714#4103714 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103714 From do-not-reply at jboss.com Mon Nov 12 11:33:24 2007 From: do-not-reply at jboss.com (srkpriv) Date: Mon, 12 Nov 2007 11:33:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JAX-RPC Web Services - Class is not a servlet error - How to Message-ID: <26885550.1194885205161.JavaMail.jboss@colo-br-02.atl.jboss.com> Can anyone help me resolve this 'Class is not a servlet' issue that I am facing. I am running this in JBoss App Server 4.2.1.GA and I have the Webservices.xml, mapping.xml, wsdl and web.xml available in the respective directories? Do I have to do any further config changes or something to make this work? javax.servlet.ServletException: Class com.erp.core.ws.hello.HelloServlet is not a Servlet org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Thread.java:595) root cause java.lang.ClassCastException: com.erp.core.ws.hello.HelloServlet Please let me know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103770#4103770 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103770 From do-not-reply at jboss.com Mon Nov 12 11:40:31 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 12 Nov 2007 11:40:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <23167383.1194885631444.JavaMail.jboss@colo-br-02.atl.jboss.com> Please post source for HelloServlet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103775#4103775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103775 From do-not-reply at jboss.com Mon Nov 12 12:03:29 2007 From: do-not-reply at jboss.com (srkpriv) Date: Mon, 12 Nov 2007 12:03:29 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <10488652.1194887010013.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : Please post source for HelloServlet. Hi here is the HelloServlet source code This I did as per the chapter 12 of jboss tutorial. Here is the link for the turotial - http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch12.html - Thx. import javax.servlet.http.HttpServlet; /** * */ public class HelloServlet { /** * */ public HelloServlet() { // TODO Auto-generated constructor stub } /** * say Hello */ public String hello(String name) { return "Hello " + name + "!" ; } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103783#4103783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103783 From do-not-reply at jboss.com Mon Nov 12 12:10:18 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 12 Nov 2007 12:10:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <371237.1194887419041.JavaMail.jboss@colo-br-02.atl.jboss.com> Like the error says, this is not a servlet. The class must extend HttpServlet to be a servlet. Also, the tutorial you are using is for 4.0.1, you are using 4.2.1. The web services implementation has changed dramatically between the two. If you are just now learning web services, I suggest you start with the newer JAX-WS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103788#4103788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103788 From do-not-reply at jboss.com Mon Nov 12 12:17:17 2007 From: do-not-reply at jboss.com (srkpriv) Date: Mon, 12 Nov 2007 12:17:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <4315570.1194887837058.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Petej, I am starting webservices recently. I have been doing some SOAP calls and XML Over HTTP previously. Now I just formalize my understanding of Web Services and SOA. I am just trying to undertstand the JAX-RPC services. As per the example in the tutorial it says putting the HelloWorldServlet in webservices.xml allows the class to be treated as pseudo-servlet so that's what I am trying to figure out why it is failing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103790#4103790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103790 From do-not-reply at jboss.com Mon Nov 12 13:00:07 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 12 Nov 2007 13:00:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <32937844.1194890407367.JavaMail.jboss@colo-br-02.atl.jboss.com> You must be missing some configuration setting somewhere. Unfortunately, I have only used JAX-WS, so I can't really help you with JAX-RPC. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103815#4103815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103815 From do-not-reply at jboss.com Mon Nov 12 15:45:08 2007 From: do-not-reply at jboss.com (mendaye) Date: Mon, 12 Nov 2007 15:45:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Installing JBossWS 2.0.X.GA Message-ID: <1475516.1194900308806.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All: I just install JBoss4.2.2GA but not sure if it contains JBossWS 2.0.X.GA by default. Do I need to install JBossWS 2.0 GA on the top of JBoss4.2.2GA or JBoss4.2.2GA contains JBossWS 2.0 GA by default? Thanks, Surafel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103865#4103865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103865 From do-not-reply at jboss.com Mon Nov 12 15:57:06 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 12 Nov 2007 15:57:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Installing JBossWS 2.0.X.GA Message-ID: <14992252.1194901026991.JavaMail.jboss@colo-br-02.atl.jboss.com> >From the manifest.mf file in jbossws-core.jar: Implementation-Title: JBoss Web Services - Native Specification-Vendor: JBoss (http://www.jboss.org) Specification-Version: jbossws-2.0 Implementation-Vendor-Id: http://www.jboss.org Implementation-Version: jbossws-native-2.0.1.SP2 (build=200710210837) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103869#4103869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103869 From do-not-reply at jboss.com Mon Nov 12 17:21:25 2007 From: do-not-reply at jboss.com (zebathon) Date: Mon, 12 Nov 2007 17:21:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - is it possible to mix Xfire and Jboss ProviderImpls Message-ID: <347391.1194906085275.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, We have both Jboss 1.2 and Xfire client jars on our classpath. At runtime, when javax.xml.ws.Service tries to create a ServiceDelegate, it calls Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, this.getClass()); Which always and only returns an XfireProviderImpl. I know that according to JAXWS specs, i can set the JAXWSPROVIDER_PROPERTY. But my question is, can I programatically return different ProviderImpls in order that to run both clients? or must I choose only 1. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103896#4103896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103896 From do-not-reply at jboss.com Mon Nov 12 23:21:47 2007 From: do-not-reply at jboss.com (srkpriv) Date: Mon, 12 Nov 2007 23:21:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <31737767.1194927708019.JavaMail.jboss@colo-br-02.atl.jboss.com> ^^^^^ That's what I think too. Anyway, thanks a lot. Is there anyone who can pinpoint what is the issue? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103933#4103933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103933 From do-not-reply at jboss.com Tue Nov 13 01:27:08 2007 From: do-not-reply at jboss.com (srkpriv) Date: Tue, 13 Nov 2007 01:27:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <22958420.1194935228408.JavaMail.jboss@colo-br-02.atl.jboss.com> I earlier named my servlet as HelloServlet and my servlet-link as 'HelloWorldServlet'. I saw a message in one of the abstractserviceendpoint class that 'class with 'servlet' name ignored' or something like that. I also added a xmlns:xsi etc. some schema for the wstools-config.xml and compiled it. So I changed my class name to 'HelloServiceImpl' and my endpoint to 'HelloEndPoint'. I originally generated wsdl using wscompile. Now I tried using wstools and it worked fine. I tried using wscompile as well and the original 'not a servlet is resolved now'. wstools it is working fine now. With wscompile deployment I get unable to get portype from wsdl message. This is diff error message. Just out of curiosity I am gonna generate the wsds, mapping and webservices.xml files in both wscompile and wstools and see what is the difference and will try to pinpoint why wscompile deployment is not working. If you have any other solution or if this is what resolved in your case too let me know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103946#4103946 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103946 From do-not-reply at jboss.com Tue Nov 13 03:32:31 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Tue, 13 Nov 2007 03:32:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: problem on jboss-4.2.0.GA not if upgraded with jbossws1. Message-ID: <15307619.1194942751833.JavaMail.jboss@colo-br-02.atl.jboss.com> such problems are solved using class loading information through JMX console: http://172.16.100.70:8080/jmx-console/HtmlAdaptor choose under JMImplementation to click on LoaderRepository: JMImplementation * name=Default,service=LoaderRepository then go to displayClassInfo and enter all class path: java.lang.String displayClassInfo() MBean Operation. Param ParamType ParamValue ParamDescription p1 java.lang.String (no description) that way you have the information on the location of the class. That way I could notice it was using a jar in another location than I thought. Catherine View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103963#4103963 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103963 From do-not-reply at jboss.com Tue Nov 13 03:41:31 2007 From: do-not-reply at jboss.com (Pires da Silva) Date: Tue, 13 Nov 2007 03:41:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - debugging NoSuchMethodError... Message-ID: <15131380.1194943291946.JavaMail.jboss@colo-br-02.atl.jboss.com> To all concerned, such problems are solved using class loading information through JMX console: http://172.16.100.70:8080/jmx-console/HtmlAdaptor choose under JMImplementation to click on LoaderRepository: JMImplementation * name=Default,service=LoaderRepository then go to displayClassInfo and enter all class path: java.lang.String displayClassInfo() MBean Operation. Param ParamType ParamValue ParamDescription p1 java.lang.String (no description) that way you have the information on the location of the class. That way you can notice it is using a jar in another location than you think. example: I got the error below when using versions higher than Jboss4.0.2+Jbossw1.2.0.SP1. (as it was using a jar of an older version -jboss4.0.5- from a location I didnt' think of) java.lang.NoSuchMethodError: javax.xml.soap.SOAPElement.getElementQName()Ljavax/xml/namespace/QName; ... Catherine View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103967#4103967 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103967 From do-not-reply at jboss.com Tue Nov 13 06:14:13 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 13 Nov 2007 06:14:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Warning with ServiceObjectFactory with jbossws-native-2. Message-ID: <32515338.1194952453149.JavaMail.jboss@colo-br-02.atl.jboss.com> If they are all similar they must be disambiguated using the port qname for example View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104037#4104037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104037 From do-not-reply at jboss.com Tue Nov 13 11:43:23 2007 From: do-not-reply at jboss.com (jtestori) Date: Tue, 13 Nov 2007 11:43:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - ClassCastException in HandlerResolverImpl.addHandler Message-ID: <5756524.1194972203458.JavaMail.jboss@colo-br-02.atl.jboss.com> i have a simple webservice on jboss-4.2.0.GA with jbossws-2.0.1 my webservice: | package my.ws; | | import javax.jws.HandlerChain; | import javax.jws.WebMethod; | import javax.jws.WebService; | | @WebService | @HandlerChain(file = "WEB-INF/jaxws-handlers.xml") | public class MyWS { | | @WebMethod | public String hello(String input) { | return input; | } | | } | my handler: | package my.ws; | | import javax.xml.namespace.QName; | import javax.xml.rpc.handler.GenericHandler; | import javax.xml.rpc.handler.MessageContext; | | public class MyWSHandler extends GenericHandler { | | public MyWSHandler() { | super(); | } | | public QName[] getHeaders() { | return new QName[] {}; | } | | public boolean handleRequest(MessageContext msgContext) { | return true; | } | | public boolean handleResponse(MessageContext msgContext) { | return true; | } | } | jaxws-handlers.xml: | | | | ##SOAP11_HTTP | | Application Server Handler | my.ws.MyWSHandler | | | | | | the exception: | 17:39:43,296 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.ClassCastException: my.ws.MyWSHandler | at org.jboss.ws.core.jaxws.handler.HandlerResolverImpl.addHandler(HandlerResolverImpl.java:148) | 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.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104227#4104227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104227 From do-not-reply at jboss.com Tue Nov 13 16:31:44 2007 From: do-not-reply at jboss.com (chris.laprun@jboss.com) Date: Tue, 13 Nov 2007 16:31:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Warning with ServiceObjectFactory with jbossws-native-2. Message-ID: <3162073.1194989504283.JavaMail.jboss@colo-br-02.atl.jboss.com> There's only one service definition in my WSDL though. Do I still need to use service-qname? | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104317#4104317 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104317 From do-not-reply at jboss.com Wed Nov 14 04:28:05 2007 From: do-not-reply at jboss.com (georges.goebel) Date: Wed, 14 Nov 2007 04:28:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: webParameter is null Message-ID: <27055442.1195032485823.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have exactly the same proble with JBOSS 4.2.0 and 4.2.2. | @Stateless(name = "Facade") | @Local(Facade.class) | @Remote(Facade.class) | @WebService | public class FacadeImpl implements Facade { | @WebMethod | public List getLastDataNiveauService(String e1, String e2) throws WebPchException { | System.out.println(e1); | System.out.println(e2); | } | | } | When I invoke the Webservice from the generated wsdl by a client written in Java with Axis1 or Axis2 or JAXWS2 the parameters e1 and e2 have the correct values. When I invoke the Webservice from SOAP Client (under MACOS X) or by a PHP client, both parameters e1 and e2 are null ! What could be the solution to this problem ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104426#4104426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104426 From srinuboddapati at gmail.com Wed Nov 14 04:31:09 2007 From: srinuboddapati at gmail.com (srinu boddapati) Date: Wed, 14 Nov 2007 15:01:09 +0530 Subject: [jbossws-users] JBoss 4.0 -wstools-client Giving Exception Message-ID: Hi, I published one web service with reference to admin guide. http://docs.jboss.org/jbossas/jboss4guide/r3/adminguide.pdf. I am able to see wsdl after deploying into jboss 4.0.but when I am running client it is giving the following exception. Any one please help me in this regard. java.rmi.RemoteException: Call invocation failed: Could not setup remoting client; nested exception is: javax.xml.soap.SOAPException: Could not setup remoting client at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718) at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148) at $Proxy0.welcome(Unknown Source) at com.nandaki.ws.Client.main(Client.java:36) Caused by: javax.xml.soap.SOAPException: Could not setup remoting client at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:168) at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687) ... 4 more Caused by: java.lang.RuntimeException: Can not set remoting client Marshaller when not connected. at org.jboss.remoting.Client.setMarshaller(Client.java:1292) at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:163) ... 5 more Thanks & Regards Srinivasa Rao From do-not-reply at jboss.com Wed Nov 14 05:31:02 2007 From: do-not-reply at jboss.com (georges.goebel) Date: Wed, 14 Nov 2007 05:31:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: webParameter is null Message-ID: <11596439.1195036262919.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have found one solution get it working. I have to use the annotation @SOAPBinding(style = SOAPBinding.Style.RPC) | @Stateless(name = "Facade") | @Local(Facade.class) | @Remote(Facade.class) | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class FacadeImpl implements Facade { | @WebMethod | public NiveauService[] getLastDataNiveauService(String e1, String e2) throws WebPchException { | System.out.println(e1); | System.out.println(e2); | } | | } | But I read everywhere that RPV is "BAD" and "Document" should be used instead. But when I use Document I have the previous error. Can somebody tell me if it is worth to implement a RPC solution, or how can I get it working with "Document" ? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104458#4104458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104458 From do-not-reply at jboss.com Wed Nov 14 06:30:30 2007 From: do-not-reply at jboss.com (kaprys) Date: Wed, 14 Nov 2007 06:30:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <17031896.1195039830761.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, found the way how to do it. But now I'm fighting with another thing. I would like to get from SOAPHeader information about wsse elements. I know that JBoss doesn't support it now. I'm digging in JBossWS src code and I'm trying to find why only wsa elements are included in SOAP java objects. Maybe you know where to find and change it?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104485#4104485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104485 From do-not-reply at jboss.com Wed Nov 14 06:43:04 2007 From: do-not-reply at jboss.com (rukus) Date: Wed, 14 Nov 2007 06:43:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JAX-WS Basic authorization? Message-ID: <22968511.1195040584158.JavaMail.jboss@colo-br-02.atl.jboss.com> I need to implement basic authorization (username and password check) to jax-ws for this service: @WebService(name="ServerService", serviceName="ServerService") | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class ServerService implements IServerService{ | @WebMethod | public ServerStatus status() { | ServerStatus status=ServerStatus.getInstance(); | return status; | } | } but i saw only EJB examples... Where i can find how to do it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104493#4104493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104493 From do-not-reply at jboss.com Wed Nov 14 08:36:02 2007 From: do-not-reply at jboss.com (rukus) Date: Wed, 14 Nov 2007 08:36:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <23183800.1195047362295.JavaMail.jboss@colo-br-02.atl.jboss.com> oops read authentication instead authorization :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104560#4104560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104560 From do-not-reply at jboss.com Wed Nov 14 08:51:28 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 08:51:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <12105161.1195048288306.JavaMail.jboss@colo-br-02.atl.jboss.com> What exactly would you like to get from the wsse elements? wsse elements are processed by JBossWS security implementation and removed before dispatching the incoming message to the core part of the stack. Could you tell me something more about what you need? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104566#4104566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104566 From do-not-reply at jboss.com Wed Nov 14 09:06:24 2007 From: do-not-reply at jboss.com (georges.goebel) Date: Wed, 14 Nov 2007 09:06:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: webParameter is null Message-ID: <9071713.1195049185002.JavaMail.jboss@colo-br-02.atl.jboss.com> "georges.goebel" wrote : Hi, | | I have exactly the same proble with JBOSS 4.2.0 and 4.2.2. | | | | @Stateless(name = "Facade") | | @Local(Facade.class) | | @Remote(Facade.class) | | @WebService | | public class FacadeImpl implements Facade { | | @WebMethod | | public List getLastDataNiveauService(String e1, String e2) throws WebPchException { | | System.out.println(e1); | | System.out.println(e2); | | ..... | | } | | | | } | | | | When I invoke the Webservice from the generated wsdl by a client written in Java with Axis1 or Axis2 or JAXWS2 the parameters e1 and e2 have the correct values. | | When I invoke the Webservice from SOAP Client (under MACOS X) or by a PHP client, both parameters e1 and e2 are null ! | | What could be the solution to this problem ? | | Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104579#4104579 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104579 From do-not-reply at jboss.com Wed Nov 14 09:06:48 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 09:06:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <19200966.1195049208213.JavaMail.jboss@colo-br-02.atl.jboss.com> Take a look at the context sample (org.jboss.test.ws.jaxws.samples.context.EndpointJSE). You need to manually edit the web.xml and jboss-web.xml with JSE endpoints. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104580#4104580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104580 From do-not-reply at jboss.com Wed Nov 14 09:17:17 2007 From: do-not-reply at jboss.com (kaprys) Date: Wed, 14 Nov 2007 09:17:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <23231889.1195049837220.JavaMail.jboss@colo-br-02.atl.jboss.com> Well I would like to get client certificate from the envelope. I need it to verify which client is connecting to webservice, because each client would have different privileges. Because of that I need to get the client certificate on web service level. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104584#4104584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104584 From do-not-reply at jboss.com Wed Nov 14 09:26:47 2007 From: do-not-reply at jboss.com (rukus) Date: Wed, 14 Nov 2007 09:26:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <3108795.1195050407314.JavaMail.jboss@colo-br-02.atl.jboss.com> "alessio.soldano at jboss.com" wrote : Take a look at the context sample (org.jboss.test.ws.jaxws.samples.context.EndpointJSE). You need to manually edit the web.xml and jboss-web.xml with JSE endpoints. Thanks but i already solved problem Maybe later i make some tutorial for this View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104593#4104593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104593 From do-not-reply at jboss.com Wed Nov 14 09:33:23 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 09:33:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: webParameter is null Message-ID: <23094113.1195050803731.JavaMail.jboss@colo-br-02.atl.jboss.com> I think the request message you're sending is not valid if you use the Document / Literal style, while it is good for RPC/Lit. RPC/encoded is definitely bad, rpc/lit can be used instead. Anyway, if you need/want to use doc/lit, I would suggest to copy from a soap request created by another ws stack (jbossws itself, axis or tools like soapui, etc.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104596#4104596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104596 From do-not-reply at jboss.com Wed Nov 14 09:38:43 2007 From: do-not-reply at jboss.com (kaprys) Date: Wed, 14 Nov 2007 09:38:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <20776108.1195051123191.JavaMail.jboss@colo-br-02.atl.jboss.com> what i would like to realize is authorization based on certificate used for wsse signature View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104603#4104603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104603 From do-not-reply at jboss.com Wed Nov 14 09:39:59 2007 From: do-not-reply at jboss.com (sashicse) Date: Wed, 14 Nov 2007 09:39:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JbossWS throws Message-ID: <3022936.1195051199824.JavaMail.jboss@colo-br-02.atl.jboss.com> We are trying to transfer large byte arrays (file stream) across the jboss web services. We are using the byte arrayas approach to transfer the files through web services. JBoss is throwing OutofMemory exception while transferring the large bvte array. As of now we do not want to change the current implementation of transferring the files to MTOM, SOAP with attachments etc. Could you please provide us some insight on why JBoss is throwing the exception even after providing the sufficient JVM memory? Environment Setup Details- Jboss version: 4.0.4 GA JWS version: version that ships with JBoss 4.0.4GA version JVM heap size settings- Min and Max- 1024MB Also, tried with min and max- 1546 File size- problem while transferring the file size greater than 38 MB. Thanks, -Sashi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104605#4104605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104605 From do-not-reply at jboss.com Wed Nov 14 09:40:39 2007 From: do-not-reply at jboss.com (rukus) Date: Wed, 14 Nov 2007 09:40:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <10038268.1195051239464.JavaMail.jboss@colo-br-02.atl.jboss.com> If you need authentication with JAX-WS: 1. Web-service @WebService(name="ServerService") | @SOAPBinding(style = SOAPBinding.Style.RPC) | public interface IServerService { | @WebMethod | String status(); | } @WebService(name = "ServerService", serviceName = "ServerService") | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class ServerService implements IServerService { | @WebMethod | @RolesAllowed ("testuser") | public String status() { | return "It works"; | } | } 2. web.xml | | | | Server service | /* | POST | | | testuser | | | | BASIC | | | Known users of the Server service | testuser | | | | ServerService | my.ServerService | | | | | | ServerService | /ServerService | | | 3. jboss-web.xml | java:/jaas/test_project | - I don't exactly understand what is it means - but i think it should be 4. add users.properties and role.properties to project: users.properties anonymous wrote : test=test roles.properties anonymous wrote : test=testuser 5. Client | URL wsdlLocation = new URL("http://127.0.0.1:8080/test_project/ServerService?wsdl"); | QName serviceName = new QName("http://my/", "ServerService"); | Service service = Service.create(wsdlLocation, serviceName); | IServerService port = service.getPort(IServerService.class); | BindingProvider bp = (BindingProvider) port; | Map map = bp.getRequestContext(); | map.put(BindingProvider.USERNAME_PROPERTY, "test"); | map.put(BindingProvider.PASSWORD_PROPERTY, "test"); | String status = port.status(); | System.out.println(status); I haven't test it but looks like i did't forget anything View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104606#4104606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104606 From do-not-reply at jboss.com Wed Nov 14 10:11:08 2007 From: do-not-reply at jboss.com (dkane) Date: Wed, 14 Nov 2007 10:11:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - java.lang.ClassCastException on deployment Message-ID: <6397702.1195053068633.JavaMail.jboss@colo-br-02.atl.jboss.com> Dear colleagues, This is my first JBoss web service (but not first EJB3 project), so most likely something is wrong. I follow the instruction http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Plain_old_Java_Object_.28POJO.29 I have a POJO annotated with @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) and it's public method annotated with @WebMethod web.xml configures this POJO as a servlet . Deployment of all that throws the following : | 18:02:11,078 ERROR [ServiceEndpointDeployer] Cannot create service endpoint | java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 cannot be cast to com.sun.xml.bind.v2.model.impl.ClassInfoImpl | at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170) | at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59) | at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) | at java.util.AbstractList$Itr.next(AbstractList.java:345) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) | at java.util.AbstractList$Itr.next(AbstractList.java:345) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) | 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:597) | at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:875) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:128) | 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 $Proxy46.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959) | 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:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | 18:02:11,093 ERROR [MainDeployer] Could not create deployment: file:/D:/Develop/JBoss 4.2.1/server/default/tmp/deploy/tmp2813traceArc.ear-contents/traceReports.war | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 cannot be cast to com.sun.xml.bind.v2.model.impl.ClassInfoImpl) | 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 $Proxy46.create(Unknown Source) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959) | 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:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 cannot be cast to com.sun.xml.bind.v2.model.impl.ClassInfoImpl | at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170) | at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59) | at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) | at java.util.AbstractList$Itr.next(AbstractList.java:345) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) | at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) | at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) | at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) | at java.util.AbstractList$Itr.next(AbstractList.java:345) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) | at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) | at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) | 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:597) | at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:875) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:128) | 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) | ... 29 more | Please advice. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104631#4104631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104631 From do-not-reply at jboss.com Wed Nov 14 10:37:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 10:37:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <11602601.1195054638808.JavaMail.jboss@colo-br-02.atl.jboss.com> "kaprys" wrote : what i would like to realize is authorization based on certificate used for wsse signature Ok, I guess you need the principal subject of the certificate, may be having the whole certificate that has been used to sign the message is even better. The best way I see to get this is getting it from the signature in the ws-security implementation and setting it into the context (or setting the principal in a security adaptor). Please create a JIRA issue with this feature request, so that we can eventually schedule it and work on it. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104651#4104651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104651 From do-not-reply at jboss.com Wed Nov 14 10:42:40 2007 From: do-not-reply at jboss.com (rukus) Date: Wed, 14 Nov 2007 10:42:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <12230591.1195054960860.JavaMail.jboss@colo-br-02.atl.jboss.com> hmmm.... When i set in ServerService @RolesAllowed ("ServerServiceStatus") and then start test - it works :( Why? testuser role is not allowed now... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104654#4104654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104654 From do-not-reply at jboss.com Wed Nov 14 10:45:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 10:45:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: java.lang.ClassCastException on deployment Message-ID: <2552462.1195055118559.JavaMail.jboss@colo-br-02.atl.jboss.com> I would start taking a look at this: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030716#4030716 , it might be your problem too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104656#4104656 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104656 From do-not-reply at jboss.com Wed Nov 14 10:56:20 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 10:56:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException in HandlerResolverImpl.addHandler Message-ID: <32758660.1195055780850.JavaMail.jboss@colo-br-02.atl.jboss.com> Your service is implemented using JAX-WS while your handler is extending the JAX-RPC handler, that could be the cause of your class cast exception. Try extending the jaxws generic handler. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104666#4104666 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104666 From do-not-reply at jboss.com Wed Nov 14 11:39:47 2007 From: do-not-reply at jboss.com (dkane) Date: Wed, 14 Nov 2007 11:39:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: java.lang.ClassCastException on deployment Message-ID: <20046586.1195058387374.JavaMail.jboss@colo-br-02.atl.jboss.com> I've found the root cause of my case. Probably this help to others. My web method returns an object. One of it's fields was Timestamp. Once I changed it to Calendar (Soap compatible) Exception dissapeared. Exception trace contained absolutely no hints to that, though. I think this is something to work on : making a message more informative. Thanks again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104684#4104684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104684 From do-not-reply at jboss.com Wed Nov 14 13:42:28 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 13:42:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to publish my own wsdl Message-ID: <23708146.1195065748700.JavaMail.jboss@colo-br-02.atl.jboss.com> Use the wsdlLocation attribute of @WebService, pointing to a local copy of the wsdl you would like to publish. Here is an example: @WebService( | name = "Echo", | targetNamespace = "http://tempuri.org/", | wsdlLocation = "/WEB-INF/wsdl/service.wsdl", | endpointInterface = "org.jboss.test.ws.interop.nov2007.wsaSoap12.Echo", | portName = "CustomBinding_Echo1" | ) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104737#4104737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104737 From do-not-reply at jboss.com Wed Nov 14 13:58:30 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 13:58:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: is it possible to mix Xfire and Jboss ProviderImpls Message-ID: <12992709.1195066710098.JavaMail.jboss@colo-br-02.atl.jboss.com> You can get a new instance of org.jboss.ws.core.jaxws.spi.ProviderImpl, since specification required it to have a public constructor which takes no arguments. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104744#4104744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104744 From do-not-reply at jboss.com Wed Nov 14 14:53:11 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 14:53:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService with Basic Security Profile Message-ID: <14189979.1195069991778.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.com/jira/browse/JBWS-1907 Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104759#4104759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104759 From do-not-reply at jboss.com Wed Nov 14 14:57:49 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 14:57:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-RPC Web Services - Class is not a servlet error - Ho Message-ID: <10872039.1195070269164.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you already read this http://jbws.dyndns.org/mediawiki/index.php?title=JAX-RPC_User_Guide#JSR-109_POJO_Endpoint ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104761#4104761 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104761 From do-not-reply at jboss.com Wed Nov 14 15:02:27 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 15:02:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to dynamically change URL where client is connecting Message-ID: <4392730.1195070547634.JavaMail.jboss@colo-br-02.atl.jboss.com> If you only need to use different endpoint (with different addresses) and the services publish the same wsdl contract, just use this: | ((BindingProvider)myPort).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint); | where "endpoint" is your runtime selected endpoint address. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104763#4104763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104763 From do-not-reply at jboss.com Wed Nov 14 15:06:13 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 14 Nov 2007 15:06:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Information about deployed service Message-ID: <29785563.1195070773866.JavaMail.jboss@colo-br-02.atl.jboss.com> No, it does not exist afaik. But could you please add some more details about what you would expect exactly to have? This could be interesting from a productivity point of view... (see the sticky productivity thread in this forum) and be implemented in future. Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104764#4104764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104764 From do-not-reply at jboss.com Wed Nov 14 18:25:43 2007 From: do-not-reply at jboss.com (cbalaves) Date: Wed, 14 Nov 2007 18:25:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Enabling cookies in a JBossWS web service client Message-ID: <25383742.1195082743515.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, Richard! It worked! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104803#4104803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104803 From do-not-reply at jboss.com Thu Nov 15 00:22:00 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Thu, 15 Nov 2007 00:22:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to publish my own wsdl Message-ID: <7007180.1195104120808.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, Thanks for the reply. I have tried but i didnt succeed. This is my SEI package com.covad.inter; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | import javax.jws.WebService; | | | | @WebService(name="Hello",targetNamespace = "http://Inter.covad.com/") | public interface Hello extends Remote { | | String echo(String value) throws RemoteException; | | } and following code is my implementation of SEI package com.covad.impl; | | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | | @WebService(name="HelloImpl",targetNamespace = "http://Inter.covad.com/",wsdlLocation="WEB-INF/wsdl/HelloService.wsdl",portName="HelloPort") | //@SOAPBinding(style = SOAPBinding.Style.RPC) | public class HelloImpl { | | public String echo(String value) | { | return "Hello"+value; | } | | } | This is my HelloService.wsdl | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When i deployed in Jboss 4.2.1 GA.It is giving me the following exception java.lang.IllegalStateException: Cannot find endpoint meta data for: JWeb at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM etaData(UnifiedMetaDataDeploymentAspect.java:117) at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi edMetaDataDeploymentAspect.java:86) at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy (DeploymentAspectManagerImpl.java:115) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep loyerHook.java:97) at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt erceptor.java:90) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. start(SubDeployerInterceptorSupport.java:188) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce ptor.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 $Proxy45.start(Unknown Source) 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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) could you please let me know where i am doing wrong? Thanks in Advance. Pavan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104836#4104836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104836 From do-not-reply at jboss.com Thu Nov 15 02:29:23 2007 From: do-not-reply at jboss.com (jtestori) Date: Thu, 15 Nov 2007 02:29:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException in HandlerResolverImpl.addHandler Message-ID: <29204010.1195111763783.JavaMail.jboss@colo-br-02.atl.jboss.com> thank you. extending org.jboss.ws.core.jaxws.handler.GenericHandler works :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104855#4104855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104855 From do-not-reply at jboss.com Thu Nov 15 04:19:26 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 15 Nov 2007 04:19:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to publish my own wsdl Message-ID: <17922264.1195118366825.JavaMail.jboss@colo-br-02.atl.jboss.com> "tpawankumar" wrote : java.lang.IllegalStateException: Cannot find endpoint meta data for: JWeb | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM | etaData(UnifiedMetaDataDeploymentAspect.java:117) | mmh... something wrong for sure... do you know where does that "JWeb" come from? The deployer is looking for an endpoint with that name... Also double check that the wsdl file you deploy in the archive is what you expect it to be. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104887#4104887 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104887 From do-not-reply at jboss.com Thu Nov 15 05:03:42 2007 From: do-not-reply at jboss.com (dkane) Date: Thu, 15 Nov 2007 05:03:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossWS 2.0.1 and JDK 1.6 Message-ID: <9632760.1195121022416.JavaMail.jboss@colo-br-02.atl.jboss.com> "heiko.braun at jboss.com" wrote : In order to run JBossWS on JDK 6 you need to replace the API's that have been included in JDK 6, namely jaxrpc, jaxws, jaxb and saaj. | | Copy the following jars to ${JBOSS_HOME}/lib/endorsed: | | * jboss-jaxrpc.jar | * jboss-saaj.jar | * jaxb-api.jar | * jaxws-api.jar Just faced the same problem and followed this instriction. With one exception : I have not found jaxws-api.jar but jboss-jaxws.jar . JBoss was restarted. Still the same result, anonymous wrote : java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage I use JBoss 4.2.1 GA and Java 1.6. Any ideas ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104907#4104907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104907 From do-not-reply at jboss.com Thu Nov 15 05:29:20 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Thu, 15 Nov 2007 05:29:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to publish my own wsdl Message-ID: <13949478.1195122561013.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, I have given that name in web.xml file. Below is my web.xml | | | | | JWeb | com.covad.impl.HelloImpl | | | | JWeb | /* | | | Is the wsdlLocation annotation that i have given is right? Where i should specify on SEI or Implementation class? could also please check the name attribute that i have given for SEI and Implementation class should be different or it should match? That is same wsdl that i want to publish. Thanks in Advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104915#4104915 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104915 From do-not-reply at jboss.com Thu Nov 15 09:30:02 2007 From: do-not-reply at jboss.com (rukus) Date: Thu, 15 Nov 2007 09:30:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <4825097.1195137002314.JavaMail.jboss@colo-br-02.atl.jboss.com> Looks like only web.xml matters security-constraint> | | Server service | /* | POST | | | testuser | | and @RolesAllowed annotation does no effect View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105030#4105030 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105030 From do-not-reply at jboss.com Thu Nov 15 10:17:43 2007 From: do-not-reply at jboss.com (Sefai) Date: Thu, 15 Nov 2007 10:17:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS-Security - Invalid timestamp, message claimed to be c Message-ID: <28511736.1195139863401.JavaMail.jboss@colo-br-02.atl.jboss.com> why this issue is postponed constantly,this is a serious bug in my opinion,makes security useless and has a very easy resolution that can be set through config files? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105064#4105064 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105064 From do-not-reply at jboss.com Thu Nov 15 22:41:54 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Thu, 15 Nov 2007 22:41:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to publish my own wsdl Message-ID: <23347952.1195184515020.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, I couldnt figure out what's wrong i have done. But i tried with different application as per the suggestion given by you. It is working. Thanks for your reply. Thanks, Pavan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105299#4105299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105299 From do-not-reply at jboss.com Fri Nov 16 02:43:13 2007 From: do-not-reply at jboss.com (folesen) Date: Fri, 16 Nov 2007 02:43:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossWS 2.0.1 and JDK 1.6 Message-ID: <4013423.1195198993678.JavaMail.jboss@colo-br-02.atl.jboss.com> I have placed the following files in the lib/endorsed folder: jaxb-api.jar jaxws-rt.jar jboss-jaxrpc.jar jboss-jaxws.jar jboss-saaj.jar I am using jboss4.2.2.GA and sun jdk 1.6 and it works fine on a vista platform. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105317#4105317 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105317 From do-not-reply at jboss.com Fri Nov 16 08:46:01 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 08:46:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS Security and multiple signatures Message-ID: <31761314.1195220761547.JavaMail.jboss@colo-br-02.atl.jboss.com> "Batigoal" wrote : | Is it possible in JBoss WS to create multiple signatures and to get them after service has been called. | In WS-Security Specification (http://www.verisign.com/wss/wss.pdf) look at Chapter 4.5 "ds:Signature". | | Can I realize attaching multiple signatures on the same document in JBoss-WS? | Where can i found docu or API about that? | Please take a look at http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#WS-Security to see which security specification JBossWS implements. Anyway, our wsse implementation automatically sign the soap elements you want, you don't have to do it by yourself but just to properly set up the wsse configuration. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105468#4105468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105468 From do-not-reply at jboss.com Fri Nov 16 09:34:37 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 09:34:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS Endpoint registration issue... Message-ID: <31777998.1195223677983.JavaMail.jboss@colo-br-02.atl.jboss.com> It's hard to say what is causing this and whether it is a jbossws or jboss seam issue; could you please give us some more details? what are you doing to "clean"? Are there any error or warning in the log during the AS startup? Does this affect also other ws project (without seam)? which version of JBossAS, JBossSeam and JBossWS are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105490#4105490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105490 From do-not-reply at jboss.com Fri Nov 16 09:57:26 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 09:57:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem in building JBossWS 2.0. Message-ID: <17919480.1195225046088.JavaMail.jboss@colo-br-02.atl.jboss.com> Here are the instructions for building jbossws and deploying it into jboss 5.0: http://jbws.dyndns.org/mediawiki/index.php?title=Building_From_Source Of course you can change the integration target to 422. This will build the jbossws native core. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105500#4105500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105500 From do-not-reply at jboss.com Fri Nov 16 10:01:13 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 10:01:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsconsume Message-ID: <17807992.1195225273849.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS cannot process rpc/encoded wsdl style; WS-I BP disallowed use of rpc/enc. I would suggest to create at least a rpc/literal wsdl on the "other side". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105502#4105502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105502 From do-not-reply at jboss.com Fri Nov 16 10:23:28 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 10:23:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Username token with password digest? Message-ID: <7438289.1195226608124.JavaMail.jboss@colo-br-02.atl.jboss.com> Our current username token profile implementation supports plain text passwords only. See http://jira.jboss.org/jira/browse/JBWS-1296. Btw keep in mind that simply having digest instead of plaintext password go over the wire does not increase security; consider using a transport level security (ssl) too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105512#4105512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105512 From do-not-reply at jboss.com Fri Nov 16 10:42:27 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 10:42:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Retrieving alias for WS Secure client Message-ID: <20483436.1195227747970.JavaMail.jboss@colo-br-02.atl.jboss.com> This is related to http://jira.jboss.org/jira/browse/JBWS-652 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105522#4105522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105522 From do-not-reply at jboss.com Fri Nov 16 10:53:58 2007 From: do-not-reply at jboss.com (garypinkham) Date: Fri, 16 Nov 2007 10:53:58 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS Endpoint registration issue... Message-ID: <203886.1195228438618.JavaMail.jboss@colo-br-02.atl.jboss.com> "alessio.soldano at jboss.com" wrote : It's hard to say what is causing this and whether it is a jbossws or jboss seam issue; could you please give us some more details? what are you doing to "clean"? Are there any error or warning in the log during the AS startup? Does this affect also other ws project (without seam)? which version of JBossAS, JBossSeam and JBossWS are you using? I should have posted an update (sorry bout that). I think its due to the web.xml being renamed.. I saw a few other postings and issues in the jira regarding this. Now before I start the server I copy web.xml.org over the one that jboss put in my web-inf. Now my end points register every time. Thanks, Gary View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105530#4105530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105530 From do-not-reply at jboss.com Fri Nov 16 10:56:13 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 10:56:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebService in a war Message-ID: <6154390.1195228573997.JavaMail.jboss@colo-br-02.atl.jboss.com> You're using ejb endpoints, thus you just need to wrap up the service implementation classes, the endpoint interfaces and any custom data types in a jar. You would instead deploy pojo endpoints using war (in that case you need also a web.xml...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105533#4105533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105533 From do-not-reply at jboss.com Fri Nov 16 11:01:30 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 11:01:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBoss, JXB and NetBeans Message-ID: <2922840.1195228890220.JavaMail.jboss@colo-br-02.atl.jboss.com> "aroppone" wrote : Hi! | | I'm using Netbeans 5.5 and JBoss 4.0. I'd like to make a web service and I've written XML Schemas (or it was already made) that descripes message contents (GetMatadataRequest and GetMetadataResponse). | | I know that there is a tool , XJC, that can "convert" those Schemas to Java classes. How can this be done in Netbeans 5.5 (I know that 6.0 has tutorial on it)? And can those classes be used in a web service running on JBoss 4.0? | | Could it be wise to manually convert those Schemas to WSDLs and then generate Java classes and web services automatically? Which is to best way? | | Waht comes to the security I read about that JBossWS and it security guidelines, but how are those done using Netbeans? Curently no netbeans specific tooling is available. Speaking of your issue with the given schema, I would link it to a simple manually-created wsdl and then consume this wsdl with wsconsume. See the top-down approach in the wiki documentation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105538#4105538 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105538 From do-not-reply at jboss.com Fri Nov 16 11:11:31 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 11:11:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service Message-ID: <16101932.1195229491443.JavaMail.jboss@colo-br-02.atl.jboss.com> Try using the wsdlLocation attribute of @WebServiceProvider and eventually take a look at the org.jboss.test.ws.jaxws.samples.provider test cases. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105547#4105547 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105547 From do-not-reply at jboss.com Fri Nov 16 11:34:51 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 11:34:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Stopping Web Service Message-ID: <14614540.1195230891379.JavaMail.jboss@colo-br-02.atl.jboss.com> "krithi" wrote : Hi | How to start and stop the Jboss web service programatically? | I would like to get ' Server Not found ' page after stopping the jboss Web Service but jboss should remain running. On a particular event I would like to restart the web service. | | Is it possible to achieve this, How? | | Please Help | Thanks | Krithi You can start/stop every endpoint through the org.jboss.wsf.framework.management.ManagedEndpoint MBean, start() and stop() method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105562#4105562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105562 From do-not-reply at jboss.com Fri Nov 16 12:04:54 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 12:04:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WS Endpoint registration issue... Message-ID: <29254706.1195232694275.JavaMail.jboss@colo-br-02.atl.jboss.com> "garypinkham" wrote : "alessio.soldano at jboss.com" wrote : It's hard to say what is causing this and whether it is a jbossws or jboss seam issue; could you please give us some more details? what are you doing to "clean"? Are there any error or warning in the log during the AS startup? Does this affect also other ws project (without seam)? which version of JBossAS, JBossSeam and JBossWS are you using? | | I should have posted an update (sorry bout that). I think its due to the web.xml being renamed.. I saw a few other postings and issues in the jira regarding this. Now before I start the server I copy web.xml.org over the one that jboss put in my web-inf. Now my end points register every time. | | Thanks, | Gary OK, thanks, the issue you're talking about is JBWS-1762. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105578#4105578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105578 From do-not-reply at jboss.com Fri Nov 16 12:25:55 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 12:25:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception while deploying the webservice using jax-ws Message-ID: <20448501.1195233955719.JavaMail.jboss@colo-br-02.atl.jboss.com> "tpawankumar" wrote : Hi, | | This issue has been resolved by moving to Jbossws 2.0.1 GA. | | Now i am getting different exception | | java.lang.IllegalStateException: Cannot find endpoint meta data for: MacafeeAdapter | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM | etaData(UnifiedMetaDataDeploymentAspect.java:117) | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi | edMetaDataDeploymentAspect.java:86) | [...] | OK, this is no longer related to the XmlAccessorType issue; this problem is cause by the UnifiedMetaDataDeploymentAspect that is not able to find your endpoint meta data after all meta data have been created. I would double check the web.xml (beware of the case, you have macafeeAdapter as the service implementation class name). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105590#4105590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105590 From do-not-reply at jboss.com Fri Nov 16 13:17:36 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 16 Nov 2007 13:17:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WebServiceRef & HandlerChain annotations Message-ID: <14657656.1195237056088.JavaMail.jboss@colo-br-02.atl.jboss.com> I took a look at the code, the handler chain file path should be resolved starting from the declaring class. Isn't this what's happening to you? Let me know, we might eventually end opening a jira issue if something is wrong. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105615#4105615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105615 From do-not-reply at jboss.com Sun Nov 18 08:08:12 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Sun, 18 Nov 2007 08:08:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Get time of request Message-ID: <30697234.1195391292653.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, how can I obtain the time in that a request to my web service arrives? An how can I obtain the time whrn the response to the request is send? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105848#4105848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105848 From do-not-reply at jboss.com Sun Nov 18 08:13:11 2007 From: do-not-reply at jboss.com (kyriakost) Date: Sun, 18 Nov 2007 08:13:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Necessary artifacts/descriptors for JAX-WS web service Message-ID: <19476278.1195391591748.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you Alessio, The wsdlLocation was what was missing. The test cases helped a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105849#4105849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105849 From do-not-reply at jboss.com Sun Nov 18 23:12:23 2007 From: do-not-reply at jboss.com (caijc) Date: Sun, 18 Nov 2007 23:12:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Help:Cannot obtain endpoint meta data! Message-ID: <3253904.1195445544019.JavaMail.jboss@colo-br-02.atl.jboss.com> jboss4.2.2+jdk6 @WebService(name="BookWS",targetNamespace="http://net.cjc.ws",serviceName="BookWSService") @SOAPBinding(style= SOAPBinding.Style.RPC) @Stateless public class BookWS { @EJB private AuthorManager am; @WebMethod public List getMyBook(String me) { return am.queryBooks(me); } } and I also configured web.xml to define this endpoint as a servlet. While I deploy this war,the following exception is thrown: ava.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)... But I still can see this web service from jbossws;When I click the related link,the browser says it cannot phrase XML.Another exception is thrown on the console: 01:25:36,750 ERROR [RequestHandlerImpl] Error processing web service request java.lang.IllegalStateException: Cannot obtain endpoint meta data at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleWSDLRequest(RequestHandlerImpl.java:520) Why? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105892#4105892 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105892 From do-not-reply at jboss.com Mon Nov 19 04:31:40 2007 From: do-not-reply at jboss.com (burakbayramli) Date: Mon, 19 Nov 2007 04:31:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Returning Complex Type Message-ID: <22275583.1195464700386.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, While trying to return a complex type from a Web Service and I am experiencing some problems: I am on JBoss 4.2.1.GA and jbossws-1.2.1.GA. My client receives Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java/xml type mapping for: {http://service.gg.com/}Product | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.processOutputDocElement(JAXRPCMetaDataBuilder.java:778) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCMetaDataBuilder.buildParameterMetaDataDoc(JAXRPCMetaDataBuilder.java:897) | 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) | at com.gg.service.Client.main(Client.java:20) | If I comment out the method which returns the complex type, the client code works fine. Any ideas would be appreciated, The code is below; @WebService | @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) | public interface ProductDb extends Remote { | | @WebMethod String getProductTitle(int id); | | @WebMethod Product getProduct(); | | } | @Stateless | @WebService(endpointInterface="com.gg.service.ProductDb") | @WebContext(contextRoot="/ggServices") | public class ProductDbBean implements ProductDb { | | @PersistenceContext(unitName="GGLocal") | EntityManager em; | | public String getProductTitle(int id) { | Product prd = em.find(Product.class, id); | return prd.getTitle(); | } | | public Product getProduct() { | List l = em.createQuery("from Product").getResultList(); | return l.get(0); | } | } | public class Client | { | public static void main(String[] args) throws Exception | { | URL url = new URL("http://localhost:8080/ggServices/ProductDbBean?wsdl"); | QName qname = new QName("http://service.gg.com/", "ProductDbBeanService"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | ProductDb s = (ProductDb) service.getPort(ProductDb.class); | | String test = s.getProductTitle(1); | } | } | WSDL | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POJO: @Entity | @Table(name="urun") | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "Product", namespace="http://service.gg.com/", | propOrder = { "id", "title"}) | @XmlRootElement(namespace="http://service.gg.com/", name = "Product") | public class Product implements Serializable { | | @Id | @Column(name="urun_id") | @XmlElement(namespace="http://service.gg.com/", required = true) | private Integer id; | | @Column(length=60) | @XmlElement(namespace="http://service.gg.com/", required = true) | private String title; | | public String getTitle() { | return title; | } | | public void setTitle(String title) { | this.title = title; | } | | public Integer getId() { | return id; | } | | public void setId(Integer id) { | this.id = id; | } | | | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105932#4105932 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105932 From do-not-reply at jboss.com Mon Nov 19 04:32:30 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 19 Nov 2007 04:32:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: webParameter is null Message-ID: <33028551.1195464750884.JavaMail.jboss@colo-br-02.atl.jboss.com> Also ensure you're sending SOAPAction HTTP header if applicable. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105933#4105933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105933 From do-not-reply at jboss.com Mon Nov 19 05:44:51 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 19 Nov 2007 05:44:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Deploying 2 web services on JBossWS, and getting differe Message-ID: <7642244.1195469091443.JavaMail.jboss@colo-br-02.atl.jboss.com> I suggest you to upgrade jbossws to 2.0.1.GA; this will fix your issue. Feel free to write here again if you have any further problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105966#4105966 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105966 From do-not-reply at jboss.com Mon Nov 19 06:28:39 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 19 Nov 2007 06:28:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Get time of request Message-ID: <26665511.1195471720018.JavaMail.jboss@colo-br-02.atl.jboss.com> Right now request/response time are written in the logs. In future this information might be included in the statistics collected the way described here http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121473. Feel free to suggest anything else you think could be interesting. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105979#4105979 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105979 From do-not-reply at jboss.com Mon Nov 19 07:05:00 2007 From: do-not-reply at jboss.com (aroppone) Date: Mon, 19 Nov 2007 07:05:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBoss, JXB and NetBeans Message-ID: <1751541.1195473900214.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for your reply. I read that wiki topic and found it very confusing as it has been with JbOss all the time. Could you point a suitable tutorial that goes through createng web services and deploing them to JBoss with some IDE, or is there any? Regards Antti View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105990#4105990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105990 From do-not-reply at jboss.com Mon Nov 19 07:06:10 2007 From: do-not-reply at jboss.com (grdzeli_kaci) Date: Mon, 19 Nov 2007 07:06:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jdk 1.6, jbossws 2.0.1 and jboss as 4.2.2.ga Message-ID: <14065408.1195473970806.JavaMail.jboss@colo-br-02.atl.jboss.com> hi all, i tried to use jbossws but i got this error : | 15:56:43,829 ERROR [[WebServicesForPHPBean]] Servlet.service() for servlet WebServicesForPHPBean threw exception | java.lang.NoSuchMethodError: org.jboss.ejb3.stateless.StatelessBeanContext.getWebServiceContextProperty()Lorg/jboss/injection/lang/reflect/BeanProperty; | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3$CallbackImpl.attached(InvocationHandlerEJB3.java:129) | at org.jboss.ejb3.EJBContainerInvocation.setBeanContext(EJBContainerInvocation.java:77) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:56) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | | my env: os : sun solaris as : jboss 4.2.2.ga jbossws 2.0.1.ga java : jdk 1.6 also i use the endorsed directory mechanism, as described here http://www.bhaskarvk.info/content/jboss/jbossws_2_0_1.html can anybody help me ? any idea will be appreciated _______________ Regards, Paata View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105991#4105991 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105991 From do-not-reply at jboss.com Mon Nov 19 07:10:10 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 19 Nov 2007 07:10:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS Basic authorization? Message-ID: <13594949.1195474210454.JavaMail.jboss@colo-br-02.atl.jboss.com> "rukus" wrote : Looks like only web.xml matters | security-constraint> | | | | Server service | | /* | | POST | | | | | | testuser | | | | | and | @RolesAllowed | annotation does no effect This is because you're using a POJO endpoint. The annotation approach should work with an EJB3 endpoint. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105992#4105992 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105992 From do-not-reply at jboss.com Mon Nov 19 08:10:23 2007 From: do-not-reply at jboss.com (sarunb4u) Date: Mon, 19 Nov 2007 08:10:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS 2.0.1.GA installation error Message-ID: <21631484.1195477823723.JavaMail.jboss@colo-br-02.atl.jboss.com> When i try to install JBossWS i'm getting the following error anonymous wrote : BUILD FAILED | D:\Arun\Tools\jbossws-native-2.0.1.GA\jbossws-native-2.0.1.GA\build\build-deploy | .xml:79: The following error occurred while executing this line: | D:\Arun\Tools\jbossws-native-2.0.1.GA\jbossws-native-2.0.1.GA\build\macros-deplo | y-native.xml:298: Warning: Could not find file D:\Arun\jboss\server\default\depl | oy\jbossws.sar\META-INF\jboss-service-no-ejb3.xml to copy. OS:WinXP ANT:1.7 JBoss:4.0 JDK:1.6 JBossWS:2.0.1GA In the ant.properties file i've changed the "jboss40.home" to point to my jboss home directory(d:\arun\jboss) Should i do anything other than this?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106006#4106006 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106006 From do-not-reply at jboss.com Mon Nov 19 08:37:02 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 19 Nov 2007 08:37:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 2.0.1.GA installation error Message-ID: <19561642.1195479422559.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, take a look to this forum discussion, I think you're dealing with the same problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=116889&postdays=0&postorder=asc&start=0 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106013#4106013 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106013 From do-not-reply at jboss.com Mon Nov 19 09:52:37 2007 From: do-not-reply at jboss.com (tjones) Date: Mon, 19 Nov 2007 09:52:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS with JBoss Embedded Message-ID: <24388677.1195483957403.JavaMail.jboss@colo-br-02.atl.jboss.com> Is it possible to deploy JBossWS to an EmbeddedJBoss instance? Thanks, Ted Jones View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106037#4106037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106037 From do-not-reply at jboss.com Mon Nov 19 12:21:17 2007 From: do-not-reply at jboss.com (ahmedmhyd) Date: Mon, 19 Nov 2007 12:21:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsconsume Message-ID: <14702258.1195492877334.JavaMail.jboss@colo-br-02.atl.jboss.com> I also got the same problem when trying to consume googlesearch.wsdl .Where u able to solve it? Ahmed Error: [exec] parsing WSDL... [exec] [WARNING] src-resolve.4.2: Error resolving component 'soapenc:Array'. It was detected that 'soapenc:Array' is in namespace 'http://schemas.xmlsoap.org/soap/encoding/', but components from this namespace are not referenceable from schema document 'file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'soapenc:Array' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1'. [exec] line 57 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl#types?schema1 [exec] [ERROR] undefined simple or complex type 'soapenc:Array' [exec] line 57 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl [exec] [ERROR] undefined attribute 'soapenc:arrayType' [exec] line 58 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl [exec] [ERROR] undefined simple or complex type 'soapenc:Array' [exec] line 65 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl [exec] [ERROR] undefined attribute 'soapenc:arrayType' [exec] line 66 of file:/C:/Workspace/wsdl/GoogleSearch.wsdl [exec] Failed to invoke WsImport [exec] java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/client/jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/) [exec] at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.java:172) [exec] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422) [exec] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286) [exec] at com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:332) [exec] at com.sun.tools.xjc.reader.internalizer.SCDBasedBindingSet.apply(SCDBasedBindingSet.java:231) [exec] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:518) [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232) [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85) [exec] at com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:120) [exec] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2173) [exec] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:173) [exec] at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:119) [exec] at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:148) [exec] at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:187) [exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:216) [exec] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:79) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106106#4106106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106106 From do-not-reply at jboss.com Mon Nov 19 12:22:06 2007 From: do-not-reply at jboss.com (paoletto) Date: Mon, 19 Nov 2007 12:22:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Is this possible to do somehow? Message-ID: <18515933.1195492926531.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, it's a stupid question and maybe the wrong section: suppose i have a pojo or a session bean exposed as web service. suppose i have a int foo(int bar) method in it. is it tecnically possible to leave some other class answer the web service invocation to foo()? that is someone call foo. foo is in fact a void method which call session bean test, which will reply the web service invocation sending back to the invoker the int return value. (yes, why dont just wait the end of test invocation, and answer from foo method? but this is an example case, because i actually would need to answer the web service invocation from a message driven bean) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106107#4106107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106107 From do-not-reply at jboss.com Tue Nov 20 03:54:07 2007 From: do-not-reply at jboss.com (pkalpana2k) Date: Tue, 20 Nov 2007 03:54:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Getting DEBUG messages and server goes to hung state Message-ID: <28511942.1195548847329.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm using JBoss server. I am getting some DEBUG messages, after that my server goes to hung state. DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true What this DEBUG message says? Can you please tell me why this DEBUG message is coming? Thanks in Advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106263#4106263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106263 From do-not-reply at jboss.com Tue Nov 20 05:33:50 2007 From: do-not-reply at jboss.com (centecbertl) Date: Tue, 20 Nov 2007 05:33:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Protected Access to WSDL - How to define required Security R Message-ID: <20224261.1195554831131.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, according to JBWS-723 it is possible to protect access to the WSDL requests of Web-Services. Looking at it in more detail it appears that access does require only any valid login, but is not restricted to specific security roles. Is it possible to restrict the access to WSDL????s of Web-Services in a role based manner per Web-Service? Use case: We have a full web-service API for internal use. For Clients we want to make one or two of these services available without publishing the full API structure (services, data structures,...) related to internal web-services. So the idea is that access to internal web-services and their WSDL requires a security roles which are not granted to clients. Kind Regards Bertl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106292#4106292 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106292 From do-not-reply at jboss.com Tue Nov 20 07:17:58 2007 From: do-not-reply at jboss.com (burakbayramli) Date: Tue, 20 Nov 2007 07:17:58 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Unable to load Provider Message-ID: <32067402.1195561078539.JavaMail.jboss@colo-br-02.atl.jboss.com> I have problems running the sample Web Service shown in Quick Start document. I am able to deploy the Web Service, no problem, I see it running at http://localhost:8080/jbossws/services. Then, I generate stubs using wsconsume. I place the generated code to a different package called org.bilgidata.kitapdemo.service.ws. I am on JBoss 4.2.1.GA and jbossws-2.0. I used the following code: import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlType; | | import org.bilgidata.kitapdemo.pojo.Car; | | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType( | name = "discountRequest", | namespace="http://org.bilgidata.kitapdemo.service", | propOrder = { "car" } | ) | public class DiscountRequest { | | public DiscountRequest() { } | | public DiscountRequest(Car car) { | this.car = car; | } | | protected Car car; | | public Car getCar() { | return car; | } | | public void setCar(Car value) { | this.car = value; | } | | } | @Stateless | @WebService( | name="ProfileMgmt", | targetNamespace = "http://org.bilgidata.kitapdemo.service", | serviceName = "ProfileMgmtService" | ) | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) | public class ProfileMgmtBean { | | @WebMethod | public String getCustomerDiscount(DiscountRequest request) { | return "--"; | } | } | import org.bilgidata.kitapdemo.service.ws.*; | | public class Mainline { | | public static void main(String[] args) throws Exception { | | ProfileMgmtService profileMgmt = new ProfileMgmtService(); | | String s = profileMgmt.getCustomerDiscount(new DiscountRequest()); | | } | | } | The error I get is: Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl | at javax.xml.ws.spi.Provider.provider(Provider.java:98) | at javax.xml.ws.Service.(Service.java:83) | at javax.xml.ws.Service.create(Service.java:721) | at org.bilgidata.kitapdemo.service.Mainline.main(Mainline.java:28) | Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl | at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96) | at javax.xml.ws.spi.Provider.provider(Provider.java:90) | ... 3 more | Caused by: java.lang.ExceptionInInitializerError | 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:494) | at java.lang.Class.newInstance0(Class.java:350) | at java.lang.Class.newInstance(Class.java:303) | at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91) | ... 4 more | Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. | at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188) | at com.sun.xml.ws.spi.ProviderImpl.(ProviderImpl.java:65) | ... 11 more | Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions | Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them. | this problem is related to the following location: | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address | at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference | this problem is related to the following location: | at javax.xml.ws.wsaddressing.W3CEndpointReference$Address | at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address | at javax.xml.ws.wsaddressing.W3CEndpointReference | Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them. | this problem is related to the following location: | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements | at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference | this problem is related to the following location: | at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements | at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters | at javax.xml.ws.wsaddressing.W3CEndpointReference | | at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117) | 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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211) | at javax.xml.bind.ContextFinder.find(ContextFinder.java:372) | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) | at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186) | ... 12 more | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any help would be greatly appreciated. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106339#4106339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106339 From do-not-reply at jboss.com Tue Nov 20 11:27:08 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 20 Nov 2007 11:27:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Getting DEBUG messages and server goes to hung state Message-ID: <26608824.1195576029011.JavaMail.jboss@colo-br-02.atl.jboss.com> I am going to go out on a limb here and say that someone modified the server's source code because I cannot see any such logging statements in the source I have. What version of JBoss AS are you using? If you take a thread dump, what are the threads doing? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106457#4106457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106457 From do-not-reply at jboss.com Tue Nov 20 14:27:45 2007 From: do-not-reply at jboss.com (Batigoal) Date: Tue, 20 Nov 2007 14:27:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBOSS WS and REST without WSDL (Bug?) Message-ID: <13379957.1195586866133.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Does JBossWS really support REST without a given WSDL? To my mind REST often makes only sense when i don't have a WSDL because i don't want to use the SOAP-protocol, But when i annotate a Bean with @WebServiceProvider @ServiceMode(value=Service.Mode.PAYLOAD) then JBOSS throws an Exception on deploying the services : java.lang.IllegalStateException: Cannot obtain wsdl location for.... Ist this a Bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106528#4106528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106528 From do-not-reply at jboss.com Tue Nov 20 16:14:16 2007 From: do-not-reply at jboss.com (gquintana) Date: Tue, 20 Nov 2007 16:14:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - ClassNotFoundException JBossWSProviderFactoryImpl with JBoss Message-ID: <156129.1195593256252.JavaMail.jboss@colo-br-02.atl.jboss.com> I get an exception when I run WSProvide: $ wsprovide.sh -k -w -c classes -o classes -r jbossws -s jbossws com.mycompany.myapp.ws.MyWebService | [: 71: /opt/java/jboss-4.2.2.GA/client/jbossws-client.jar: unexpected operator | JBossWS-SunRI stack deployed | Exception in thread "main" java.lang.IllegalStateException: Failed to load: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl | at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:205) | at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLoader.java:138) | at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:68) | at org.jboss.wsf.spi.tools.WSContractProvider.newInstance(WSContractProvider.java:65) | at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:170) | at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77) | Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | 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.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:200) | ... 5 more | I am using Ubuntu 7.10, Sun Java 1.5 and standard JBoss 4.2.2. What's wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106549#4106549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106549 From do-not-reply at jboss.com Tue Nov 20 17:14:54 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 20 Nov 2007 17:14:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <15985235.1195596894082.JavaMail.jboss@colo-br-02.atl.jboss.com> The missing class is in client/jbossws-client.jar. Looks like you have to set JBossWS-Native to something (set it ti 1) to get that jar file included in the classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106557#4106557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106557 From do-not-reply at jboss.com Tue Nov 20 17:20:39 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 20 Nov 2007 17:20:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <25748342.1195597239189.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually, looking a little more carefully, it would appear that the shell (bash?) on Ubuntu did not like the if statement in lines 69-71 ("unexpected operator"). Fedora 8 doesn't have a problem with it; I have Kubuntu 7.10 at home, I'll try there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106558#4106558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106558 From do-not-reply at jboss.com Tue Nov 20 17:52:51 2007 From: do-not-reply at jboss.com (isthisusernameavailable) Date: Tue, 20 Nov 2007 17:52:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Webservice not starting in AS 4.2.2 Message-ID: <31564889.1195599171355.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have a simple clustered webservice that I created using AS 4.2.1 annotated with some basic annotations: @Stateless | @Clustered(partition="DefaultPartition") | @WebService(serviceName="Request") | public class RequestManager extends IRemote { | ... | } with a few methods annotated with plain @WebMethod annotations. When I deploy this bean in AS 4.2.1 I get this line in my server.log: | [org.jboss.ws.core.server.ServiceEndpointManager] WebService started: http://127.0.0.1:8080/RequestManagerService/RequestManager and everything works great. When I upgraded to AS 4.2.2, this same web service is no longer started in my log file and is not available. Can anyone offer some insight why this web service fails to deploy in 4.2.2 and what a solution might be? Thanks, John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106563#4106563 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106563 From do-not-reply at jboss.com Wed Nov 21 01:50:32 2007 From: do-not-reply at jboss.com (pkalpana2k) Date: Wed, 21 Nov 2007 01:50:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Getting DEBUG messages and server goes to hung state Message-ID: <11572588.1195627832169.JavaMail.jboss@colo-br-02.atl.jboss.com> hi, I'm using Jboss 4.0.3 and i have many threads running simultaneously. Each thread will do some process. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106607#4106607 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106607 From do-not-reply at jboss.com Wed Nov 21 03:13:49 2007 From: do-not-reply at jboss.com (fheldt) Date: Wed, 21 Nov 2007 03:13:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Question about webservice returning array with nillable=fals Message-ID: <8770518.1195632829740.JavaMail.jboss@colo-br-02.atl.jboss.com> I've got a problem with a webservice and no idea how to solve this. Maybe someone can give me a hint: Java Webservice snippet: | @WebMethod | public Integer[] GetSteps(String ugid) { | Session session = (Session) em.getDelegate(); | List list = session.createSQLQuery("SELECT QVZAHL FROM MQVAL WHERE QVUGRP=:ugid AND QVSTAT<>'*'") | .addScalar("QVZAHL", Hibernate.INTEGER) | .setString("ugid", ugid) | .list(); | return list.toArray(new Integer[list.size()]); | } | Now i want to use this in a C# .NET project, it generates this | public System.Nullable[] GetSteps(string arg0) { | object[] results = this.Invoke("GetSteps", new object[] {arg0}); | return ((System.Nullable[])(results[0])); | } | As you see, it generates a function returning an array of nullable ints. The question is: how can i change the Java webservice so that the elemnets of the array are nillable=false. Is there any annotation to do this? Thanks in advance for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106634#4106634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106634 From do-not-reply at jboss.com Wed Nov 21 03:16:40 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 21 Nov 2007 03:16:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <19965481.1195633000334.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, try to check your web.xml file, if you're using original or modified one. I think you're problem could be caused by this issue: http://jira.jboss.org/jira/browse/JBWS-1762 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106635#4106635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106635 From do-not-reply at jboss.com Wed Nov 21 03:21:54 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 21 Nov 2007 03:21:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question about webservice returning array with nillable= Message-ID: <13641006.1195633314390.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, let JBossWS generate your WSDL first. Then copy it somewhere and modify its schema. Then update your Webservice java code (using appropriate annotation) to use your modified WSDL file instead of generated one. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106637#4106637 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106637 From do-not-reply at jboss.com Wed Nov 21 07:37:08 2007 From: do-not-reply at jboss.com (paoletto) Date: Wed, 21 Nov 2007 07:37:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain java type mapping for String.Array Message-ID: <16126178.1195648628935.JavaMail.jboss@colo-br-02.atl.jboss.com> Which kind of problem? Im having the same problem: im exposing a public String[] hello(); but im getting as well org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://jaxb.dev.java.net/array}stringArray if i use public String hello(), it works. oh, by the way using DII configured call. what's wrong with it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106715#4106715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106715 From do-not-reply at jboss.com Wed Nov 21 07:47:48 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Wed, 21 Nov 2007 07:47:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - javax.xml.rpc.JAXRPCException: Cannot create or send respons Message-ID: <7547068.1195649268660.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i am new to webservice. I tried to create a web service with a single method & called from client. It works fine. But when I add one more webservice method & called the first method from the client. The call goes to server works till the return but while returning, it throws the below error. Please help me on this. WS Code is : @Stateless() @WebService() public class REFactory { /** * Web service operation */ @WebMethod public String display(@WebParam(name = "s") String s) { // TODO implement operation System.out.println("In method 1 :::: "+s); return "From method 1"; } /** * Web service operation */ @WebMethod public String createSession(@WebParam(name = "vo") Object vo) { System.out.println("In method 2 ..........."); return "From method 2"; } } Error is : 18:02:26,791 ERROR [SOAPFaultExceptionHelper] SOAP request exception javax.xml.rpc.JAXRPCException: Cannot create or send response message at org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:311) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:236) at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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) Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Neither getter nor field where found for defaultAssertionStatus in class java.lang.ClassLoader at org.jboss.xb.binding.MappingObjectModelProvider$FieldToElementMapping.(MappingObjectModelProvider.java:368) at org.jboss.xb.binding.MappingObjectModelProvider.mapFieldToElement(MappingObjectModelProvider.java:71) at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:149) at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:100) at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:172) at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:844) at org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:761) at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:211) at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270) at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:270) at org.jboss.util.xml.DOMWriter.print(DOMWriter.java:186) at org.jboss.util.xml.DOMWriter.printNode(DOMWriter.java:135) at org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:305) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106718#4106718 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106718 From do-not-reply at jboss.com Wed Nov 21 07:50:13 2007 From: do-not-reply at jboss.com (paoletto) Date: Wed, 21 Nov 2007 07:50:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - About jaxrpc-mapping.xml... Message-ID: <13395118.1195649414015.JavaMail.jboss@colo-br-02.atl.jboss.com> I have an ejb3 slsb exposed as web service using jsr181. Now: i'd like to use Dinamic invocation interface because it's possible that some clients dont have the endpoint interface. I get org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://jaxb.dev.java.net/array}stringArray because there is probably a mismatch in namespace for some obscure reasons. I'm not using a jaxrpc-mapping.xml My question is: to generate it i have to use some tools (like wstools or wsconsume) applied to the wsdl, and then give to my application. But - just wondering- why this? why dont just provide some interface to auto generate it? If i want to use some other web services i have only the wsdl for, why should i generate the mapping BEFORE, and then give to my application? why cant this process be automatic? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106720#4106720 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106720 From do-not-reply at jboss.com Wed Nov 21 08:12:27 2007 From: do-not-reply at jboss.com (paoletto) Date: Wed, 21 Nov 2007 08:12:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain java type mapping for: {http://org.mazurek Message-ID: <10181619.1195650747966.JavaMail.jboss@colo-br-02.atl.jboss.com> "thomas.diesler at jboss.com" wrote : Your DII client does not have a jaxrpc-mapping.xml. You can use | | | | ServiceFactoryImpl.createService(wsdlURL, serviceName, mappingURL) | | | how is this approach changed now? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106730#4106730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106730 From do-not-reply at jboss.com Wed Nov 21 10:16:09 2007 From: do-not-reply at jboss.com (sodik) Date: Wed, 21 Nov 2007 10:16:09 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to dynamically change URL where client is connecting Message-ID: <9113895.1195658169726.JavaMail.jboss@colo-br-02.atl.jboss.com> thank you, looks exactly as what I need. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106781#4106781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106781 From do-not-reply at jboss.com Wed Nov 21 13:05:23 2007 From: do-not-reply at jboss.com (isthisusernameavailable) Date: Wed, 21 Nov 2007 13:05:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <31564267.1195668323408.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : Hi, | | try to check your web.xml file, if you're using original or modified one. I think you're problem could be caused by this issue: http://jira.jboss.org/jira/browse/JBWS-1762 | | Richard Hi Richard, I don't have a web.xml in my deployment. I'm only annotating the class with @WebService (as above), and I'm able to make SOAP calls to my server and receive a response under 4.2.1, but not in 4.2.2. I'm a newbie to JBoss -- should I be using a web.xml file, and if so, where would I look for information about it? Thanks, John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106847#4106847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106847 From do-not-reply at jboss.com Wed Nov 21 15:31:26 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 21 Nov 2007 15:31:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question about webservice returning array with nillable= Message-ID: <20498483.1195677086654.JavaMail.jboss@colo-br-02.atl.jboss.com> In particular I guess you get non-nillable elements using an array of primitive int instead of an array of Integer. However generally speaking, what Richard suggest you is the best solution whenever you need to force some constraints on the service contract (see the top-down approach in the documentation). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106878#4106878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106878 From do-not-reply at jboss.com Wed Nov 21 15:54:06 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 21 Nov 2007 15:54:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: About jaxrpc-mapping.xml... Message-ID: <14518880.1195678446064.JavaMail.jboss@colo-br-02.atl.jboss.com> It's not clear whether you're having problems with the server or client; I assume server is fine and your concern is about the client, since you talk about dynamic invocation. I suggest you to forget about jaxrpc-mapping and JAX-RPC in general and switch to JAX-WS, everything is simpler. You can either generate the client with ws-consume (you only need the wsdl service contract) or use Dispatch (http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Dispatch) working at message level. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106886#4106886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106886 From do-not-reply at jboss.com Wed Nov 21 16:07:31 2007 From: do-not-reply at jboss.com (jboss-watchers) Date: Wed, 21 Nov 2007 16:07:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - MTOM with Jboss 4.0.4 Message-ID: <3852515.1195679251416.JavaMail.jboss@colo-br-02.atl.jboss.com> We are currently using JBoss 4.0.4 and want to suppport MTOM to receive huge files from .NET client. The version of JbossWS (jbossws14) that comes with Jboss4.0.4 doesn't support it well. So we are planning to upgrade just the jbossws stack to a latest version. If you have experience in implementing MTOM with jboss4.0.4 or any inter-operatable solution to receive huge files from .NET client, please guide us. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106899#4106899 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106899 From do-not-reply at jboss.com Wed Nov 21 16:07:50 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 21 Nov 2007 16:07:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.rpc.JAXRPCException: Cannot create or send res Message-ID: <8748705.1195679270179.JavaMail.jboss@colo-br-02.atl.jboss.com> Which version of JBossWS and JBoss is this from? Did you create a JAX-WS service starting from what is on the documentation? (that JAXRPCException sounds quite strange to me...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106900#4106900 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106900 From do-not-reply at jboss.com Wed Nov 21 16:41:52 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 21 Nov 2007 16:41:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Protected Access to WSDL - How to define required Securi Message-ID: <27718696.1195681312197.JavaMail.jboss@colo-br-02.atl.jboss.com> "centecbertl" wrote : Hi, | | according to JBWS-723 it is possible to protect access to the WSDL requests of Web-Services. Looking at it in more detail it appears that access does require only any valid login, but is not restricted to specific security roles. | | Is it possible to restrict the access to WSDL????????????????s of Web-Services in a role based manner per Web-Service? Right now this feature is not available. Feel free to create a feature request issue on JIRA so that we or the community can work on it in the future. anonymous wrote : Use case: We have a full web-service API for internal use. For Clients we want to make one or two of these services available without publishing the full API structure (services, data structures,...) related to internal web-services. So the idea is that access to internal web-services and their WSDL requires a security roles which are not granted to clients. Ok, I understand your use case; btw, is it doable for you to use different security domains to protect services that should be accessed by internal users only? this could be another solution... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106910#4106910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106910 From do-not-reply at jboss.com Wed Nov 21 16:59:48 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 21 Nov 2007 16:59:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Is this possible to do somehow? Message-ID: <955273.1195682388508.JavaMail.jboss@colo-br-02.atl.jboss.com> Why do you need a message bean to process your message? If you need a way to invoke your webservice in an asynchronous way, take a look at this http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Asynchronous_Invocations and at the org.jboss.test.ws.jaxws.samples.asynchronous test cases you can find in the binaries. If you don't want to perform an asynch invocation but you need to use the message driven bean on the server side for other application specific reasons, consider synchronizing your foo method somewhow with the MDB. For example you could wait for responses on a temporary queue created by foo. When test mdb finish processing the message, it replies on that queue it found the reference in the request message from foo. Of course this is a pattern not directly related to the WS... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106917#4106917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106917 From do-not-reply at jboss.com Wed Nov 21 18:17:34 2007 From: do-not-reply at jboss.com (paoletto) Date: Wed, 21 Nov 2007 18:17:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Is this possible to do somehow? Message-ID: <29443961.1195687054827.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, i was thinking about synchronizing the exposed service with the mdb, but not with messages, since my exposed slsb should wait for someone else to end some job, and then return. what i was wondering is: is it possible to expose-for example- a "public String foo()" , but then the body of the method dont return anything, and, better, dont send back any soap response. Instead, some other component in the system should send it back to the invoker (so it is needed also a kind of address to answer back) maybe it's just impossible.. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106934#4106934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106934 From do-not-reply at jboss.com Thu Nov 22 01:27:13 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Thu, 22 Nov 2007 01:27:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.rpc.JAXRPCException: Cannot create or send res Message-ID: <22461993.1195712833882.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using Jboss 4.0.4 & JAX-WS 2.1 - default available in netbeans 5.5.1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106970#4106970 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106970 From do-not-reply at jboss.com Thu Nov 22 03:24:59 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 22 Nov 2007 03:24:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.rpc.JAXRPCException: Cannot create or send res Message-ID: <2172915.1195719899530.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, I guess you're using the JBossWS that came with JBoss 4.0.4.GA that should be something like 1.0.0.GA. That version had a first implementation of JSR181; if you're going to extensively use JAX-WS, I suggest you upgrade both JBoss and JBossWS. In the mean time, try adding the operationName and action parameter to the @WebMethod annotation and the @WebResult annotations to both methods. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106981#4106981 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106981 From do-not-reply at jboss.com Thu Nov 22 03:46:27 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Nov 2007 03:46:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Dynamic no. of attachments using MTOM Message-ID: <2424406.1195721187111.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Has anyone made i possible to implement a web service that can receive or send multiple attachments using MTOM. All examples just have one DataHandler but this is not enough for what I want to do. I want to be able to use a dynamic number of attachments. XOP has support for several attachments in the xml document but how does JBoss and especially Java EE treat such a data structure. Where can I find my attachments? If I use the Provider< SOAPMessage > mechanism I have full control, but still the question: Where can I find the send attachments? Do I have to use a Provider< Source > implementation to solve this? My web service consumers want to send multiple documents to our server in one request. Upon other requests, I will generate a dynamic number of PDF documents on the server and then send them to the client. Is it possible? Of course we can bundle all attachments into a zip file and get one attachment - but this is an ugly work around. I hope someone can answer this question. Regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106990#4106990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106990 From do-not-reply at jboss.com Thu Nov 22 03:47:13 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 22 Nov 2007 03:47:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <20790782.1195721234285.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, which version of JBossWS are you using? Just FYI there will be a new version of JBossWS 2.0.2 downloadable soon which is well tested on JBossAS 4.2.2. I suggest you to upgrade. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106992#4106992 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106992 From do-not-reply at jboss.com Thu Nov 22 03:54:06 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 22 Nov 2007 03:54:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Is this possible to do somehow? Message-ID: <1302957.1195721646805.JavaMail.jboss@colo-br-02.atl.jboss.com> "paoletto" wrote : what i was wondering is: is it possible to expose-for example- a | "public String foo()" , but then the body of the method dont return anything, and, better, dont send back any soap response. This is not possible. You need to evaluate different communication patterns (asynch, ws-eventing, etc) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106996#4106996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106996 From do-not-reply at jboss.com Thu Nov 22 04:03:54 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 22 Nov 2007 04:03:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <9915007.1195722235017.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, did you try to use List or DataHandler[] data object as your method argument? It should work as well. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107003#4107003 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107003 From do-not-reply at jboss.com Thu Nov 22 04:04:27 2007 From: do-not-reply at jboss.com (abdujaparov) Date: Thu, 22 Nov 2007 04:04:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Get time of request Message-ID: <25143263.1195722267471.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, Can I get these datas from the log file? Where is the log file? With jmx can I get the response time of the last request? Thanks, bye bye. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107004#4107004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107004 From do-not-reply at jboss.com Thu Nov 22 06:31:05 2007 From: do-not-reply at jboss.com (dkane) Date: Thu, 22 Nov 2007 06:31:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS from Sessions Bean fails due to missing org/jboss Message-ID: <5920320.1195731065241.JavaMail.jboss@colo-br-02.atl.jboss.com> "ejb3workshop" wrote : | A search in the forums and the web makes suggestions to include the jboss-common-clients.jar in the classpath. I tried added this jar to the /server/default/lib folder as well as include it within the EAR / application.xml, of which neiter worked. | "ejb3workshop" wrote : java.lang.NoClassDefFoundError: org/jboss/logging/Logger | at javax.xml.soap.FactoryLoader.(FactoryLoader.java:47) | at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:64) | I have the same problem, although web-service is being invoked remotely. Adding jboss-common-client.jar or jbossall-client.jar to JBoss classpath does not help. Then I tried to put this jar to lib/endorsed, next to jars required for JBossWS on Java 1.6 , and JBoss failed to start at all. Somehow, endorsed classes does not "see" JBoss classpath ... How to solve this problem ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107055#4107055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107055 From do-not-reply at jboss.com Thu Nov 22 06:43:38 2007 From: do-not-reply at jboss.com (paoletto) Date: Thu, 22 Nov 2007 06:43:38 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: About jaxrpc-mapping.xml... Message-ID: <4909928.1195731818714.JavaMail.jboss@colo-br-02.atl.jboss.com> the problem is that i have a stack of server, each one with the same service exposed, so i was thinking about DII because it's easier to dinamically specify wsdl url and service name. If i generate the client with wsconsume, then can i dinamically change the address and connect to the same service on a different machine? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107061#4107061 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107061 From do-not-reply at jboss.com Thu Nov 22 06:57:26 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Nov 2007 06:57:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <26137888.1195732646775.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Thanks for a quick reply! Ok! It might be a good one to do so. When using a DataHandler list , where do I get the rest of my xml document. If using document/literal I will post/receive an xml document that may contain other textual information. In other words, my xml may contain some "normal" xml information and some binary information. Regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107069#4107069 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107069 From do-not-reply at jboss.com Thu Nov 22 08:11:33 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 22 Nov 2007 08:11:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <30838126.1195737093391.JavaMail.jboss@colo-br-02.atl.jboss.com> "oskar.carlstedt" wrote : | When using a DataHandler list , where do I get the rest of my xml document. If using document/literal I will post/receive an xml document that may contain other textual information. I don't understand this question :-( "oskar.carlstedt" wrote : | In other words, my xml may contain some "normal" xml information and some binary information. This shouldn't be the problem. MTOM should work in such scenarios as well. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107100#4107100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107100 From do-not-reply at jboss.com Thu Nov 22 09:17:46 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Nov 2007 09:17:46 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <28470603.1195741066245.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok! What I mean is when I have a DataHandler I can get an input stream to the reach the attachment data. But what if I have the following xml. How do I get my xml document: | | | | | SOME TEXTUAL INFO 1 | SOME TEXTUAL INFO 2 | | this part will go as MTOM attachment | | | | SOME TEXTUAL INFO 1 | SOME TEXTUAL INFO 2 | | this part will go as MTOM attachment | | | | Are there two methods that are invoked in the implementing code. As I understand the DataHandler will give me the InputStream to the attachment (binary in above xml). But there is no way to get the rest of the xml, or is it? Regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107125#4107125 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107125 From do-not-reply at jboss.com Thu Nov 22 10:47:20 2007 From: do-not-reply at jboss.com (kikk) Date: Thu, 22 Nov 2007 10:47:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - IWAB0398E Error in generating WSDL from Java Message-ID: <7584784.1195746440054.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I use Jboss 4.0, jdk 1.5 and eclipse 3.3.1. when I click on "create web service", appears to me a windows with an error. Can someone tell me what's the problem? ________________________________________________________________ IWAB0398E Error in generating WSDL from Java: java.lang.ClassNotFoundException: owlJena.ExportConverter java.lang.ClassNotFoundException: owlJena.ExportConverter at java.lang.ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1414) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100) at org.apache.axis.wsdl.fromJava.Emitter.setCls(Emitter.java:2079) at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Java2WsdlAntTask.java:188) at org.eclipse.jst.ws.internal.axis.consumption.core.command.Java2WSDLCommand.executeAntTask(Java2WSDLCommand.java:181) at org.eclipse.jst.ws.internal.axis.consumption.core.command.Java2WSDLCommand.execute(Java2WSDLCommand.java:96) at org.eclipse.jst.ws.internal.axis.creation.ui.command.BUCodeGenOperation$BottomUpWSModifyOperation.execute(BUCodeGenOperation.java:116) at org.eclipse.jst.ws.internal.axis.creation.ui.command.BUCodeGenOperation.execute(BUCodeGenOperation.java:80) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359) at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254) at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934) at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264) at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91) at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154) at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136) at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107135#4107135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107135 From do-not-reply at jboss.com Thu Nov 22 16:15:39 2007 From: do-not-reply at jboss.com (gquintana) Date: Thu, 22 Nov 2007 16:15:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <19002624.1195766139179.JavaMail.jboss@colo-br-02.atl.jboss.com> You are right, at line, I replaced if [ -a $LIBDIR/jbossws-client.jar ]; then by if [ -f $LIBDIR/jbossws-client.jar ]; then and now it works. Should I fill a bug report or is it a known bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107196#4107196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107196 From do-not-reply at jboss.com Thu Nov 22 16:32:36 2007 From: do-not-reply at jboss.com (gquintana) Date: Thu, 22 Nov 2007 16:32:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <27940638.1195767156595.JavaMail.jboss@colo-br-02.atl.jboss.com> I looked at source code generated by WSImport and there is something weird that doesn't compile: @XmlRootElement(...) | @XmlType(...) | @XmlAccessorType(XmlAccessType.FIELD) | public class MyOperationResponse { | @XmlElement(namespace = "", name = "return") | private MyValueObject return; | public MyValueObject getReturn() { | return this.return; | } | public void setReturn(MyValueObject return) { | this.return = return; | } | } The "return" keyword is reserved and can not be used as attribute, argument... The input interface was pretty simple: @WebService(...) | public interface MyWebService { | @WebMethod | MyValueObject myOperation(String myArgument) throws MyException; | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107198#4107198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107198 From do-not-reply at jboss.com Thu Nov 22 19:13:25 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 22 Nov 2007 19:13:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: About jaxrpc-mapping.xml... Message-ID: <20311032.1195776805585.JavaMail.jboss@colo-br-02.atl.jboss.com> "paoletto" wrote : If i generate the client with wsconsume, then can i dinamically change the address and connect to the same service on a different machine? | http://www.jboss.org/index.html?module=bb&op=viewtopic&t=123180 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107212#4107212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107212 From do-not-reply at jboss.com Fri Nov 23 03:56:24 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 23 Nov 2007 03:56:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: IWAB0398E Error in generating WSDL from Java Message-ID: <33083220.1195808184232.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, your problem is that you're missing some jar(s) in your eclipse IDE. Try to find where owlJena.ExportConverter class should reside and try to install appropriate eclipse plugin(s). Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107252#4107252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107252 From do-not-reply at jboss.com Fri Nov 23 04:01:19 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Fri, 23 Nov 2007 04:01:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <13514620.1195808479251.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi again! Is this as simple as just creating JAX-B objects having normal annotations and then let one of the child objects take a DataHandler as argument? One more question. Where do all the attachments go if I use the Provider< SOAPMessage > implementation? Regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107253#4107253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107253 From do-not-reply at jboss.com Fri Nov 23 04:07:48 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 23 Nov 2007 04:07:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <32667646.1195808868984.JavaMail.jboss@colo-br-02.atl.jboss.com> "oskar.carlstedt" wrote : Ok! | | What I mean is when I have a DataHandler I can get an input stream to the reach the attachment data. But what if I have the following xml. How do I get my xml document: | | | | | | | | | | | | SOME TEXTUAL INFO 1 | | SOME TEXTUAL INFO 2 | | | | this part will go as MTOM attachment | | | | | | | | SOME TEXTUAL INFO 1 | | SOME TEXTUAL INFO 2 | | | | this part will go as MTOM attachment | | | | | | | | | | Are there two methods that are invoked in the implementing code. As I understand the DataHandler will give me the InputStream to the attachment (binary in above xml). But there is no way to get the rest of the xml, or is it? | | Regards | /Oskar | This shouldn't be the problem for you. The jbossws tools should generate something like this from WSDL document for you: public void method(List data) | { | ... | } | | public class Something | { | NormalXml normalXml | DataHandler binary | } Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107255#4107255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107255 From do-not-reply at jboss.com Fri Nov 23 04:32:03 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Fri, 23 Nov 2007 04:32:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Serialized object in web service Message-ID: <11292162.1195810323985.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Is it possible to use user defined objects(serialized) in java web service between client & server? I have created an object(shared between client & server) in server & returned to client. But I am not able to get the actual values in the client. When I try to get the values from the returned object, it is not showing its attributes. It compiles without error. Please let me know if you have any idea. Here is my object : public class ValueVO implements Serializable{ String a1 = null; String a2 = null; public ValueVO(String a1, String a2) { this.a1 = a1; this.a2 = a2; } public String getA1() { return this.a1; } public String getA2() { return this.a2; } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107263#4107263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107263 From do-not-reply at jboss.com Fri Nov 23 04:44:33 2007 From: do-not-reply at jboss.com (AndrewJavaMan) Date: Fri, 23 Nov 2007 04:44:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.1.GA Install Problem Message-ID: <22385152.1195811073306.JavaMail.jboss@colo-br-02.atl.jboss.com> Excellent Just what I was looking for, thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107266#4107266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107266 From do-not-reply at jboss.com Fri Nov 23 07:32:52 2007 From: do-not-reply at jboss.com (jalaja) Date: Fri, 23 Nov 2007 07:32:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - problem in generating a wsdl file with wstool Message-ID: <12442224.1195821172073.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi i am getting fallowing error...i have tryed a lot ...but i am not able to resolve. i am trying to execute from the command line....plz help me to resolve this problem. ERROR [main] (ToolsHelper.java:383) - Cannot load endpoint:TrivialService Exception in thread "main" org.jboss.ws.WSException: Endpoint TrivialService cannot be loaded at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:112) at org.jboss.ws.tools.WSTools.process(WSTools.java:143) at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) at org.jboss.ws.tools.WSTools.generate(WSTools.java:123) at org.jboss.ws.tools.WSTools.main(WSTools.java:58) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107322#4107322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107322 From do-not-reply at jboss.com Fri Nov 23 11:55:46 2007 From: do-not-reply at jboss.com (Renjit) Date: Fri, 23 Nov 2007 11:55:46 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: MTOM With JBOSSWS and WSCOMPILE Message-ID: <28250147.1195836946164.JavaMail.jboss@colo-br-02.atl.jboss.com> I too have come out with the same exception,and unable to get anything regrding to the same.Please help me out in this.Iam throwing an user defined exception from the EndPoint along with Remote Exception.Is thta the problem??Please help me out. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107399#4107399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107399 From do-not-reply at jboss.com Fri Nov 23 14:24:03 2007 From: do-not-reply at jboss.com (skrishnamur1) Date: Fri, 23 Nov 2007 14:24:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - compiling and testing the samples that come with jbosss 2.0. Message-ID: <11590812.1195845843268.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi , I cant seem to get the samples to compile and test . I hae installed jboss ws2.0.1 on jboss 4.2.0 EAP. Whats the command to be given via ant. I tried ant -buildfile build-jars-jaxws.xml, an it said succesful, but I dont know what exatly it i did or how i can test. thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107425#4107425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107425 From do-not-reply at jboss.com Fri Nov 23 17:34:07 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Nov 2007 17:34:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Getting DEBUG messages and server goes to hung state Message-ID: <11341262.1195857247819.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, I see the debug statements in 4.0.3. This means that the app server caught an exception and is now throwing another exception. Unfortunately, the exception stack trace does not get printed out until after this processing is done, so I cannot ask you to look for a stack trace - there is none yet. I know that there will be a lot of threads, the question is what are they doing? Try this. Take a thread dump, wait a minute, take another. Compare them. Look for threads stuck in application code, or doing anything other what waiting on input queues. Finally, this is the web services forum, not really the proper place for this question. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107444#4107444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107444 From do-not-reply at jboss.com Sat Nov 24 04:42:50 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Sat, 24 Nov 2007 04:42:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: compiling and testing the samples that come with jbosss Message-ID: <5817812.1195897370654.JavaMail.jboss@colo-br-02.atl.jboss.com> Simply running ant tests from the main directory of your binary distribution should work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107461#4107461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107461 From do-not-reply at jboss.com Sun Nov 25 12:11:48 2007 From: do-not-reply at jboss.com (gquintana) Date: Sun, 25 Nov 2007 12:11:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <13048151.1196010708529.JavaMail.jboss@colo-br-02.atl.jboss.com> Moreover, the WSProvide documentation is not sync'ed with JBossWS 2. Ant task package changed, it's org.jboss.wsf.spi.tools.ant.WSProvideTask instead of org.jboss.ws.tools.jaxws.ant.wsprovide: | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107598#4107598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107598 From do-not-reply at jboss.com Mon Nov 26 03:58:20 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Mon, 26 Nov 2007 03:58:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException JBossWSProviderFactoryImpl with J Message-ID: <21737756.1196067500541.JavaMail.jboss@colo-br-02.atl.jboss.com> I've just fixed the documentation. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107658#4107658 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107658 From do-not-reply at jboss.com Mon Nov 26 04:19:56 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Mon, 26 Nov 2007 04:19:56 -0500 (EST) Subject: [jbossws-users] [JBossWS] - javax.xml.soap.SOAPElement Message-ID: <16615019.1196068796794.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am having the below web service method in server. /** * Web service operation */ @WebMethod public String getObj(@WebParam(name = "v") Vector v) { System.out.println("obj value ::::::::::"+v.size()); return "hello"; } I am calling the above method from client as like below // .. initial setup Vector v = new Vector(); Vector v = new Vector(); v.add("v1"); v.add("v2"); wsServerPort.getObj(v); But I am getting the below error. getObj(javax.xml.soap.SOAPElement) in client.SampleWS cannot be applied to (java.util.Vector) SampleWS - server class name Server : Jboss 4.2.2 Netbeans : 5.5.1 Could you please help me on this. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107669#4107669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107669 From do-not-reply at jboss.com Mon Nov 26 06:28:03 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Mon, 26 Nov 2007 06:28:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jbossws-2.0.2 released Message-ID: <19233283.1196076483487.JavaMail.jboss@colo-br-02.atl.jboss.com> As of this post I am happy to anounce that jbossws-2.0.2.GA is released. This is a fully certified JAXWS web services implemenation. It runs on jboss-5.0.0, jboss-4.2.2, jboss-4.2.1, jboss-4.0.5 JAXWS brings to web services what EJB3 brings to EJB. With its greatly simplified programming model and functional enhancements it is desigend to take the place of previous JAX-RPC web service implementations. Details of how to download and install the new stack can be found in our new wiki http://jbws.dyndns.org/mediawiki/index.php/Main_Page To get started please have a look at the Quick Start and User Guide http://jbws.dyndns.org/mediawiki/index.php/Quick_Start http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide If you don't know it already, you'll be surprised how easy it is to do Web Services. I'd like to thank the team and the many contributors for all the hard work to make this release possible. Enjoy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107699#4107699 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107699 From do-not-reply at jboss.com Mon Nov 26 08:55:29 2007 From: do-not-reply at jboss.com (mikaeljl) Date: Mon, 26 Nov 2007 08:55:29 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How to disable HTTP session creation? Message-ID: <15306336.1196085329987.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! First of all, is an http session always created for each ws request? Second, how can I disable (or reconfigure timeout of) the http session object if it is implicitly created for each WS request? According to http://jira.jboss.com/jira/browse/JBWS-1179 a session was always created for each request but according to the checkin comments this was fixed with "Delay creation of HttpSession until it is actually used", so, what will actually trigger this http session to be created. Is it only created if I would try to get the http session from the MessageContext? I just want to make sure that I do not create a lot of http session objects in my app. I'm exposing web services that are completely stateless and I do not want to create an http session for each ws request (due to the high request rate). Regards /Mikael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107727#4107727 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107727 From do-not-reply at jboss.com Mon Nov 26 09:13:42 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Mon, 26 Nov 2007 09:13:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.soap.SOAPElement Message-ID: <13535626.1196086422449.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, problem with old version of JBoss. It works fine now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107735#4107735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107735 From do-not-reply at jboss.com Mon Nov 26 09:18:52 2007 From: do-not-reply at jboss.com (rashmi_yes) Date: Mon, 26 Nov 2007 09:18:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Interface as argument in java web service Message-ID: <29013066.1196086732840.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Is it possible to pass/return interface as an argument in web service calls? I want to pass/return an interface(will point to any of its sub class implementation) to the server for callback purpose. I tried & getting an exception saying that 'the interface does not have default constructor'. Is there any way or any other alternative ways to do this. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107738#4107738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107738 From do-not-reply at jboss.com Mon Nov 26 10:19:20 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Mon, 26 Nov 2007 10:19:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to disable HTTP session creation? Message-ID: <28215799.1196090360486.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | Is it only created if I would try to get the http session from the MessageContext? | yes View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107768#4107768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107768 From do-not-reply at jboss.com Mon Nov 26 12:57:31 2007 From: do-not-reply at jboss.com (isthisusernameavailable) Date: Mon, 26 Nov 2007 12:57:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <19298086.1196099851581.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : Hi, | | which version of JBossWS are you using? Just FYI there will be a new version of JBossWS 2.0.2 downloadable soon which is well tested on JBossAS 4.2.2. I suggest you to upgrade. | | Richard Hi Richard, I've upgraded to JBoss 4.2.2 and JbossWS 2.0.2, but I'm still seeing the same problem. Here's sample code that I'm using. @Remote | public interface IHelloWorld { | public String hello(); | } | | @Stateless | @Clustered(partition="DefaultPartition") | @WebService(serviceName="HelloWorld") | public class HelloWorld implements IHelloWorld { | @WebMethod | public String hello() { | return "hello, world"; | } | } I'm creating a simple jar file with these two classes in it. When I copy this jar file to my deploy directory in JBoss 4.2.1/JBossws 1.2.1, I see this message: WebService started: http://127.0.0.1:8080/HelloWorldService/HelloWorld When I deploy it to JBoss 4.2.2/JBossws 2.0.2, I do not see this line, and the web service is not started. Is there something I need to do to explicitly start the webservice in 4.2.2/2.0.2? Thanks, John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107839#4107839 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107839 From do-not-reply at jboss.com Mon Nov 26 14:49:34 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 26 Nov 2007 14:49:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <18894431.1196106574891.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi John, I tried your example and I was able to deploy it to JBossAS 4.2.2 using JBossWS 2.0.2. (but I removed @Clustered annotation, because I don't have cluster configured on my local machine.) I compiled your service classes using JBoss AS 4.2.2 classpath. Did you try to remove @Clustered annotation? Maybe it is causing your problems. Do you have your cluster environment configured properly? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107866#4107866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107866 From do-not-reply at jboss.com Mon Nov 26 14:53:00 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 26 Nov 2007 14:53:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <12700399.1196106780178.JavaMail.jboss@colo-br-02.atl.jboss.com> | ... | 20:43:03,655 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ | 20:43:04,665 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 | 20:43:04,975 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 | 20:43:04,996 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200711201921)] Started in 45s:236ms | 20:44:15,086 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer | 20:44:15,102 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=test2.jar,name=HelloWorld,service=EJB3 with dependencies: | 20:44:15,600 INFO [EJBContainer] STARTED EJB: org.jboss.test.ws.jaxws.jbws.HelloWorld ejbName: HelloWorld | 20:44:15,784 INFO [EJB3Deployer] Deployed: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/deploy/test2.jar/ | 20:44:16,001 INFO [DefaultEndpointRegistry] register: jboss.ws:context=test2,endpoint=HelloWorld | 20:44:19,366 INFO [WSDLFilePublisher] WSDL published to: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/data/wsdl/test2.jar/HelloWorld50713.wsdl | 20:44:19,606 INFO [TomcatDeployer] deploy, ctxPath=/test2, warUrl=.../tmp/deploy/test2.jar50712.war Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107868#4107868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107868 From do-not-reply at jboss.com Mon Nov 26 15:29:49 2007 From: do-not-reply at jboss.com (aazaroff) Date: Mon, 26 Nov 2007 15:29:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WSDL not autogenerating for WebServiceProvider Message-ID: <8586018.1196108989674.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to deploy a web service using the @WebServiceProvider annotation. I am trying to deploy a stateless session bean as a web service. My target platform is 4.0.5. The code is packaged in a simple jar file. Here is the code: | @Stateless | @Remote(PosDataServicesRemoteInterface.class) | @Local(PosDataServicesInterface.class) | @LocalBinding(jndiBinding = "/local/ejb3/PosDataServicesBean") | @RemoteBinding(jndiBinding = "/ejb3/PosDataServicesBean") | @WebServiceProvider | @ServiceMode(value = Service.Mode.MESSAGE) | public class PosDataServices implements PosDataServicesRemoteInterface, PosDataServicesInterface, Provider { | | private java.util.Properties properties; | private java.util.TreeSet dataSourceMap; | private org.apache.log4j.Logger logger; | | /** | * Creates a new instance of PosDataServices | */ | public PosDataServices() { | this.logger = org.apache.log4j.Logger.getLogger(this.getClass().getName()); | } | | public SOAPMessage invoke(SOAPMessage sourceDocument) { | return sourceDocument; | } | | } | Here are the results With the stock 1.0.3 sp1 stack there are no exceptions thrown and no service endpoints registered when using the http://localhost:8080/jbossws/services I then upgraded to the 2.0.2 stack and I get the following error during deployment: java.lang.IllegalStateException: Cannot obtain wsdl location for: {http://posdataservices.possystems/}PosDataServicesService After startup is complete I get the obligatory incomplete deployment message: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo at 85514b6f { url=file:/usr/local/appserver/jboss/jboss-4.0.5.GA/server/default/deploy/ws.jar } deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer] status: Deployment FAILED reason: Cannot obtain wsdl location for: {http://posdataservices.possystems/}PosDataServicesService state: FAILED watch: file:/usr/local/appserver/jboss/jboss-4.0.5.GA/server/default/deploy/ws.jar altDD: null lastDeployed: 1196103088795 lastModified: 1196103088000 mbeans: jboss.j2ee:jar=ws.jar,name=PosDataServices,service=EJB3 state: Started The odd thing is that using 2.0.2, the endpoint gets registered and I can see it in the list of deployed web services under http://localhost:8080/jbossws/services but when I click on the link for the WSDL it throws the same error as at deploy time and returns a message to the browser about an xml error (jaxb I think) that there is no root element. According to the docs the WSDL should autogenerate for me. The examples I have researched in the case of a provider all have hard WSDL files that are not autogenerated and use the location attribute of the @WebServiceProvider annotation. If autogeneration is not the case for a provider I believe I am to put it in the META-INF directory, correct? Also should I be deploying this in a war instead of a jar? What am I missing? One more thing to note. The EJB gets deployed in either case (1.0.3 and 2.0.2) and is available and usable as an EJB internally to applications in the container. I have not yet tested the remote interface for the EJB but I have no doubt it will probably work. Thanks in advance Andre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107880#4107880 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107880 From do-not-reply at jboss.com Mon Nov 26 23:37:46 2007 From: do-not-reply at jboss.com (mckeno) Date: Mon, 26 Nov 2007 23:37:46 -0500 (EST) Subject: [jbossws-users] [JBossWS] - returning array undefined in web service Message-ID: <22836159.1196138266643.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all I am having this problem, not sure whether it is related to jboss web service or the client site application: I am writing a web service inside EJB container: @Stateless @WebService(name = "Mojo", targetNamespace = "http://myservice.com/services", serviceName = "CoolService") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) public class MyWebService { @WebMethod @WebResult public int[] getNumber(@WebParam(name = "userName") String sth) { int[] number = new int[3]; number[0] = 7; number[1] = 2; number[2] = 3; log.info("ARRAY METHOD CALLED " + number.length); return number; } @WebMethod @WebResult public int getNum(int param) { int result = param + 2; return result ; } } The getNum() method works fine, but the getNumber() always return undefined result(I am calling the web service using Web Sevice Connector in Flash application). So I am wondering whether I need any specific annotation for the array returning methods? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107928#4107928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107928 From do-not-reply at jboss.com Mon Nov 26 23:43:47 2007 From: do-not-reply at jboss.com (mckeno) Date: Mon, 26 Nov 2007 23:43:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: returning array undefined in web service Message-ID: <21432152.1196138627340.JavaMail.jboss@colo-br-02.atl.jboss.com> The code looks messy, but I can't find the edit functionality in this forum ??!!?? so I did a re post.... ------------- Hi all I am having this problem, not sure whether it is related to jboss web service or the client site application: I am writing a web service inside EJB container: | @Stateless | @WebService(name = "Mojo", targetNamespace = "http://myservice.com/services", serviceName = "CoolService") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | public class MyWebService { | | @WebMethod | @WebResult | public int[] getNumber(@WebParam(name = "userName") String sth) { | int[] number = new int[3]; | number[0] = 7; | number[1] = 2; | number[2] = 3; | | log.info("ARRAY METHOD CALLED " + number.length); | return number; | } | | @WebMethod | @WebResult | public int getNum(int param) { | int result = param + 2; | return result ; | } | | } The getNum() method works fine, but the getNumber() always return undefined result(I am calling the web service using Web Sevice Connector in Flash application). So I am wondering whether I need any specific annotation for the array returning methods? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107929#4107929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107929 From do-not-reply at jboss.com Tue Nov 27 00:58:57 2007 From: do-not-reply at jboss.com (memema) Date: Tue, 27 Nov 2007 00:58:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot find service endpoint target Message-ID: <13477297.1196143137291.JavaMail.jboss@colo-br-02.atl.jboss.com> "whichever" wrote : Anyone home? Guys, I have been stuffing up one of my clients with jboss ejb3/jax-ws support. I asked them to upgrade to 4.2.2 because of @PreDestroy in sslb & then they say jax-ws is broken. Any news on when this will be fixed? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107938#4107938 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107938 From do-not-reply at jboss.com Tue Nov 27 06:07:34 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 27 Nov 2007 06:07:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSDL not autogenerating for WebServiceProvider Message-ID: <8034839.1196161654460.JavaMail.jboss@colo-br-02.atl.jboss.com> I updated http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Endpoint_Provider View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107999#4107999 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107999 From do-not-reply at jboss.com Tue Nov 27 10:52:00 2007 From: do-not-reply at jboss.com (kadlecp) Date: Tue, 27 Nov 2007 10:52:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: asynchronous webservice posible with jboss ? Message-ID: <21507882.1196178720553.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, according to my testing, oneway method does not return the thread of control to the calling application prior to executing the actual business method. I have read the spec, but please can somebody know answer these questions? 1. Is it possible to call oneway method in asynchronous manner? 2. I know that I can add "Async" suffix to the method and jbossws will call method in asynchronous manner, but I think that it's only simulation of asynchronous behaviour. Connection between client and server is hold until webservice method exists. Or am I wrong? I would like that client calls the webservice method and all connections are immediately closed. I use JBossWS-4.2.1.GA and JBossWS-2.0.0.GA Thank for reply Regards Pavel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108121#4108121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108121 From do-not-reply at jboss.com Tue Nov 27 11:18:05 2007 From: do-not-reply at jboss.com (dschlenk) Date: Tue, 27 Nov 2007 11:18:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <12600620.1196180285775.JavaMail.jboss@colo-br-02.atl.jboss.com> Trying to install on jboss 4 isn't working: | [root at portaldev jbossws-native-2.0.2.GA]# ant deploy-jboss405 | Buildfile: build.xml | | prepare: | | undeploy-jboss405: | [delete] Deleting 8 files from /opt/jboss-portal-ha-2.4.1/bin | [delete] Deleting 16 files from /opt/jboss-portal-ha-2.4.1/client | [delete] Deleting 5 files from /opt/jboss-portal-ha-2.4.1/server/all/lib | [delete] Deleting directory /opt/jboss-portal-ha-2.4.1/server/all/deploy/jbossws.sar | [delete] Deleting directory /opt/jboss-portal-ha-2.4.1/server/all/deploy/juddi-service.sar | [delete] Deleting 3 files from /opt/jboss-portal-ha-2.4.1/client | [delete] Deleting 3 files from /opt/jboss-portal-ha-2.4.1/server/all/lib | | deploy-jboss405-ejb3: | [unzip] Expanding: /root/jbossws-native-2.0.2.GA/lib/jbossws-core-scripts.zip into /opt/jboss-portal-ha-2.4.1/bin | [copy] Copying 18 files to /opt/jboss-portal-ha-2.4.1/client | [copy] Copying 1 file to /opt/jboss-portal-ha-2.4.1/lib | [copy] Copying 6 files to /opt/jboss-portal-ha-2.4.1/server/all/lib | [mkdir] Created dir: /opt/jboss-portal-ha-2.4.1/server/all/deploy/jbossws.sar | [unjar] Expanding: /root/jbossws-native-2.0.2.GA/lib/jbossws-native40.sar into /opt/jboss-portal-ha-2.4.1/server/all/deploy/jbossws.sar | [mkdir] Created dir: /opt/jboss-portal-ha-2.4.1/server/all/deploy/juddi-service.sar | [unzip] Expanding: /root/jbossws-native-2.0.2.GA/lib/juddi-service.sar into /opt/jboss-portal-ha-2.4.1/server/all/deploy/juddi-service.sar | [unzip] Expanding: /root/jbossws-native-2.0.2.GA/lib/jbossws-framework-scripts.zip into /opt/jboss-portal-ha-2.4.1/bin | [copy] Copying 3 files to /opt/jboss-portal-ha-2.4.1/client | [copy] Copying 3 files to /opt/jboss-portal-ha-2.4.1/server/all/lib | | deploy-jboss405-no-ejb3: | | BUILD FAILED | /root/jbossws-native-2.0.2.GA/build/build-deploy.xml:26: Could not create task or type of type: macro-setup-native40-no-ejb3. | | Ant could not find the task or a class this task relies upon. | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108132#4108132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108132 From do-not-reply at jboss.com Tue Nov 27 11:42:40 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 27 Nov 2007 11:42:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <22196507.1196181760435.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, the fix is simple, just replace with in file build-deploy.xml on line 26 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108142#4108142 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108142 From do-not-reply at jboss.com Tue Nov 27 11:51:57 2007 From: do-not-reply at jboss.com (dschlenk) Date: Tue, 27 Nov 2007 11:51:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <6615624.1196182317611.JavaMail.jboss@colo-br-02.atl.jboss.com> Unfortunately I get basically the same error with that fix applied: | BUILD FAILED | /root/jbossws-native-2.0.2.GA/build/build-deploy.xml:26: Could not create task or type of type: macro-setup-native405-no-ejb3. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108146#4108146 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108146 From do-not-reply at jboss.com Tue Nov 27 11:54:27 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 27 Nov 2007 11:54:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: asynchronous webservice posible with jboss ? Message-ID: <12730385.1196182467328.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Pavel, yes, you're right, oneway call is synchronous. (We're maintaining session HTTP headers when forced by user for example - one of reason). However you can always implement asynchronous oneway invocations. Just wrap you oneway calls to separate thread ;-) Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108150#4108150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108150 From do-not-reply at jboss.com Tue Nov 27 11:59:24 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 27 Nov 2007 11:59:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <20474603.1196182764128.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, and this: ? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108153#4108153 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108153 From do-not-reply at jboss.com Tue Nov 27 12:07:19 2007 From: do-not-reply at jboss.com (dschlenk) Date: Tue, 27 Nov 2007 12:07:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <14413050.1196183239167.JavaMail.jboss@colo-br-02.atl.jboss.com> That works! Thanks for the quick reply! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108157#4108157 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108157 From do-not-reply at jboss.com Tue Nov 27 16:41:36 2007 From: do-not-reply at jboss.com (mendaye) Date: Tue, 27 Nov 2007 16:41:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Question on Basic WS Authentication Message-ID: <29995044.1196199696751.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All, I have implemented JAX_WS web services using JBoss Web Service stack bundled with JBoss 4.2.2_GA. I have used EJB3.0 as service end point. I would like to extend basic authentication for the consumers. The user, encrypted password and roles for the applications are stored in the database. Can someone answer my questions below? 1. What do I need to do on the server side (EJB 3 service end point) in order to authenticate the consumer. In my case all the credential (user name, password, and roles) stored in DB. Point me document or example.. 2. What do I need to do on the consumer side? Pls give me example. 3. The application uses different encryption to encrypt password. How can I enforce the client to use the same encryption? Based on my requirement consumer can not send plain text password over the wire to the Jboss server. Thanks in advance for helping this out.. Surafel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108242#4108242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108242 From do-not-reply at jboss.com Tue Nov 27 16:57:54 2007 From: do-not-reply at jboss.com (davidkally) Date: Tue, 27 Nov 2007 16:57:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - redirect SOAP message request Message-ID: <1150129.1196200674493.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I just have wender if there is any possibility of changing the direction of the SOAP message to go to a proxy service (i.e. synapse) instead of its destination, however i need to do this without involving the client Application. Some thoughts: 1 - if i can change anything in the SOAP library? 2 - if i can intercept MessageContext (when it goes through the SOAP stack) and change the destination Address. ? I really need this to do some evaluation in my research Thanks in advance to your help Regards khaled View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108245#4108245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108245 From do-not-reply at jboss.com Tue Nov 27 18:29:24 2007 From: do-not-reply at jboss.com (isthisusernameavailable) Date: Tue, 27 Nov 2007 18:29:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <7489315.1196206164704.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, It turns out that in JBoss 4.2.2 I need to include the name of my .ear file in the web service URL. So, for example, in 4.2.1, I could use this URL: http://myhost:8080/HelloWorld/HelloWorld But in 4.2.2, the above URL will not work unless I change it to: http://myhost:8080/MyEar-HelloWorld/HelloWorld where I've deployed the service in MyEar.ear. I found this by digging into the jboss-4.2.2-GA/server/all/data/wsdl directory. Was this an intentional change to the JBoss-ws package? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108264#4108264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108264 From do-not-reply at jboss.com Tue Nov 27 23:33:52 2007 From: do-not-reply at jboss.com (jalaja) Date: Tue, 27 Nov 2007 23:33:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - [Fatal Error] :-1:-1: Premature end of file. Message-ID: <23927861.1196224432331.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all i am facing proble in jbossws .i am using jboss 4.0.5 and jdk 1.6 i am able to genearte soap message. but the problem with client ....i am gettting [Fatal Error] :-1:-1: Premature end of file .plz help me to resolve this issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108293#4108293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108293 From do-not-reply at jboss.com Wed Nov 28 03:50:32 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 28 Nov 2007 03:50:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Webservice not starting in AS 4.2.2 Message-ID: <12250742.1196239832342.JavaMail.jboss@colo-br-02.atl.jboss.com> As a reference on how the endpoint address is obtained, please take a look at: http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_do_I_know_what_endpoint_address_is_being_used.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108327#4108327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108327 From do-not-reply at jboss.com Wed Nov 28 04:09:41 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 04:09:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <1234663.1196240981537.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, you could implement your own client JAXWS handler (extending org.jboss.ws.core.jaxws.handler.GenericSOAPHandler). Put your handler on the beginning of the handler chain and set up addressing properties there: protected boolean handleOutbound(MessageContext msgContext) | { | | CommonMessageContext commonMsgContext = (CommonMessageContext)msgContext; | SOAPAddressingProperties addrProps = (SOAPAddressingProperties) | | // construct new addressing properties | commonMsgContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, addrPropsPointingToProxy); | | } Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108331#4108331 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108331 From do-not-reply at jboss.com Wed Nov 28 04:12:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 28 Nov 2007 04:12:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Cannot find service endpoint target Message-ID: <28610569.1196241156002.JavaMail.jboss@colo-br-02.atl.jboss.com> "memema" wrote : "whichever" wrote : Anyone home? | Guys, | | I have been stuffing up one of my clients with jboss ejb3/jax-ws support. I asked them to upgrade to 4.2.2 because of @PreDestroy in sslb & then they say jax-ws is broken. | | Any news on when this will be fixed? | | Thanks JBWS-1822 is currently scheduled for the 2.0.3 release that should be available on the 1st of February 2008. http://jira.jboss.com/jira/browse/JBWS?report=com.atlassian.jira.plugin.system.project:roadmap-panel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108332#4108332 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108332 From do-not-reply at jboss.com Wed Nov 28 04:30:12 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 04:30:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: [Fatal Error] :-1:-1: Premature end of file. Message-ID: <32991835.1196242212186.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Which JBossWS version are you talking about? We need more information on your issue, please provide more detailed description of your problem, such as sample code, log output, complete stack trace. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108340#4108340 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108340 From do-not-reply at jboss.com Wed Nov 28 05:51:44 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 28 Nov 2007 05:51:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: returning array undefined in web service Message-ID: <11839625.1196247104246.JavaMail.jboss@colo-br-02.atl.jboss.com> "mckeno" wrote : The code looks messy, but I can't find the edit functionality in this forum ??!!?? so I did a re post.... Sorry, users are not allowed to edit any post on the forum. anonymous wrote : Hi all I am having this problem, not sure whether it is related to jboss web service or the client site application: | | I am writing a web service inside EJB container: | | | @Stateless | | @WebService(name = "Mojo", targetNamespace = "http://myservice.com/services", serviceName = "CoolService") | | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | | public class MyWebService { | | | | @WebMethod | | @WebResult | | public int[] getNumber(@WebParam(name = "userName") String sth) { | | int[] number = new int[3]; | | number[0] = 7; | | number[1] = 2; | | number[2] = 3; | | | | log.info("ARRAY METHOD CALLED " + number.length); | | return number; | | } | | | | @WebMethod | | @WebResult | | public int getNum(int param) { | | int result = param + 2; | | return result ; | | } | | | | } | | The getNum() method works fine, but the getNumber() always return undefined result(I am calling the web service using Web Sevice Connector in Flash application). So I am wondering whether I need any specific annotation for the array returning methods? Please post here your configuration (version of JBoss & JBossWS) as long as the your wsdl. Did you try capturing the message being exchanged? does it contain the array's values? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108369#4108369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108369 From do-not-reply at jboss.com Wed Nov 28 06:50:32 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 28 Nov 2007 06:50:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question on Basic WS Authentication Message-ID: <29590735.1196250632478.JavaMail.jboss@colo-br-02.atl.jboss.com> I suggest you to start with this: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-WS_User_Guide#Secure_endpoints View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108402#4108402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108402 From do-not-reply at jboss.com Wed Nov 28 07:26:21 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 28 Nov 2007 07:26:21 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Dynamic no. of attachments using MTOM Message-ID: <32227072.1196252781333.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Thanks a lot! //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108428#4108428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108428 From do-not-reply at jboss.com Wed Nov 28 08:23:36 2007 From: do-not-reply at jboss.com (davidkally) Date: Wed, 28 Nov 2007 08:23:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <32762248.1196256216539.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, Thanks for the reply. what you seggests is very helpful, but as i understood i need to change the Client Application in order to add myhandler class to the handler chain, is it right? if it is so, this does not satisfy my requirments which is i do not have to chane anything in the client Application...! is there anyother way of doing this... ?? thanks for the help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108453#4108453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108453 From do-not-reply at jboss.com Wed Nov 28 08:49:52 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 08:49:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <9657631.1196257792721.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, yes, you're right, you would need to change the client configuration. I understood you can't change client code only, but anything else is good for you. Sorry for this misunderstanding. If you can't change client application at all then I have no suggestions for you ;-( Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108466#4108466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108466 From do-not-reply at jboss.com Wed Nov 28 09:44:58 2007 From: do-not-reply at jboss.com (davidkally) Date: Wed, 28 Nov 2007 09:44:58 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <18698794.1196261098771.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard again, I just need if you can give me please an Example of how i can // construct new addressing properties because i will try to intercept all the request go through the SOAP stack and add what you seggest to the messageContext before it go to the wire. ...! cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108495#4108495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108495 From do-not-reply at jboss.com Wed Nov 28 10:15:16 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 10:15:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <12240463.1196262916406.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, it's pretty simple: import org.jboss.ws.extensions.addressing.AddressingClientUtil; | ... | AddressingProperties addressingProps = AddressingClientUtil | .createAnonymousProps(addressingAction, endpointAddress); Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108524#4108524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108524 From do-not-reply at jboss.com Wed Nov 28 11:00:46 2007 From: do-not-reply at jboss.com (davidkally) Date: Wed, 28 Nov 2007 11:00:46 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: redirect SOAP message request Message-ID: <4297778.1196265646859.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard, that is really helpful Cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108551#4108551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108551 From do-not-reply at jboss.com Wed Nov 28 11:12:24 2007 From: do-not-reply at jboss.com (mwkohout) Date: Wed, 28 Nov 2007 11:12:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Soap service returning complex objects(Such as hashmaps) inc Message-ID: <11566877.1196266344443.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All. I've got a soap service(which is also a seam component) with a method that returns a hashmap. Through debugging I know that my method is returning a valid set of java objects but from client code( Ruby and Java) all I'm getting is a null value. Other methods that return simple strings or return an array of Longs work perfectly. as far as my platform I'm running on jboss 4.2.1GA with Seam 2.0.0GA. here's the relevant server code. The first method is one that works incorrectly and the bottom two work: | @WebService() | @SOAPBinding( | parameterStyle=SOAPBinding.ParameterStyle.BARE, style=SOAPBinding.Style.RPC) | //@SOAPBinding(style = SOAPBinding.Style.RPC) | @Name("StudyServiceWS") | @Scope(value=ScopeType.STATELESS) | @Stateless | public class StudyService implements StudyServiceRemote{ | | //this is a test method that currently returns a null to the client | @WebMethod | public HashMap getHashMap( String key, String value) | { | HashMap m = new HashMap(); | m.put( key, value); | return m; | } | //this method works | @WebMethod() | public String echo( @WebParam(name = "echo")String echo) | { | return echo; | } | //this also works | @WebMethod | public Long[] getStudyIDs( String x500) | { | Long[] returnIDs = null; | UserHome userHome = (UserHome)Component.getInstance( | UserHome.class, true); | User user = userHome.findByInternetID(x500); | | ...... | | return returnIDs; | } | | generated wsdl: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any ideas? Any suggestion or 4 letter word would be welcome. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108561#4108561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108561 From do-not-reply at jboss.com Wed Nov 28 11:30:17 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 28 Nov 2007 11:30:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <25625600.1196267417186.JavaMail.jboss@colo-br-02.atl.jboss.com> The real problem is that the distribution is not QAed against that container http://jbws.dyndns.org:8280/hudson/view/Distribution%20Tests/ Richard, could you please add that? cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108573#4108573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108573 From do-not-reply at jboss.com Wed Nov 28 11:35:19 2007 From: do-not-reply at jboss.com (fheldt) Date: Wed, 28 Nov 2007 11:35:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question about webservice returning array with nillable= Message-ID: <13044267.1196267719211.JavaMail.jboss@colo-br-02.atl.jboss.com> I changed the wsdl by hand and it works now, but i also investigated this topic a little further. No matter what i change the return type to, JBossWS always generates the same result (and that's a bug imho): | @WebMethod | public Integer[] GetSteps(String ugid) { | ... | } | | or | | @WebMethod | public int[] GetSteps(String ugid) { | ... | } | give both | ... | | | | | | | | ... | | | | | in the int[] case i would suppose nillable="false", else nillable="true", right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108575#4108575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108575 From do-not-reply at jboss.com Wed Nov 28 11:47:30 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 11:47:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-2.0.2 released Message-ID: <29741331.1196268450964.JavaMail.jboss@colo-br-02.atl.jboss.com> Sure, http://jira.jboss.org/jira/browse/JBWS-1914 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108589#4108589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108589 From do-not-reply at jboss.com Wed Nov 28 11:49:41 2007 From: do-not-reply at jboss.com (camateusno) Date: Wed, 28 Nov 2007 11:49:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How could see the endpoint the SOAP headers built by a objec Message-ID: <13801426.1196268581814.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Im have a problem with SOAP headers, because i dont know how see it in endpoint. Explain: first im consume de webservice, and i see this and more: a class SEI: QMWISeSoap a class that provide constructors: ObjectFactory The server requires two soap headers, these are build by ObjectFactory, and return a object JAXBElement: /** * Create an instance of {@link JAXBElement }{@code <}{@link TrustHeader }{@code >}} * */ @XmlElementDecl(namespace = "http://questionmark.com/QMWISe/", name = "Trust") public JAXBElement createTrust(TrustHeader value) { return new JAXBElement(_Trust_QNAME, TrustHeader.class, null, value); } Now, in a class QMWISeWebService is the call to SEI: protected QMWISeWebService() { try { if (endPoint == null){ endPoint = new QMWISe().getQMWISeSoap(); } } catch (Exception ex) { ex.printStackTrace(); } And by example i have a class that inherit from QMWISeWebService : public class ParticipantData extends QMWISeWebService { /** * This method processes a Participant Name and a Password and checks * whether there is a participant with the Participant Name, and if so * whether the Password is theirs. * * @param participantID * @param password * @param status * @param participantName */ public void checkParticipant(String participantName, String password, Holder status, Holder participantID) { endPoint.checkParticipant(participantName, password, status, participantID); } The problem is that i dont know how connect the JAXBElement returned by ObjectFactory with the SEI class. Part of SEI class is: @WebService(name = "QMWISeSoap", targetNamespace = "http://questionmark.com/QMWISe/") public interface QMWISeSoap { /** * This method provides information about the QMWISe software that is installed, including the version of the software that is installed, which build of the software is installed and a statement of Question Mark's rights under the license agreement. * * @return * returns com.questionmark.qmwise.Version */ @WebMethod(operationName = "GetAbout", action = "http://questionmark.com/QMWISe/GetAbout") @WebResult(name = "GetAboutResult", targetNamespace = "http://questionmark.com/QMWISe/") @RequestWrapper(localName = "GetAbout", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAbout") @ResponseWrapper(localName = "GetAboutResponse", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAboutResponse") public Version getAbout(); And none method of SEI have a parameter that contain data for the SOAP header. perhaps this is a trivial problem, but im need help. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108591#4108591 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108591 From do-not-reply at jboss.com Wed Nov 28 11:56:44 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 28 Nov 2007 11:56:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Question about webservice returning array with nillable= Message-ID: <27278604.1196269004718.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, yes, you're right: http://jira.jboss.org/jira/browse/JBWS-1915 Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108594#4108594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108594 From do-not-reply at jboss.com Wed Nov 28 14:26:11 2007 From: do-not-reply at jboss.com (camateusno) Date: Wed, 28 Nov 2007 14:26:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - endPoint and SOAP headers, how to work this? Message-ID: <18672005.1196277971896.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Im have a problem with SOAP headers, because i dont know how see it in endpoint. Explain: first im consume de webservice, and i see this and more: a class SEI: QMWISeSoap a class that provide constructors: ObjectFactory The server requires two soap headers, these are build by ObjectFactory, and return a object JAXBElement: /** * Create an instance of {@link JAXBElement }{@code <}{@link TrustHeader }{@code >}} * */ @XmlElementDecl(namespace = "http://questionmark.com/QMWISe/", name = "Trust") public JAXBElement createTrust(TrustHeader value) { return new JAXBElement(_Trust_QNAME, TrustHeader.class, null, value); } Now, in a class QMWISeWebService is the call to SEI: protected QMWISeWebService() { try { if (endPoint == null){ endPoint = new QMWISe().getQMWISeSoap(); } } catch (Exception ex) { ex.printStackTrace(); } And by example i have a class that inherit from QMWISeWebService : public class ParticipantData extends QMWISeWebService { /** * This method processes a Participant Name and a Password and checks * whether there is a participant with the Participant Name, and if so * whether the Password is theirs. * * @param participantID * @param password * @param status * @param participantName */ public void checkParticipant(String participantName, String password, Holder status, Holder participantID) { endPoint.checkParticipant(participantName, password, status, participantID); } The problem is that i dont know how connect the JAXBElement returned by ObjectFactory with the SEI class. Part of SEI class is: @WebService(name = "QMWISeSoap", targetNamespace = "http://questionmark.com/QMWISe/") public interface QMWISeSoap { /** * This method provides information about the QMWISe software that is installed, including the version of the software that is installed, which build of the software is installed and a statement of Question Mark's rights under the license agreement. * * @return * returns com.questionmark.qmwise.Version */ @WebMethod(operationName = "GetAbout", action = "http://questionmark.com/QMWISe/GetAbout") @WebResult(name = "GetAboutResult", targetNamespace = "http://questionmark.com/QMWISe/") @RequestWrapper(localName = "GetAbout", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAbout") @ResponseWrapper(localName = "GetAboutResponse", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.GetAboutResponse") public Version getAbout(); And none method of SEI have a parameter that contain data for the SOAP header. perhaps this is a trivial problem, but im need help. thanks. What is the mechanism?, the objectFactory provide the JAXBElement, and what to do with that?, What can I do so that the information finally reaches the envelope of soap?, thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108655#4108655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108655 From do-not-reply at jboss.com Wed Nov 28 15:05:23 2007 From: do-not-reply at jboss.com (mendaye) Date: Wed, 28 Nov 2007 15:05:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <21033574.1196280323239.JavaMail.jboss@colo-br-02.atl.jboss.com> I came across similar issue before and I think I used Document/Literal binding to resolve it. You can try by using the following SOAPBinding... @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108667#4108667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108667 From do-not-reply at jboss.com Wed Nov 28 15:54:02 2007 From: do-not-reply at jboss.com (r_q_d) Date: Wed, 28 Nov 2007 15:54:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: SessionBean as WebService - again complex data structure Message-ID: <11584940.1196283242105.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, CarstenRudat, Did you make this work? I got the same problem. I used JBoss4.2.2.GA, jbossws-native-2.0.2.GA. JDK1.5, no lucky. I searched all posts related to "Cannot obtain java type mapping for", still find no working solution for using complex data structures. Any help would be greatly appreciated. Quande. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108678#4108678 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108678 From do-not-reply at jboss.com Wed Nov 28 16:21:17 2007 From: do-not-reply at jboss.com (method_ben) Date: Wed, 28 Nov 2007 16:21:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Java Client Application using Stub with WS-Security Message-ID: <32752721.1196284877685.JavaMail.jboss@colo-br-02.atl.jboss.com> I have some problems to call methods from my web service. I use WS-Security to secure my web service. All necessary files (jboss-wsse-server.xml,jboss-wsse-client.xml, wsse.keystore, wsse.truststore) are in my WAR file. My stubs are generated by wsconsume. I have made a java application where I put my stub generated stub. This application is not deployed in JBoss. It's a simple java application with a "main". Main.java : import java.io.File; import java.net.MalformedURLException; import java.net.URL; import javax.naming.NamingException; import javax.xml.namespace.QName; import org.jboss.ws.core.StubExt; import com.client.*; public static void main(String[] args) throws MalformedURLException, NamingException { URL url = new URL("http://localhost:8080/test/Test?wsdl"); QName qName = new QName("rrr", "TestService"); TestService service = new TestService(url,qName); Test ws = service.getPort(Test.class); ((StubExt) ws).setSecurityConfig(new File("etc/jboss-wsse-client.xml").toURI().toURL().toExternalForm()); ((StubExt) ws).setConfigName("Standard WSSecurity Client"); ws.hello("Benoit"); // doesnt work ! } When I execute it, I get that : Exception in thread "main" javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) at org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(ClientImpl.java:160) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:297) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) at $Proxy14.hello(Unknown Source) at com.main.MainTest.main(MainTest.java:51) Caused by: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleOutbound(WSSecurityDispatcher.java:314) at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutboundSecurity(WSSecurityHandler.java:95) at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleOutbound(WSSecurityHandlerClient.java:45) at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) ... 7 more Anyone knows how I can resolve my problem ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108685#4108685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108685 From do-not-reply at jboss.com Wed Nov 28 18:17:50 2007 From: do-not-reply at jboss.com (mwkohout) Date: Wed, 28 Nov 2007 18:17:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <1796373.1196291870194.JavaMail.jboss@colo-br-02.atl.jboss.com> at least in my instance I get the same result as before. btw, I'm running the version javaws that comes default with jboss 4.2.1GA. I don't suppose this annotation change fixed your issue because you were on the new version of jbossws? I suppose the next step is to see if it's a parsing error or just a bad response by capturing the envelope in my log. huh. this is the call that would return a hashmap with one key/value pair in it. To my untrained eyes there isn't anything in the response. | 17:12:18,874 DEBUG [SOAPContentElement] ----------------------------------- | 17:12:18,874 DEBUG [SOAPContentElement] Transitioning from OBJECT_VALID to XML_VALID | 17:12:18,874 DEBUG [ObjectContent] getXMLFragment from Object [xmlType={http://webService.core.ictr.umn.edu/}hashMap,javaType=class java.util.HashMap] | 17:12:18,874 DEBUG [JAXBSerializer] serialize: [xmlName=return,xmlType={http://webService.core.ictr.umn.edu/}hashMap] | 17:12:18,874 DEBUG [JAXBSerializer] serialized: | 17:12:18,874 DEBUG [ObjectContent] xmlFragment: [source=] | 17:12:18,874 DEBUG [SOAPContentElement] ----------------------------------- | 17:12:18,875 TRACE [MessageTrace] Outgoing Response Message | | | 6 | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108715#4108715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108715 From do-not-reply at jboss.com Wed Nov 28 23:03:30 2007 From: do-not-reply at jboss.com (mckeno) Date: Wed, 28 Nov 2007 23:03:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: returning array undefined in web service Message-ID: <1200894.1196309010758.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Alessio, Here are some more details: The wsdl schema: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The web service class in EJB container | @Stateless | @WebService(name = "Mojo", targetNamespace = "http://xxx/yyy/services", serviceName = "MyService") | @WebContext(contextRoot="/myService") | @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | public class MyWebService { | | @SuppressWarnings("unused") | private Logger log = Logger.getLogger(this.getClass()); | | @WebMethod | @WebResult(name = "numbers") | public int[] getNumber(@WebParam(name = "userName") String sth) { | int[] number = new int[3]; | number[0] = 7; | number[1] = 2; | number[2] = 3; | System.out.println("Get Number call"); | log.info("ARRAY METHOD CALLED " + number.length); | return number; | } | } JBoss version : [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440) JbossWS: I think i used the one came with the Jboss server, not sure how to check its version... I did use soapUI to capture the request and respone and it works ok: request: | | | | | 3 | | | response: | | | | 7 | 2 | 3 | | | Only that when it is called from the Flash application(flash 7, using WebService Connector) then the results always undefined(non array result works ok in flash). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108757#4108757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108757 From do-not-reply at jboss.com Thu Nov 29 03:27:26 2007 From: do-not-reply at jboss.com (thejavafreak) Date: Thu, 29 Nov 2007 03:27:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Evaluating JBossWS Message-ID: <1535277.1196324846880.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, Currently I'm evaluating JBossWS to be used in our next project. I have two fundamental questions regarding JBossWS. 1. Can we use JBossWS under JDK 1.4? Since our company policy don't let us to use JDK 1.5 yet. 2. Can we embed JBossWS in our apps and deploy it to other appserver other than JBoss? That's it for now. Thanks for the help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108786#4108786 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108786 From do-not-reply at jboss.com Thu Nov 29 03:36:45 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 29 Nov 2007 03:36:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Evaluating JBossWS Message-ID: <32993922.1196325405388.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, 1.) Latest JBossWS version (2.x) can't be used on JDK 1.4 environment. 2.) This could be possible. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108787#4108787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108787 From do-not-reply at jboss.com Thu Nov 29 04:15:06 2007 From: do-not-reply at jboss.com (thejavafreak) Date: Thu, 29 Nov 2007 04:15:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Evaluating JBossWS Message-ID: <31135581.1196327706610.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard, We might as well use JBossWS 1.x instead. Cheers, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108798#4108798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108798 From do-not-reply at jboss.com Thu Nov 29 04:24:05 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 04:24:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <4289070.1196328245869.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you set up the keystore/truststore references in your environment? | System.setProperty("org.jboss.ws.wsse.keyStore", "resources/interop/nov2007/wsse/shared/META-INF/alice-sign_enc.jks"); | System.setProperty("org.jboss.ws.wsse.trustStore", "resources/interop/nov2007/wsse/shared/META-INF/wsse10.truststore"); | System.setProperty("org.jboss.ws.wsse.keyStorePassword", "password"); | System.setProperty("org.jboss.ws.wsse.trustStorePassword", "password"); | System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks"); | System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks"); | If you still get errors, please post here your logs with the error details. anonymous wrote : | Exception in thread "main" javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(ClientImpl.java:160) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:297) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy14.hello(Unknown Source) | at com.main.MainTest.main(MainTest.java:51) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleOutbound(WSSecurityDispatcher.java:314) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutboundSecurity(WSSecurityHandler.java:95) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleOutbound(WSSecurityHandlerClient.java:45) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 7 more | | Anyone knows how I can resolve my problem ? | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108801#4108801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108801 From do-not-reply at jboss.com Thu Nov 29 04:30:25 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 04:30:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: returning array undefined in web service Message-ID: <27269277.1196328625145.JavaMail.jboss@colo-br-02.atl.jboss.com> "mckeno" wrote : | | | | | | | | | 7 | | 2 | | 3 | | | | | | | This shows the service is running fine, you have the array's value in the response that actually goes on the wire. Thus this is an issue with you Flash application that could probably have problems parsing this kind of response. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108802#4108802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108802 From do-not-reply at jboss.com Thu Nov 29 05:26:18 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 05:26:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How could see the endpoint the SOAP headers built by a o Message-ID: <15623507.1196331978812.JavaMail.jboss@colo-br-02.atl.jboss.com> First of all take a look at the org.jboss.test.ws.jaxws.samples.webparam sample in the binary distribution. You'll find an example using custom soap header. Did you code the wsdl first? In that case you should need something like this in the operation/input element: | | If you're developing starting from java classes, JBossWS will do it for you. Usually you shouldn't need to use the JAXBElements directly, parameters going to the header are dealt the same way as common ones in your service implementation class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108824#4108824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108824 From do-not-reply at jboss.com Thu Nov 29 05:28:34 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 05:28:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: endPoint and SOAP headers, how to work this? Message-ID: <12568682.1196332114773.JavaMail.jboss@colo-br-02.atl.jboss.com> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108591#4108591 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108826#4108826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108826 From do-not-reply at jboss.com Thu Nov 29 06:07:21 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 06:07:21 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <19022330.1196334441781.JavaMail.jboss@colo-br-02.atl.jboss.com> This is basically a JAXB bug https://jaxb.dev.java.net/issues/show_bug.cgi?id=268. The workaround you can use it to wrap your map into another class. This class has to be annotated with @XmlAccessorType(XmlAccessType.FIELD) since the bug prevents you from adding @XmlElement to your map field. | @XmlAccessorType(XmlAccessType.FIELD) | public class MyMap { | | protected HashMap realMap; | | public HashMap getRealMap() { | if (realMap==null) { | realMap = new HashMap(); | } | return realMap; | } | } | | ... | | @WebMethod | public MyMap getHashMap( String key, String value) { | ... | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108835#4108835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108835 From do-not-reply at jboss.com Thu Nov 29 07:18:18 2007 From: do-not-reply at jboss.com (stefansauer) Date: Thu, 29 Nov 2007 07:18:18 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS with JBoss 4.2.0 and Axis 1.4 don't work with WS Message-ID: <3956552.1196338698846.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I get the same error you got already in August. I am using Axis2 1.3 as a client and JBoss 4.2.0 GA as the server. Verifying the signature works fine but after this I get the NullPointerException in the WSSecurityDispatcher as noted in the stacktrace from iantonijevic at 07.Aug. Did one of you find a solution to this problem? Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108857#4108857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108857 From do-not-reply at jboss.com Thu Nov 29 09:22:49 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 09:22:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <28641151.1196346169571.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried your suggestion : package com.main; import java.io.File; import java.net.MalformedURLException; import java.net.URL; import javax.naming.NamingException; import javax.xml.namespace.QName; import javax.xml.rpc.Stub; import org.jboss.ws.core.StubExt; import com.client.*; public class MainTest { public static void main(String[] args) throws MalformedURLException, NamingException { System.setProperty("org.jboss.ws.wsse.keyStore", "etc/wsse.keystore"); System.setProperty("org.jboss.ws.wsse.trustStore", "etc/wsse.truststore"); System.setProperty("org.jboss.ws.wsse.keyStorePassword", "mypass"); System.setProperty("org.jboss.ws.wsse.trustStorePassword", "mypass"); System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks"); System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks"); URL url = new URL("http://127.0.0.1:8080/test/Test?wsdl"); QName qName = new QName("rrr", "TestService"); TestService service = new TestService(url,qName); Test ws = service.getPort(Test.class); ((StubExt) ws).setSecurityConfig(new File("etc/jboss-wsse-client.xml").toURI().toURL().toExternalForm()); ((StubExt) ws).setConfigName("Standard WSSecurity Client"); ws.hello("Benoit"); // doesnt work ! } } jboss-wwse-client.xml : Generate my keystore and my truststore with this command line : keytool -genkey -alias wsse -keyalg RSA -keypass mypass -storepass mypass -keystore c:/wsse.keystore keytool -export -alias wsse -storepass mypass -file c:/server.cer -keystore c:/wsse.keystore keytool -import -v -trustcacerts -alias wsse -file c:/server.cer -keystore c:/wsse.truststore -keypass mypass -storepass mypass and I still get this error : Exception in thread "main" javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) at org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(ClientImpl.java:160) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:297) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) at $Proxy14.hello(Unknown Source) at com.main.MainTest.main(MainTest.java:35) Caused by: org.jboss.ws.core.CommonSOAPFaultException: An internal WS-Security error occurred. See log for details at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleOutbound(WSSecurityDispatcher.java:314) at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutboundSecurity(WSSecurityHandler.java:95) at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleOutbound(WSSecurityHandlerClient.java:45) at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) ... 7 more server.log (jboss_folder/server/default/log): 2007-11-29 09:20:58,342 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test 2007-11-29 09:20:58,342 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 2007-11-29 09:20:58,451 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test 2007-11-29 09:20:58,451 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 2007-11-29 09:20:58,545 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test 2007-11-29 09:20:58,545 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 My setup : jboss-4.2.2.GA jbossws-2.0.2.GA JDK 6 update 3 Thank you very much for your help ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108888#4108888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108888 From do-not-reply at jboss.com Thu Nov 29 09:24:55 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 09:24:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <16299133.1196346295175.JavaMail.jboss@colo-br-02.atl.jboss.com> sorry, I did a bad cut and paste, jboss-wsse-client.xml: View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108889#4108889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108889 From do-not-reply at jboss.com Thu Nov 29 09:28:50 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 09:28:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <27003653.1196346530843.JavaMail.jboss@colo-br-02.atl.jboss.com> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108892#4108892 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108892 From do-not-reply at jboss.com Thu Nov 29 09:31:06 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 09:31:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <3723253.1196346666555.JavaMail.jboss@colo-br-02.atl.jboss.com> I have some problems to paste my jboss-wsse-client.xml but i use this example : http://wiki.jboss.org/wiki/Wiki.jsp?page=WSSecuritySignEncryptExample View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108893#4108893 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108893 From do-not-reply at jboss.com Thu Nov 29 10:14:08 2007 From: do-not-reply at jboss.com (bidd) Date: Thu, 29 Nov 2007 10:14:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS 2.0.2, com.sun.management.jmxremote and Java 6 Message-ID: <20545994.1196349248176.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running JBoss 4.2.2-GA and am having trouble getting JConsole working under Java 6. I saw this JIRA http://jira.jboss.com/jira/browse/JBWS-1800?page=all which indicates there was a problem and it's fixed in JBossWS 4.0.2. I downloaded 2.0.2, deployed it into my JBoss 4.2.2 and from the console output it appears to have been successful. 29-11-07 14:43:52,860 INFO main [org.jboss.wsf.stack.jbws.NativeServerConfig] JBoss Web Services - Native | 29-11-07 14:43:52,860 INFO main [org.jboss.wsf.stack.jbws.NativeServerConfig] jbossws-native-2.0.2.GA (build=200711261155) | In my run.bat I set the following set JAVA_OPTS=%JAVA_OPTS% -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl | set JAVA_OPTS=%$JAVA_OPTS% -Djboss.platform.mbeanserver | set JAVA_OPTS=%$JAVA_OPTS% -Dcom.sun.management.jmxremote | Unfortunately I get the exception shown below. I don't get it if I remove the entries from run.bat. Have I missed something in upgrading to 2.0.2 or have I found another problem? java.lang.NullPointerException | at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.generatWebDeployment(WebAppGeneratorDeploymentAspect.java:105) | at org.jboss.wsf.framework.deployment.WebAppGeneratorDeploymentAspect.create(WebAppGeneratorDeploymentAspect.java:84) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115) | at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy33.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | 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 $Proxy10.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.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | 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.GeneratedMethodAccessor10.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | 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:597) | 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:508) | at java.lang.Thread.run(Thread.java:619) | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108923#4108923 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108923 From do-not-reply at jboss.com Thu Nov 29 10:14:42 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 10:14:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <2670251.1196349282325.JavaMail.jboss@colo-br-02.atl.jboss.com> "method_ben" wrote : | server.log (jboss_folder/server/default/log): | | 2007-11-29 09:20:58,342 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-29 09:20:58,342 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | 2007-11-29 09:20:58,451 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-29 09:20:58,451 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | 2007-11-29 09:20:58,545 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-29 09:20:58,545 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | You're supposed to find an exception in your log, since the code you're running is something like | try { | //some stuff generating the exception | } | catch (WSSecurityException e) | { | if (e.isInternalError()) | log.error("Internal error occured handling outbound message:", e); //this is the interesting log we need | else if(log.isDebugEnabled()) log.debug("Returning error to sender: " + e.getMessage()); | | throw convertToFault(e); //this creates the message you get on the client | } | Please use the preview button before submitting messages on the forum; also wrap code snippets into [ code ] [ /code ] tags. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108924#4108924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108924 From do-not-reply at jboss.com Thu Nov 29 10:50:38 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 29 Nov 2007 10:50:38 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 2.0.2, com.sun.management.jmxremote and Java 6 Message-ID: <2516974.1196351438396.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Replace %$JAVA_OPTS% with %JAVA_OPTS% in your bat file. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108947#4108947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108947 From do-not-reply at jboss.com Thu Nov 29 11:02:20 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 11:02:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <26501295.1196352140332.JavaMail.jboss@colo-br-02.atl.jboss.com> I did not find an exception in my server log file and my code (web service)doesnt contain an try/catch(WSSecurityException e) clause like you said. I think that the exception is thrown by a referenced lib. In my classpath of my Eclipse projects (my client project and my web service project), I include all libs of jboss_folder/client and jboss_folder/lib/endorsed. My web service class : | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import org.jboss.ws.annotation.EndpointConfig; | | @WebService(targetNamespace = "rrr",serviceName = "TestService", wsdlLocation="WEB-INF/wsdl/TestService.wsdl") | @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED, use=SOAPBinding.Use.LITERAL, style=SOAPBinding.Style.DOCUMENT) | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | public class Test | { | @WebMethod | @WebResult(name="result",targetNamespace="rrr") | public String allo(@WebParam(name="name", targetNamespace="rrr")String name) | { | System.out.println("Allo " + name); | return name; | } | | @WebMethod | @WebResult(name="result",targetNamespace="rrr") | public String hello(@WebParam(name="name", targetNamespace="rrr")String name) | { | System.out.println("Hello " + name); | return name; | } | } | Contains of my war file : META-INF\MANIFEST.MF WEB-INF\jboss-wsse-client.xml WEB-INF\jboss-wsse-server.xml WEB-INF\web.xml WEB-INF\wsse.keystore WEB-INF\wsse.truststore WEB-INF\classes\com\Test.Class WEB-INF\wsdl\TestService.wsdl I have no idea where the exception is logged ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108954#4108954 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108954 From do-not-reply at jboss.com Thu Nov 29 11:07:47 2007 From: do-not-reply at jboss.com (bidd) Date: Thu, 29 Nov 2007 11:07:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 2.0.2, com.sun.management.jmxremote and Java 6 Message-ID: <32206389.1196352467486.JavaMail.jboss@colo-br-02.atl.jboss.com> lol....thanks for the quick reply. I've fixed the silly typo and get much further than before. However, in JConsole only the MBeans tabs is enabled. The Overview, Memory, Threads, Classes and VM Summary tabs are disabled and not viewable. If I change my run.bat to specify com.sun.management.jmxremote only then we're back to Jboss not starting properly again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108958#4108958 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108958 From do-not-reply at jboss.com Thu Nov 29 11:17:53 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 11:17:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <25773220.1196353074106.JavaMail.jboss@colo-br-02.atl.jboss.com> I think that the server never receive the web method call ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108963#4108963 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108963 From do-not-reply at jboss.com Thu Nov 29 11:31:33 2007 From: do-not-reply at jboss.com (mwkohout) Date: Thu, 29 Nov 2007 11:31:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <31503325.1196353893766.JavaMail.jboss@colo-br-02.atl.jboss.com> This absolutely works so long as it's a simple Map with simple objects(like strings) as key/values. But this seems to break down when you've got nested maps. here's a "simple" map with just a string key and string value. | | | 6 | | | | | | | mike | kohout | | | | | | | here's the results from a call that returns an list of Maps/MyMaps, where each of the Maps/MyMaps has a property that also contains a list of MyMaps. So it's an ArrayList where each MyMap can contain a nested ArrayList. It's still returning an empty response. | | | 5 | | | | | | | | Any other suggestions to make this work? I'm using maps and lists to avoid making DTOs. Maybe at this point it would just be easier to make the damn DTOs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108968#4108968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108968 From do-not-reply at jboss.com Thu Nov 29 11:44:03 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 11:44:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <12050890.1196354643103.JavaMail.jboss@colo-br-02.atl.jboss.com> "method_ben" wrote : I did not find an exception in my server log file and my code (web service)doesnt contain an try/catch(WSSecurityException e) clause like you said. | Of course, the code I wrote is a snippet from the JBossWS stack just before your exception is created... anonymous wrote : I have no idea where the exception is logged ! It should be in the server logs, try checking your jboss-log4j conf to ensure everything from the org.jboss.ws category is shown in the server.log View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108974#4108974 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108974 From do-not-reply at jboss.com Thu Nov 29 11:53:34 2007 From: do-not-reply at jboss.com (camateusno) Date: Thu, 29 Nov 2007 11:53:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How could see the endpoint the SOAP headers built by a o Message-ID: <14218146.1196355215025.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks alessio, but perhaps that step, simple and intuitive, I still do not understand. I show you my strategy, and maybe you can give me another hand: perhaps quite usual: I have - a SEI class: QMWISeSoap - a class that extend of class javax.xml.ws.Service, and provide the getter (public QMWISeSoap getQMWISeSoap()) for QMWISeSoap: QMWISe - a class that provide a instance of QMWISeSoap named endPoint, in its constructor call QMWISe.getQMWISeSoap() and assign it to endPoint : QMWISeWebService - a package that contain classes that extend of QMWISeWebService, each class of this package has a methods that call a corresponding method in the SEI class, using the attribute endPoint inherited from QMWISeWebService. I begin using this classes, really wrappers of SEI, and operate perfectly. A new requirement consist in aggregate security data in SOAP headers. After that consume the webservice, i see other class that i dont know how fits in what was already running. This class is named ObjectFactory. This class i suppose after of study it, is a factory of objects that represent the requests. Also provide two attributes (securityHeader and trustHeader) and its getters methods and setters methods. These attributes are precisely the data that would need for SOAP headers. in this way: private final static QName _Trust_QNAME = new QName("http://questionmark.com/QMWISe/", "Trust"); private final static QName _Security_QNAME = new QName("http://questionmark.com/QMWISe/", "Security"); methods: /** * Create an instance of {@link JAXBElement }{@code <}{@link SecurityHeader }{@code >}} * */ @XmlElementDecl(namespace = "http://questionmark.com/QMWISe/", name = "Security") public JAXBElement createSecurity(SecurityHeader value) { return new JAXBElement(_Security_QNAME, SecurityHeader.class, null, value); } My confusion is that i dont understand how relate this facility of ObjectFactory with the work that had operated. First i do this: By example ParticipantData.createParticipant(Participant participant) where ParticipantData is a wrapper of part of SEI. then, i created a object participant without using the objectfactory facility, since the Participant class has its constructor and work. thinking in integrate the ObjectFactory, then now i created the instance of Participant using the ObjectFactory, in this way: participant = factory.createParticipant(), and i setting the securityheader with ObjectFactory. And i call the method of ParticipantData named createParticipant passing it the object Participant builded with the ObjectFactory. Lastly i discovered that in the objectfactory there are similar methods to the methods of my wrapper classes. Then i prove calling this methods and not the methods of wrappers. Any clarification is greatly appreciated, thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108980#4108980 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108980 From do-not-reply at jboss.com Thu Nov 29 11:55:30 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 11:55:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <23862690.1196355330753.JavaMail.jboss@colo-br-02.atl.jboss.com> "mwkohout" wrote : This absolutely works so long as it's a simple Map with simple objects(like strings) as key/values. But this seems to break down when you've got nested maps. | ... | I'm using maps and lists to avoid making DTOs. Maybe at this point it would just be easier to make the damn DTOs. Well, I'm sorry I have no other suggestion; considering the workaround is practically to create a wrap for each map... and you have a map-hell there ;-) ... I would use the DTOs, at least this keep your model clearer. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108981#4108981 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108981 From do-not-reply at jboss.com Thu Nov 29 12:00:32 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 12:00:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <14486738.1196355632407.JavaMail.jboss@colo-br-02.atl.jboss.com> I enabled JBossWS message tracing in jboss-log4j.xml : | | | | | I restarted my server and I still get no log in my server log file ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108982#4108982 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108982 From do-not-reply at jboss.com Thu Nov 29 12:05:35 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Thu, 29 Nov 2007 12:05:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <32137307.1196355935929.JavaMail.jboss@colo-br-02.atl.jboss.com> "method_ben" wrote : I enabled JBossWS message tracing in jboss-log4j.xml : | | | | | | | | | | | | | | I restarted my server and I still get no log in my server log file ! I said org.jboss.ws not org.jboss.ws.core ;-) The class your trying to get logs from is org.jboss.ws.extensions.security.WSSecurityDispatcher View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108986#4108986 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108986 From do-not-reply at jboss.com Thu Nov 29 12:11:21 2007 From: do-not-reply at jboss.com (mwkohout) Date: Thu, 29 Nov 2007 12:11:21 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap service returning complex objects(Such as hashmaps) Message-ID: <14812610.1196356281248.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeah, I think you're right....thanks for your help by the way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108988#4108988 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108988 From do-not-reply at jboss.com Thu Nov 29 12:18:03 2007 From: do-not-reply at jboss.com (method_ben) Date: Thu, 29 Nov 2007 12:18:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <19604411.1196356683364.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried with org.jboss.ws and I still get no log... As I said, I think that the problem is at client side and not at the server side. It is possible that the problem comes from the generated stub client which are generated with wsconsume ? On the other hand, I tried to set a wrong path for my keystore with the System.setproperty command and I still get the same error !? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108993#4108993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108993 From do-not-reply at jboss.com Thu Nov 29 12:58:51 2007 From: do-not-reply at jboss.com (camateusno) Date: Thu, 29 Nov 2007 12:58:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How could see the endpoint the SOAP headers built by a o Message-ID: <7765758.1196359131207.JavaMail.jboss@colo-br-02.atl.jboss.com> The class objectFactory provide methods for create objects how: CreateParticipant. in the SEI there is this: /** * This method creates a participant from the participant information supplied and returns the Participant ID of the new participant. If the Participant Name does not already exist in the database, the new participant is created. Any group specified will have the new participant as a member if the group exists in the database. Otherwise the group will be ignored. * * @param participant * @return * returns java.lang.String */ @WebMethod(operationName = "CreateParticipant", action = "http://questionmark.com/QMWISe/CreateParticipant") @WebResult(name = "Participant_ID", targetNamespace = "http://questionmark.com/QMWISe/") @RequestWrapper(localName = "CreateParticipant", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.CreateParticipant") @ResponseWrapper(localName = "CreateParticipantResponse", targetNamespace = "http://questionmark.com/QMWISe/", className = "com.questionmark.qmwise.CreateParticipantResponse") public String createParticipant( @WebParam(name = "Participant", targetNamespace = "http://questionmark.com/QMWISe/") Participant participant); By example, What should I do for create a participant?, Can I should use the objectfactory? Or just call the method described in SEI. Yes so, as I recognize the headers offered by the factory in a call to SEI? For any aid thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109012#4109012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109012 From do-not-reply at jboss.com Thu Nov 29 13:16:29 2007 From: do-not-reply at jboss.com (jfrankman) Date: Thu, 29 Nov 2007 13:16:29 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Easiest Way to Consume Web Services from JBoss 4.0.5 EJB3 Message-ID: <20974859.1196360189623.JavaMail.jboss@colo-br-02.atl.jboss.com> I need to consume a webservice from my Action class in my Seam web application deployed to JBoss 4.0.5. Does wsconsume work with version 4.0.5? I tried XFire, but its jar conflicts with Jboss' ejb3all.jar. Is Axis still the easiest way to consume a web service, or are the facilities built into EJB3 better? My search for documentation has been spotty. I can find documentation, but lack a complete how-to for consumeing webservices using JBoss EJB3. Any links would be appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109025#4109025 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109025 From do-not-reply at jboss.com Thu Nov 29 16:42:55 2007 From: do-not-reply at jboss.com (klease) Date: Thu, 29 Nov 2007 16:42:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jbossws-native-2.0.2.GA doesn't deploy out of the box on jbo Message-ID: <12486065.1196372575918.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a 4.2.1.GA with jbossws-2.0.1.GA installed. I ran undeploy-jboss42 in the 2.0.1.GA installation directory. Then I ran deploy-jboss421 in the jbossws-2.0.2.GA installation directory. Tried to start jboss and got lots of ClassNotFound errors. After hunting around a bit, I see that in macros-deploy-native.xml the macro-deploy-native421 definition contains this. | | | | But there is no jbossws-jboss421.jar jar in the 2.0.2.GA installation zip. I dropped in the jbossws-jboss42.jar from the 2.0.2.GA installation into server/default/lib and also client/lib. This deploys without errors and runs all the 2.0.2 test cases. Are there any known incompatibilities with this jar and the new jbossws version? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109077#4109077 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109077 From do-not-reply at jboss.com Fri Nov 30 00:13:42 2007 From: do-not-reply at jboss.com (thejavafreak) Date: Fri, 30 Nov 2007 00:13:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Can not find samples for 2.0.2.GA Message-ID: <30526330.1196399622345.JavaMail.jboss@colo-br-02.atl.jboss.com> Dear all, Is there any samples like 1.2.1.GA? I could not find this in the distribution package. Or can I use the samples of 1.2.1.GA for a kickstart though I use 2.0.2.GA? thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109135#4109135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109135 From do-not-reply at jboss.com Fri Nov 30 03:44:27 2007 From: do-not-reply at jboss.com (jalaja) Date: Fri, 30 Nov 2007 03:44:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSS problem in JBossWS 1.0.4 sample Message-ID: <4031628.1196412267518.JavaMail.jboss@colo-br-02.atl.jboss.com> hi I have to use hanlers ....so can you tell me how to use handlers in jbossws View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109176#4109176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109176 From do-not-reply at jboss.com Fri Nov 30 03:52:44 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 30 Nov 2007 03:52:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Easiest Way to Consume Web Services from JBoss 4.0.5 EJB Message-ID: <3672739.1196412764116.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, you can use wsconsume with JBoss 4.0.5, however you have to upgrade the JBossWS it ships with the latest release. This should cover all you need to know to use wsconsume: http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools In particular, read the Client paragraph. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109179#4109179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109179 From do-not-reply at jboss.com Fri Nov 30 04:10:19 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 30 Nov 2007 04:10:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSS problem in JBossWS 1.0.4 sample Message-ID: <8812711.1196413820026.JavaMail.jboss@colo-br-02.atl.jboss.com> First of all I suggest you to upgrade to the latest jbossws version. Then read here: http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Handler_Framework Also take a look at the org.jboss.test.ws.jaxws.samples.handlerchain samples. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109185#4109185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109185 From do-not-reply at jboss.com Fri Nov 30 04:16:11 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 30 Nov 2007 04:16:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Can not find samples for 2.0.2.GA Message-ID: <7911598.1196414171215.JavaMail.jboss@colo-br-02.atl.jboss.com> You should find samples in the jbossws-native-2.0.2.GA/tests/java directory in the binary distribution archive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109187#4109187 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109187 From do-not-reply at jboss.com Fri Nov 30 04:43:48 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 30 Nov 2007 04:43:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 2.0.2, com.sun.management.jmxremote and Java 6 Message-ID: <16531845.1196415828526.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I think this is the question for JBoss JMX forum now. Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109194#4109194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109194 From do-not-reply at jboss.com Fri Nov 30 05:01:30 2007 From: do-not-reply at jboss.com (jmaenen) Date: Fri, 30 Nov 2007 05:01:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - MTOM interop issue with WSE 3.0 Message-ID: <588338.1196416890912.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I'm trying to create an MTOM client ( .net 2.0 ) within C# and WSE 3.0 for the XOP webservices provided by the jbossws 2.0.2 samples. It looks like the server respons wel to the request but the client has an issue with the result : Client found response content type of 'multipart/related; MTOM enable on the client Off course this is an MS issue but i wonder if more people did encounter this issue and did found an workaround ? regards below the SOAP repsons {"Client found response content type of 'multipart/related; type=\"application/xop+xml\"; start=\"\"; \tstart-info=\"text/xml\"; \tboundary=\"----=_Part_48_22086523.1196410132767\"', but expected 'text/xml'.\r\n The request failed with the error message:\r\n--\r\n\r\n ------=_Part_48_22086523.1196410132767\r\n Content-Type: application/xop+xml; type=\"text/xml\"\r\n Content-Transfer-Encoding: 8bit\r\n Content-ID: \r\n\r\n \r\n ------=_Part_48_22086523.1196410132767\r\n Content-Type: text/plain\r\n Content-Transfer-Encoding: binary\r\n Content-Id: \r\n\r\n Server data\r\n ------=_Part_48_22086523.1196410132767--\r\n\r\n--."} View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109200#4109200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109200 From do-not-reply at jboss.com Fri Nov 30 05:14:56 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 30 Nov 2007 05:14:56 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws-native-2.0.2.GA doesn't deploy out of the box on Message-ID: <251760.1196417696161.JavaMail.jboss@colo-br-02.atl.jboss.com> I created an issue for this: http://jira.jboss.org/jira/browse/JBWS-1924 Thank you for signaling this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109205#4109205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109205 From do-not-reply at jboss.com Fri Nov 30 05:27:50 2007 From: do-not-reply at jboss.com (tpawankumar) Date: Fri, 30 Nov 2007 05:27:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to set headers in JAX-WS Message-ID: <9266210.1196418470138.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, My web service has a method which accepts two parameters one xmlstring and the other is header class which has two instance variables username and password. when i used wsconsume on my wsdl to generate client side artifacts,it has generated one the method with one parameter. Is there any way so that i can pass header object to my web service? Any help would be appreciated. Thanks in Advance. Thanks, Pavan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109213#4109213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109213 From do-not-reply at jboss.com Fri Nov 30 05:54:15 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 30 Nov 2007 05:54:15 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Big problem with WebXMLRewriterImpl.java rename Message-ID: <8440206.1196420055520.JavaMail.jboss@colo-br-02.atl.jboss.com> In WindowsNT systems, your modification in these lines doesn't work: | FileInputStream stream = new FileInputStream(webXML); | String modifyProperty = | (String)dep.getProperty("org.jboss.ws.webapp.modify"); | | // JBWS 1762 | if ((modifyProperty == null) || (!modifyProperty.equals("false"))) | { | String suffix = | (String)dep.getProperty("org.jboss.ws.webapp.descriptor.suffix"); | if (suffix == null) | suffix = ".org"; | File orgWebXML = new File(webXML.getCanonicalPath() + suffix); | | // Rename the web.xml | if (webXML.renameTo(orgWebXML) == false) | throw new WebServiceException("Cannot rename web.xml: " | + orgWebXML); | | stream = new FileInputStream(orgWebXML); | } | As you open a FileInputStream over webXML, it can't be renamed to orgWebXML because the stream is open in this point, and Windows blocks te rename operation. It can be solved as below: | // WindowsNT correction | FileInputStream stream = null; | String modifyProperty = | (String)dep.getProperty("org.jboss.ws.webapp.modify"); | | // JBWS 1762 | if ((modifyProperty == null) || (!modifyProperty.equals("false"))) | { | String suffix = | (String)dep.getProperty("org.jboss.ws.webapp.descriptor.suffix"); | if (suffix == null) | suffix = ".org"; | File orgWebXML = new File(webXML.getCanonicalPath() + suffix); | | // Rename the web.xml | if (webXML.renameTo(orgWebXML) == false) | throw new WebServiceException("Cannot rename web.xml: " | + orgWebXML); | | stream = new FileInputStream(orgWebXML); | } else { | stream = new FileInputStream(webXML); | } | | Cheers, Leonardo Penczek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109230#4109230 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109230 From do-not-reply at jboss.com Fri Nov 30 05:57:50 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 30 Nov 2007 05:57:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Big problem with WebXMLRewriterImpl.java rename Message-ID: <15192876.1196420270398.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the report. You analysis is correct, however that arguable piece of code shouldn't exist in recent versions of the container integration. What version of jbossws are you deploying? What target container? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109234#4109234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109234 From do-not-reply at jboss.com Fri Nov 30 05:58:43 2007 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 30 Nov 2007 05:58:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <20358576.1196420323998.JavaMail.jboss@colo-br-02.atl.jboss.com> "method_ben" wrote : I tried with org.jboss.ws and I still get no log... | | As I said, I think that the problem is at client side and not at the server side. | | It is possible that the problem comes from the generated stub client which are generated with wsconsume ? | | On the other hand, I tried to set a wrong path for my keystore with the System.setproperty command and I still get the same error !? The jbossws code I wrote above is executed both on client and server side. If your not comfortable with the logs, try capturing the network trafic to understand whether a soap message actually goes to the wire. Then search again in the logs on the right side. Beware of the log4j conf on the client side too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109235#4109235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109235 From do-not-reply at jboss.com Fri Nov 30 07:58:17 2007 From: do-not-reply at jboss.com (webjavier) Date: Fri, 30 Nov 2007 07:58:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - [SchemaTypeCreator] JAX-RPC does not allow collection types Message-ID: <20060301.1196427497434.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a serious problem when i deploy a web service in JBoss 4.0.5 when i invoke the service i can't access to SSSSS222 beacuse in my client don't be created that class SSSSS2222.... I mapped schemas to java with jaxb2.0.5. I'm using: JAXB 2.0 .5 JSR181 | My schema is: | | | | | | | | | | | | | | | | | | | | | | | | | | Error: 13:24:23,271 WARN [SchemaTypeCreator] JAX-RPC does not allow collection types skipping: com.java.SSSSS111.SSSSS222 A part of wsdl generated is: | | *****error comparing with schema | | My web service is: | @WebMethod(operationName="WS1") | @WebResult(name = "Resp", | targetNamespace = "http://www.example.com/resp") | @RequestWrapper(localName = "validacionWS", | targetNamespace = "http://www.example.com/pet", | className = "com.java.ValidacionWS") | @ResponseWrapper(localName = "validacionFWSResponse", | targetNamespace = "http://www.example.com/resp", | className = "com.java.Respuesta") | public Respuesta validacionPeticion(@WebParam(name = "peticion", | targetNamespace = "http://www.example.com/pet") | Peticion peticion)throws MyException, | Please, help me... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109284#4109284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109284 From do-not-reply at jboss.com Fri Nov 30 08:26:32 2007 From: do-not-reply at jboss.com (mendaye) Date: Fri, 30 Nov 2007 08:26:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Authorization Failure using secure end point Message-ID: <22733610.1196429192340.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello All: I follow the user guide on JBOSSWS2.0.GA to create basic authentication for the web services created using secure EJB3.0 end-point. However, I am getting authorization error when the consumer request the service. Can some one help me to resolve this issue? Below is consumer, statless EJB, service end-point interface and exception thrown... Consumer Code: | import java.net.URL; | import java.util.ArrayList; | import java.util.Vector; | import java.util.HashMap; | | import javax.xml.namespace.QName; | import javax.xml.ws.Service; | import javax.xml.ws.BindingProvider; | | import com.panduit.acmnms.db.Device; | import com.panduit.acmnms.db.DeviceType; | import com.panduit.pvng.service.api.db.interfaces.PVNGDeviceEndPoint; | import com.panduit.pvng.service.api.db.ejb.TestDeviceBean; | import com.panduit.acmnms.beans.*; | | | public class WsClientTest { | | | static void printDeviceObj(DeviceTypeObject devTypeObj){ | System.out.println("----------------------------------------------------"); | System.out.println("deviceType = "+ devTypeObj.getDeviceType()); | System.out.println("deviceType = "+ devTypeObj.getDescription()); | System.out.println("deviceType = "+ devTypeObj.getNumberPorts()); | System.out.println("deviceType = "+ devTypeObj.getNumRackSpaces()); | System.out.println("deviceType = "+ devTypeObj.getVendorId()); | System.out.println("deviceType = "+ devTypeObj.getIconFilePath()); | System.out.println("deviceType = "+ devTypeObj.getIsactive()); | System.out.println("deviceType = "+ devTypeObj.getIsdualPort()); | System.out.println("deviceType = "+ devTypeObj.getDeviceCategoryDesc()); | System.out.println("deviceType = "+ devTypeObj.getIsSwitchType()); | System.out.println("deviceType = "+ devTypeObj.getPartNumber()); | System.out.println("deviceType = "+ devTypeObj.getPortGroupCount()); | System.out.println("----------------------------------------------------"); | | } | | /** | * @param args | */ | public static void main(String[] args) throws Exception { | // TODO Auto-generated method stub | //URL url = new URL("http://localhost:8080/api-service-1/PVNGDevice?wsdl"); | URL url = new URL("http://127.0.0.1:8080/pvng-api-service-1.0/TestDeviceBean?wsdl"); | QName qname = new QName("http://api.service.pvng.panduit.com/deviceaccess", "DeviceService"); | Service service = Service.create(url, qname); | | | PVNGDeviceEndPoint deviceEndPoint = (PVNGDeviceEndPoint) service.getPort(PVNGDeviceEndPoint.class); | //This was added to support basic Authentications | BindingProvider bp = (BindingProvider)deviceEndPoint; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog"); | | DeviceTypeObject deviceTypObj = (DeviceTypeObject) deviceEndPoint.getSingleDeviceType(1); | if( deviceTypObj != null ){ | System.out.println(" ***** Device Type when ID is 1"); | WsClientTest.printDeviceObj( deviceTypObj); | } | | | ArrayList deviceWsObjs = deviceEndPoint.getAllExistingDeviceTypes(); | if( deviceWsObjs != null && deviceWsObjs.size() > 0){ | System.out.println("****** All Device Type data"); | for( int i = 0; i < deviceWsObjs.size(); i++ ){ | WsClientTest.printDeviceObj((DeviceTypeObject)deviceWsObjs.get(i)); | } | } | } | } | | | EJB service end point code: | | package com.panduit.pvng.service.api.db.ejb; | import java.util.ArrayList; | | import com.panduit.acmnms.beans.DeviceTypeObject; | import com.panduit.acmnms.db.Device; | import com.panduit.acmnms.db.DeviceType; | import com.panduit.pvng.service.api.db.dao.PVNGAPIDeviceDAO; | import com.panduit.pvng.service.api.db.interfaces.TestDevice; | import com.panduit.pvng.service.exception.PVNGAPIException; | | import javax.annotation.Resource; | import javax.annotation.security.DeclareRoles; | import javax.annotation.security.RolesAllowed; | import javax.annotation.security.DeclareRoles; | import javax.ejb.Remote; | import javax.ejb.Stateless; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.WebMethod; | import javax.jws.soap.SOAPBinding; | import javax.xml.ws.WebServiceContext; | | import org.jboss.annotation.ejb.RemoteBinding; | import org.jboss.annotation.security.SecurityDomain; | | @Stateless | @SecurityDomain("JBossWS") | //@DeclareRoles("friend") | @RolesAllowed("friend") | @Remote(TestDevice.class) | @RemoteBinding(jndiBinding="ejb3/TestDevice") | @WebService(name = "PVNGDeviceEndPoint", targetNamespace = "http://api.service.pvng.panduit.com/deviceaccess", serviceName = "DeviceService") | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL) | public class TestDeviceBean implements TestDevice{ | | | @WebMethod(operationName = "getAllExistingDeviceTypes") | public ArrayList getAllDevicesTypes() throws PVNGAPIException{ | PVNGAPIDeviceDAO loPVNGAPIDeviceDAO = new PVNGAPIDeviceDAO(); | // call the business method in DAO class | ArrayList lalPortInfo = loPVNGAPIDeviceDAO.getAllDeviceTypes(); | // Return the information back to the calling program | return lalPortInfo; | } | | | @WebMethod(operationName = "getSingleDeviceType") | public DeviceTypeObject getDeviceType(@WebParam (name="DeviceTypeID") int deviceTypeId) throws PVNGAPIException{ | PVNGAPIDeviceDAO loPVNGAPIDeviceDAO = new PVNGAPIDeviceDAO(); | // call the business method in DAO class | DeviceTypeObject deviceTypeObj = loPVNGAPIDeviceDAO.getDeviceTypeById(deviceTypeId); | // Return the information back to the calling program | System.out.println(" **** EJB Called and ArrayList for Device Type name :"+ deviceTypeObj.getDescription()); | return deviceTypeObj; | } | } | | Service End Point Interface: | package com.panduit.pvng.service.api.db.interfaces; | | import java.rmi.Remote; | import java.rmi.RemoteException; | import java.util.ArrayList; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import com.panduit.acmnms.beans.DeviceTypeObject; | import com.panduit.pvng.service.exception.PVNGAPIException; | | @WebService(name = "PVNGDeviceEndPoint", targetNamespace = "http://api.service.pvng.panduit.com/deviceaccess", serviceName = "DeviceService") | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL) | | public interface PVNGDeviceEndPoint extends Remote { | @WebMethod(operationName = "getSingleDeviceType") | public DeviceTypeObject getSingleDeviceType(@WebParam (name="DeviceTypeID", partName="DeviceTypeID") int deviceTypeId) throws RemoteException, PVNGAPIException; | //public ArrayList getAllDevicesTypes() throws PVNGAPIException; | @WebMethod(operationName = "getAllExistingDeviceTypes") | public ArrayList getAllExistingDeviceTypes() throws RemoteException, PVNGAPIException; | } | | Here is the exception thrown when consumer request the service. | [java] DEBUG [main] (MessageContextAssociation.java:75) - popMessageContext | : org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 17918f0 (Thread main) | [java] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Aut | horization failure | [java] at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultExce | ption(SOAPFaultHelperJAXWS.java:69) | [java] at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFault | Exception(SOAP11BindingJAXWS.java:109) | [java] at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(Com | monSOAPBinding.java:553) | [java] at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | [java] at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.j | ava:243) | [java] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy | .java:164) | [java] at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy | .java:150) | [java] at $Proxy13.getSingleDeviceType(Unknown Source) | [java] at ejb.WsClientTest.main(WsClientTest.java:70) | [java] Java Result: 1 | I checked security data for JBossWS in login-config.xml, jbossws-user.properties and jbossws-role.properties. I don't see any problem, all of them are correct. I am not sure what is going on here... Help Help.. Thanks, Surafel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109303#4109303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109303 From do-not-reply at jboss.com Fri Nov 30 08:47:00 2007 From: do-not-reply at jboss.com (penczek) Date: Fri, 30 Nov 2007 08:47:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Big problem with WebXMLRewriterImpl.java rename Message-ID: <14052028.1196430420158.JavaMail.jboss@colo-br-02.atl.jboss.com> My versions: JbossAS 4.0.5 JbossWS 2.0.2.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109314#4109314 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109314 From do-not-reply at jboss.com Fri Nov 30 08:51:28 2007 From: do-not-reply at jboss.com (Thief9) Date: Fri, 30 Nov 2007 08:51:28 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Big problem with WebXMLRewriterImpl.java rename Message-ID: <27485147.1196430688768.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem with web.xml rename. Running JbossWS 2.0.2GA on Jboss 4.0.5 (no EJB3) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109320#4109320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109320 From do-not-reply at jboss.com Fri Nov 30 09:29:53 2007 From: do-not-reply at jboss.com (method_ben) Date: Fri, 30 Nov 2007 09:29:53 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Java Client Application using Stub with WS-Security Message-ID: <22627445.1196432993767.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, I enabled the log on the client and I turned on the debug option. Finally, I found my error. My target namespace ("rrrr") is the cause of my problem. I changed my namespace to another pattern like "urn:com:test" and everything works now. But, when I remove the VM argument : -Dlog4j.configuration=file:log4j.properties ... I get an error. Client side : | | Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:72) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy14.hello(Unknown Source) | at com.main.MainTest.main(MainTest.java:34) | server side : | | 2007-11-30 09:27:08,733 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:08,733 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | 2007-11-30 09:27:08,858 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:08,858 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | 2007-11-30 09:27:08,952 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleWSDLRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:08,952 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] WSDL request, using host: 127.0.0.1 | 2007-11-30 09:27:11,233 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] doPost: /test/Test | 2007-11-30 09:27:11,248 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] handleRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 1b99628 (Thread http-127.0.0.1-8080-1) | 2007-11-30 09:27:11,248 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] BEGIN handleRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=UTF-8] | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: POST | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={urn:com:myca:si}TestService,port={urn:com:myca:si}TestPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [WSSecurity Handler] | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Enter: handleIn BoundMessage | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.extensions.security.SecurityStore] loadStore: file:/C:/servers/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5956test-exp.war/WEB-INF/wsse.keystore | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.extensions.security.SecurityStore] loadStore: file:/C:/servers/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5956test-exp.war/WEB-INF/wsse.truststore | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to DOM_VALID | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to DOM_VALID | 2007-11-30 09:27:11,248 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-11-30 09:27:11,280 WARN [org.apache.xml.security.signature.Reference] Verification failed for URI "#element-1-1196432830499-23083996" | 2007-11-30 09:27:11,280 INFO [org.apache.xml.security.signature.Reference] Verification successful for URI "#timestamp" | 2007-11-30 09:27:11,280 ERROR [org.jboss.ws.extensions.security.WSSecurityDispatcher] Internal error occured handling inbound message: | org.jboss.ws.extensions.security.FailedCheckException: Signature is invalid. | at org.jboss.ws.extensions.security.SignatureVerificationOperation.process(SignatureVerificationOperation.java:59) | at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:123) | at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:185) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:147) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | 2007-11-30 09:27:11,280 ERROR [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Exception during handler processing | org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Exit: handleIn BoundMessage with status: false | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.MessageContextJAXWS] Begin response processing | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 1b99628 (Thread http-127.0.0.1-8080-1) | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 9042c8 (Thread http-127.0.0.1-8080-1) | 2007-11-30 09:27:11,280 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class javax.xml.ws.WebServiceException | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: PRE | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: ENDPOINT | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callFaultHandlerChain: POST | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Enter: handleOutBoundFault | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Exit: handleOutBoundFault with status: true | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] closeHandlerChain | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] close | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-11-30 09:27:11,280 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:414) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:273) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:190) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:105) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:177) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class javax.xml.ws.WebServiceException | 2007-11-30 09:27:11,280 DEBUG [org.jboss.wsf.stack.jbws.RequestHandlerImpl] END handleRequest: jboss.ws:context=test,endpoint=Test | 2007-11-30 09:27:11,280 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 9042c8 (Thread http-127.0.0.1-8080-1) | 2007-11-30 09:27:33,931 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass | 2007-11-30 09:27:33,931 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass | 2007-11-30 09:27:33,931 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass | 2007-11-30 09:27:33,931 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass | | Why it doesnt recognize my signature when I remove my VM argument ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109339#4109339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109339 From do-not-reply at jboss.com Fri Nov 30 10:34:01 2007 From: do-not-reply at jboss.com (kalai_p@yahoo.com) Date: Fri, 30 Nov 2007 10:34:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Jboss web service and Websphere Client Access Message-ID: <28333661.1196436841541.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using a webservice provided by a client of ours running in jboss 4.2.1(Recently migrated from JBoss 4.2). Before the migration I was able to access the webservice from my client generated by IBM WSDL2Java tool in RAD 7.0. But now when I access the webservice, I am getting a nullpointer error in my client side where they get soapbody out of the message. When I analysed, I found RAD sends the soap message without spaces and line breaks between tags. Eg: This fails. But if the same message is sent with spaces between tags, it works fine.(Tested using SoapUI) Is there any setting we have to put in JBoss to avoid this error. Thanks Kalai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109355#4109355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109355 From do-not-reply at jboss.com Fri Nov 30 10:43:35 2007 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 30 Nov 2007 10:43:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Jboss web service and Websphere Client Access Message-ID: <28139439.1196437415214.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, is there a stacktrace you could post (so we could analyze it)? Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109359#4109359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109359 From do-not-reply at jboss.com Fri Nov 30 12:09:27 2007 From: do-not-reply at jboss.com (kalai_p@yahoo.com) Date: Fri, 30 Nov 2007 12:09:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Jboss web service and Websphere Client Access Message-ID: <26477680.1196442567120.JavaMail.jboss@colo-br-02.atl.jboss.com> Richard, It happens when when you get soapbody out of the message in the application code in the server side. In the client side I get env:Server java.lang.NullPointerException Thanks Kalai "richard.opalka at jboss.com" wrote : Hi, | | is there a stacktrace you could post (so we could analyze it)? | | Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109393#4109393 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109393 From do-not-reply at jboss.com Fri Nov 30 12:33:13 2007 From: do-not-reply at jboss.com (camateusno) Date: Fri, 30 Nov 2007 12:33:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to set headers in JAX-WS Message-ID: <3096829.1196443993384.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi friend, i have the same problem and i think that the jbossws do it a bad parse to some documents WSDL. If you know something thereon, i thank you very much, for several days working on it... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109400#4109400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109400 From do-not-reply at jboss.com Fri Nov 30 14:11:36 2007 From: do-not-reply at jboss.com (method_ben) Date: Fri, 30 Nov 2007 14:11:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBoss WSSecurity and .Net Client Message-ID: <10300835.1196449896107.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem, do you find a solution ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109433#4109433 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109433