[JBossWS] - Cannot access web service with HTTP Basic Authentication ena
by jeff norton
I'm running JBoss 4.2 with the latest jbossws libraries. I have a simple web service running and I wanted to secure it with HTTP Basic Authentication (actually anything would do but that seemed the simplest). I followed the steps in http://jbws.dyndns.org/mediawiki/index.php?title=Authentication, but now my client gets an error when creating the service (this is before setting the username and password using the BindingProvider -- but you need the service object on which to do that -- perhaps a chicken/egg problem?)
service = Service.create(wsdlURL, new QName(...));
Now gets:
[exec] org.jboss.ws.metadata.wsdl.WSDLException: Cannot parse wsdlLocation: http://localhost:8080/resonantProcessLibrary?wsdl
| [exec] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefinitionsFactory.java:183)
| [exec] at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:108)
| [exec] at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| [exec] at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85)
| [exec] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegateImpl.java:132)
| [exec] at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)
| [exec] at javax.xml.ws.Service.<init>(Service.java:82)
| [exec] at javax.xml.ws.Service.create(Service.java:334)
| [exec] at com.resonant.processlibrary.api.RemoteDocumentRepository.<init>(RemoteDocumentRepository.java:77)
When I try to access the wsdl in a browser using the wsdlURL I get the username/password challenge and after entering the correct credentials I get the WSDL so things seems to be working on the server end. Just cannot get the client to connect. It sort of seems like the username/password are needed to get the WSDL to seup the service but there is no way to provide the username/password until the service is setup. But that's what the example says to do and my code is following it exactly.
One other tidbit. When I use my .Net client to access the webservice I get a 401 (unauthorized) as expected, but when I modify the .NET client to add the credential I then get a 505 (HTTP protocal not supported).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119270#4119270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119270
18 years, 3 months
[JBoss Seam] - @DataModelSelection Is Update When @Factory Method Gets Call
by elvisisking
I'm writing a very simple Web application and trying to use POJOs instead of SBs. I have a page that displays a parent object and it's children. The children's names are displayed in the cells of a datatable. Each child has an associated SEAM link that is used to redisplay the current page but now using the child as the parent. When I click the child link the page does redisplay but since the @DataModelSelection value is always set to the first child in the collection the wrong child is displayed (unless I click on the first child:-). I've verified that the @DataModelSelection is only updated when the @Factory method is called. See code (modified for simplicity) below. Thanks much for your help.
xhtml code:
<rich:dataTable
value="#{pojo.kids}"
var="child">
<rich:column>
<f:facet name="header">
<h:outputText
styleClass="tableHeaderText"
value="Child Name" />
</f:facet>
<s:link
action="#{pojo.viewChild}"
value="#{child.name}">
</s:link>
</rich:column>
</rich:dataTable>
pojo code:
@Name( "pojo" )
@Scope( ScopeType.SESSION )
public class Pojo implements Serializable {
@Out
@DataModelSelection( "kids" )
private Node child;
private Node node;
@DataModel
private List kids;
@Factory( "kids" )
public List getNodeChildren() throws Exception {
this.kids = this.node.getChildren();
return this.kids;
}
public String viewChild() throws Exception {
this.node = this.child;
return "view";
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119267#4119267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119267
18 years, 3 months
[JBoss Seam] - Re: Developing with Seam 2 and deploying on WebSphere
by gduq
Other than switching out the entitymanager, which I had to do for the JPA example to work anyway. Heres what I had to do (or at least what I can remember):
| * Copy sources, resources(resources-websphere61 actually) etc into the corresponding folders of the seamgen generated project
| * Copy the jars from exploded-archives-websphere61\jboss-seam-jpa.war\WEB-INF\lib into the project's lib folder
| * modify the build.xml to include these in the war (the hard part)
|
|
| >It sounds like you do not have EJB3 requirements for your app like the poster in the other forum topic. Is that true?
|
| That is correct. But the JPA example uses Seam POJOs. So I wouldn't have used it as a starting point for EJB3.
|
| I will zip up the project and send it (minus the lib folder to keep down the size - but let me know if you want to see it and I'll send it).
|
| Regards,
|
| Gordon
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119264#4119264
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119264
18 years, 3 months
[JBoss OSGi] - Re: OSGi features
by alesj
"tim_ph" wrote : If Spring has it, and JBoss doesn't. It's a big disadvantage.
|
We have it, just not completely done yet.
And we're doing much more than Spring.
We're implementing our own OSGi core framework on top of MC.
They are just using the existing implementations out there.
I'm not saying that's bad, but it's completely different picture.
The OSGi kind of classloading has been in the MC for a while now.
It's just yesterday that we included this new classloading for the first time in our new AS5.
"tim_ph" wrote :
| Updating modules on-the-fly is a dream on any deployment scenario.
|
This was always possible in JBoss, from the introduction of JBoss MicroKernel, based on JMX.
Decoupling of services with the help of MBeans via MBeanServer allowed that.
"tim_ph" wrote :
| Please put that in JBoss or Seam.
Seam is JBoss. ;-)
You probably mean AS5.
It will be there, via our new kernel - the Microcontainer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119263#4119263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119263
18 years, 3 months