my jboss.xml code before was the old for JBoss 4.0.0
the exception is caught by this jboss.xml during deployment on
thanks for every helpfull hint:
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:
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:
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.
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.
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.
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?