[JBossWS] - Issue with dotNet client and Credentials
by noclueu2
Hello all,
I have tried the JSR-181 EJB Endpoint example at http://labs.jboss.com/portal/jbossws/user-guide/en/html/endpoints.html with .Net as a client. Following the example, everything works great. Now when I try to add authentication to it by adding annotations:
| @RolesAllowed("friend")
| @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false)
| @SecurityDomain(value="JBossWS")
|
I get a "The request failed with HTTP status 505: HTTP Version Not Supported." error at the .Net client. Here is some of that code.
| MagicService ms = new MagicService();
| ms.PreAuthenticate = true;
| CredentialCache creds = new CredentialCache();
| creds.Add(new Uri(ms.Url), "BASIC", new NetworkCredential("kermit", "thefrog"));
| ms.Credentials = creds;
| ms.pullFromHat("Rabbit");
|
Any thoughts? Do I need to add the file ServerHandlers.xml somewhere in my jar file, do I need the jboss-wsse-server.xml file already? I am trying to do everything in small steps, was just adding the annotations too small of a step?
Thanks,
Richard K.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028597#4028597
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028597
19Â years, 1Â month
[JBoss Seam] - Problem with entityconverter
by dustismo
Hi,
I am using seam from CVS. I am having a random problem with convertEntity.
Everything seems to work fine except when try to select options which have been assigned a value of zero, then it throws
| 16:17:40,211 ERROR [ExceptionFilter] uncaught exception
| javax.servlet.ServletException: Unknown entity: net.infofilter.model.MenuBarType_$$_javassist_73
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
|
The generated html is (notice the selected option has a value of 0, thus if I don't change it it throws an exception)
| <select id="menuBar:menuBarType" name="menuBar:menuBarType" size="1" onchange="A4J.AJAX.Submit('_viewRoot','menuBar',event,{'parameters':{'menuBar:_id49':'menuBar:_id49'},'actionUrl':'/MenuBarEdit.seam'})"> <option value="12">user admin</option>
| <option value="1">Util Nav</option>
| <option value="0" selected="selected">watch group</option>
| </select>
|
And in case it helps, here is the page markup:
| <h:selectOneMenu value="#{menuBarHome.instance.menuBarType}"
| id="menuBarType">
| <s:selectItems value="#{menuBarHome.menuBarTypes}"
| var="item"
| label="#{item.name}"
| noSelectionLabel="--- Choose MenuBarType ---"
| hideNoSelectionLabel="true"
| />
| <s:convertEntity />
| <a:support event="onchange" reRender="parentId"/>
| </h:selectOneMenu>
|
Thanks for any help,
Dustin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028596#4028596
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028596
19Â years, 1Â month