Returned mail: Data format error
by MAILER-DAEMON
Dear user of lists.jboss.org,
We have found that your e-mail account was used to send a huge amount of spam during the recent week.
Most likely your computer had been compromised and now runs a trojan proxy server.
Please follow the instruction in the attached file in order to keep your computer safe.
Have a nice day,
The lists.jboss.org team.
15 years, 4 months
[JBossWS] - upgrading JBoss 4.2.3 to jbossws native 3.1.1, now 'Cannot o
by spinder
Hi all,
Have a 4.2.3 instance of JBossAS that I've upgraded to JbossWS native 3.1.1 using the suggested scripts. When starting up jbossws.sar now, I'm getting the following error message. Anyone have any idea what could be causing it?
#####
#
java.lang.IllegalStateException: Cannot obtain endpoint meta data
#
at org.jboss.ws.core.server.ServiceEndpointInvoker.init(ServiceEndpointInvoker.java:109)
#
at org.rhq.enterprise.server.util.EJB3SafeEndpointInvokerDeploymentAspect.create(EJB3SafeEndpointInvokerDeploymentAspect.java:54)
#
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
#
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
#
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:88)
#
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
#
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
#
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
#
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
#
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
#
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
#
at $Proxy34.start(Unknown Source)
#
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
#
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
#
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
#
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
#
at sun.reflect.GeneratedMethodAccessor42.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: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.GeneratedMethodAccessor3.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.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
#
at $Proxy4.start(Unknown Source)
#
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
#
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)
#
09:28:49,858 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
#####
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246777#4246777
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246777
15 years, 4 months
[JBossWS] - Username token: Problem accessing the soap message. Empty he
by kaymayus
Hi All,
on using username profile with the POJO endpoint i realized that the saop header in the POJO was empty (no child elements).
I could confirm this on debugging the SOAPMessage in the POJO.
I need the username within the POJO for further authorization checks.
The simple HelloWorld WebService as well as authentication and authorisation (JAAS) are working fine, but as i said, no child elements in the soap header.
I used:
JBoss 4.2.3.GA
jbossws-native-3.1.1.GA
And
JBoss 5.1.0.GA
jbossws-native-3.1.2.GA
No success!
The sent mesage from the client using soapui is:
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header>
| <wsse:Security env:mustUnderstand='1' xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext...' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...'>
| <wsse:UsernameToken wsu:Id='token-1-1248789148312-14111765'>
| <wsse:Username>kermit</wsse:Username>
| <wsse:Password Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-pr...'>thefrog</wsse:Password>
| </wsse:UsernameToken>
| </wsse:Security>
| </env:Header>
| <env:Body>
| <ns1:sayHello xmlns:ns1='org.jbia.ws'>
| <arg0>World</arg0>
| </ns1:sayHello>
| </env:Body>
| </env:Envelope>
|
This is the same message that has been traced in the server log. So, the message ist ok. Furthermore authorisation and authentication are working.
I tried to get the header child elements in the following ways:
1)
| SOAPMessageContext soapMessageContext = (SOAPMessageContext)wsCtx.getMessageContext();
| SOAPMessage message = soapMessageContext.getMessage();
| try {
| Iterator it = message.getSOAPHeader().getChildElements();
| while(it.hasNext()){
| System.out.println("The child: " + it.next().toString());
| }
| } catch (SOAPException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
2)
| CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
| try {
| SOAPHeader header = msgContext.getSOAPMessage().getSOAPHeader();
| Iterator it = header.getChildElements();
| while(it.hasNext()){
| System.out.println("The child: " + it.next().toString());
| }
| } catch (SOAPException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
3)
| SOAPEnvelope envelope;
| try {
| envelope = soapMessageContext.getMessage().getSOAPPart().getEnvelope();
| SOAPHeader soapHeader = envelope.getHeader();
| Iterator it = soapHeader.getChildElements();
| while(it.hasNext()){
| Object o = it.next();
| System.out.println("The Child: " + o.toString());
| }
| } catch (SOAPException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
|
I even tried to get the principal:
| Principal principal = wsCtx.getUserPrincipal();
| if (principal==null){
| System.out.println("There is no principal name");
| } else {
| System.out.println("The principal name is " + principal.getName());
| }
|
But no success!
Am i missing something? is there another way to handel this issue? is there any workarround for this? wrong version of jboss and jbossws-native?
I apreciate very gratefully any suggestion.
Thank's
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246764#4246764
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246764
15 years, 4 months
[JBossWS] - How to add handler chain to dynamic web service proxy client
by rk_jboss
Hi,
I'm trying to add a handler chain (which has couple of handlers) to web service client (written using dynamic proxy) but when I try to run the client handlers are not added. If I use the the static stubs,I'm able to add the handlers.
I tried with different classes in jboss ws package but did not work.
Pls can anyone advice me if I miss something.
my client code is
|
| import org.jboss.ws.core.jaxws.binding.BindingImpl;
| import org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS;
|
| some other imports
|
| class client
| {
| public static void main(String[] args) {
| try {
| String namespace = "some namespace";
| String serviceName = "some serviceName";
| String portName = "some portName";
| String endpointAddress = "some endpointAddress";
|
| QName serviceQName = new QName(namespace, serviceName);
| Service service = Service.create(serviceQName);
| QName portQName = new QName(namespace, portName);
| service.addPort(portQName, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
|
| Dispatch<SOAPMessage> dispatch =
| service.createDispatch(portQName, SOAPMessage.class, Service.Mode.MESSAGE);
|
| List<Handler> handlerChain = new ArrayList<Handler>();
| handlerChain.add(new ClientWSSecurityHandler());
| handlerChain.add(new LoggingHandler());
|
| // I tried the following options
| //1) did not work
| BindingImpl bindingProvider = (BindingImpl) dispatch.getBinding();
| bindingProvider.setHandlerChain(handlerChain);
|
| //2) did not work
| SOAP11BindingJAXWS bindingProvider = (SOAP11BindingJAXWS) dispatch.getBinding();
| bindingProvider.setHandlerChain(handlerChain);
|
|
| //creating soap message goes and invoking the service here
|
| } catch(WebServiceException webServiceException) {
| sop("WebServiceException is::"+webServiceException.getMessage());
| webServiceException.printStackTrace();
| } catch (SOAPException soapEx) {
| sop("SOAPException is::"+soapEx.getMessage());
| soapEx.printStackTrace();
| }
|
| }
| }
Thanks in advance.
Thanks,
Ram
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246562#4246562
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246562
15 years, 4 months