[JBossWS] - Re: Authorization failure .NET client to secured Webservices
by marcelvanvelzen
Thanks, it now works !!
What I added was the portcomponent, I specified:
@PortComponent(authMethod="BASIC", transportGuarantee="NONE")
At the moment I am not interested in SSL communication.
Also I don't use Tomcat, but thanks for the advice, perhaps in the future.
In my VB code, I removed the domain login, since user/password as in your VB example works perfectly.
In the VB code, it was necessary to override GetWebRequest, otherwise the first call would result in a HTTP 505 error.
Now I am able to finish my dll, include it in the InfoPath form (and add the cabinet file) and access my webservices via authentication.
Thanks !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991037#3991037
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991037
17 years, 5 months
[JBossWS] - problems in deploying jbossws-1.0.4 with jboss-4.0.5.GA
by MmarcoM
HI ALL,
i have just installed jboss-4.0.5.GA (was coming wth jbossws-1.0.3)...
deployed my app (J2EE-1.4 WS), everything is fine
i have then upgraded to jbossws-1.0.4 (replacing proper files)..and when i restart the server i got following exception
| 2006-12-04 11:09:50,359 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/D:/Sw/jboss-4.0.5.GA/server/default/tmp/deploy/tmp16811ngenMiddlewareEAR-1.0-SNAPSHOT.ear-contents/ngenMiddleware-1.0-SNAPSHOT.jar
| java.lang.NullPointerException
| at org.jboss.ws.integration.jboss.DeployerInterceptor.getServiceEndpointDeployer(DeployerInterceptor.java:142)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
| at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
| 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 $Proxy27.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.GeneratedMethodAccessor13.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thr
|
i have seen some threads about that in the forum, if i remember one of replies was that jbossws was compatible with ejb3-rc9..
but jboss 4.0.5.GA has within rc9 of ejbs... can anyone help me out in finding out what's theproblem?
thanks in advance and regards
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990944#3990944
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990944
17 years, 5 months
[JBossWS] - Re: Authorization failure .NET client to secured Webservices
by cboatwright
I didn't notice a @PortComponent annotation, like:
| @PortComponent(authMethod="BASIC", urlPattern="/contextHere/athenaserver",transportGuarantee="CONFIDENTIAL")
|
Also, I'm guessing you are using the Tomcat that comes with 4.0.5.GA? If so, you should also remember to set the restrictedUserAgents attribute on the connector:
| <Connector port="443" address="${jboss.bind.address}"
| maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/keystore_tiger"
| keystorePass="--" sslProtocol = "TLS"
| restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/>
|
I'm not a VB expert so I cannot comment on that. I've used the express edition to test my secure Web services and things work just fine. I have something like:
| Dim proxy As New HelloWorldWs.HelloWorldService
|
| Try
| proxy.PreAuthenticate = True
| proxy.Credentials = New NetworkCredential("colin1", "myPass")
|
| Dim result As String
| result = proxy.echoString("J", "Scott")
| MsgBox(result)
| Catch ex As Exception
|
| MsgBox(ex.Message)
|
| End Try
|
|
Hope this helps spark some thoughts to discover your problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990866#3990866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990866
17 years, 5 months
[JBossWS] - Document/Literal and org.w3c.dom.Element return type
by cboatwright
I read in several places that org.w3c.dom.Element gets mapped to anyType and can be used in Document/Literal endpoints. However, I cannot seem to get a simply test endpoint (using JSR-181 EJB) to work.
Using JBoss 4.0.5.GA w/ JBossWS 1.0.4.GA
| @EJB(name="PingBuildLinksEndPointBean", beanInterface=IPingBuildLinksEndPointBean.class, description="This is the ping description", beanName="PingBuildLinksEndPointBean")
| @WebService(name="PingBuildLinksEndPoint")
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
| @PortComponent(authMethod="BASIC", urlPattern="/test.ws",transportGuarantee="CONFIDENTIAL")
| @RolesAllowed("BLDADM")
| @SecurityDomain("BuildLinksWs")
|
| /**
| * @author cboatwright
| */
| public @Stateless class PingBuildLinksEndPointBean extends AbstractDatabaseSessionEndPoint
| implements IPingBuildLinksEndPointBean
| {
| public PingBuildLinksEndPointBean()
| throws CreateException, BuildLinksException
| {
| super();
| }
|
| @WebMethod
| public Element elementPing(String arg0)
| throws BuildLinksFault
| {
| Element rv = null;
|
| log.debug("ignored arg0=" + arg0);
|
| try
| {
| rv = DOMUtils.parse("<helloWorld/>");
| }
| catch (IOException e)
| {
| throw new BuildLinksFault(e.getMessage());
| }
|
| return rv;
| }
|
I get the following exception (regardless of the length of the XML returned, the above example just has one node):
| 23:58:03,035 ERROR [[PingBuildLinksEndPointBean]] Servlet.service() for servlet PingBuildLinksEndPointBean threw exception
| org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property '_value' in class org.apache.xerces.dom.DeferredElementNSImpl
| at org.jboss.xb.binding.introspection.ClassInfo.getFieldInfo(ClassInfo.java:81)
| at org.jboss.xb.binding.introspection.FieldInfo.getFieldInfo(FieldInfo.java:155)
| at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getJavaValue(MarshallerImpl.java:1266)
| at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getElementValue(MarshallerImpl.java:1284)
| .. cut
|
Any advice on how to send back the result as a well-formed XML element? When I try just to do it as a string, all of the XML reserved characters get escaped ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990865#3990865
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990865
17 years, 5 months