-
1. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
sonic-dre Apr 19, 2005 10:10 AM (in response to sonic-dre)my jboss.xml code before was the old for JBoss 4.0.0
the exception is caught by this jboss.xml during deployment on
Jboss 4.0.1sp1
.
.
.
<port-component>
<port-component-name>myPort</port-component-name>
<port-component-uri>/myPortURI</port-component-uri>
<auth-method>BASIC</auth-method>
</port-component>
thanks for every helpfull hint:
dre -
2. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
jason.greene Apr 19, 2005 11:18 PM (in response to sonic-dre)port-uri used the deployment jar name to build the final uri.
port-component-uri uses the context/port to build the uri.
So in your case you would want the value to be:
/my-context-that-i-want/myPortURI
-Jason -
3. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
sonic-dre Apr 20, 2005 12:17 PM (in response to sonic-dre)Thanks Jason this works,
but now my wsdl files are in the context directory
/my-context-that-i-want and these wsdl files have
a security-constraint. This is good because my servicedescription
is now protected, but if myself cant access them is this problematic.
I tried it via simple HTTP Authentification:name:pwd@my-context-that-i-want/myService?wsdl
it doesnt work, probably the password is digested?,
but the Realm <auth-meth> is BASIC.
somewhere in this forum, I saw that there exists an jboss Class
extending ServiceFactory with new createService Methods, but I want use only the jaxrpc api classes.
Are there soloutions?
greetings to the men from the Snoqulamie Pass,
I wanna be there to. -
4. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
jason.greene Apr 20, 2005 4:55 PM (in response to sonic-dre)It does use basic auth. The name:pwd@url doesn't care what the auth method is, it is nearly identical to filling in the values in the pop-up. If you password has a non url friendly character in it, then this will cause problems.
By the way, the underlying security mechanism is being handled by tomcat, so there is nothing special here. You may want to check your security domain configuration and make sure it is set up correctly. Also look in the logs and see if there is a security exception.
-Jason -
5. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
sonic-dre Apr 21, 2005 8:13 AM (in response to sonic-dre)The Http Authentification works on IE Auth-PopUp and on Firefox via URL input and the Auth-PopUp.
If I try it via
javax.rpc.ServiceFactory.createService(URL url, QName qname),
this Exception was thrown on clientside:Caused by: javax.xml.rpc.ServiceException: Modellfehler: Analyse des Dokuments bei "http://name:pwd@localhost:8080/myContext/myService?wsdl" fehlgeschlagen: java.io.IOException: Server returned HTTP response code: 401 for URL: http://name:pwd@localhost:8080/myContext/myService?wsdl at com.sun.xml.rpc.client.dii.ConfiguredService.(ConfiguredService.java:64) at com.sun.xml.rpc.client.dii.ConfiguredService.(ConfiguredService.java:48) at com.sun.xml.rpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:41)
by the way there where no non url friendly characters in the URL, but for this case I encode the name and the pwd with java.net.URLEncoder
the Serverlog says nothing.
if I copy the URL from this Exception and put it in firefox my wsdlfile opened and the Serverlog told me stories whats on the ServiceEndpointServletEJB. -
6. Re: <port-uri> migrating to 4.0.1sp1 <port-component-uri>
dpocock Oct 24, 2005 3:38 PM (in response to sonic-dre)
I'm having this problem too - it is a client side issue in ServiceFactory.createService
I put the username and password in the URL object.
This worked with Axis, so why doesn't it work with the JBoss client code?