[JNDI and Naming] - JNDI over SSL Naming problem
by Elad o
Elad o [https://community.jboss.org/people/pfennig] created the discussion
"JNDI over SSL Naming problem"
To view the discussion, visit: https://community.jboss.org/message/788699#788699
--------------------------------------------------------------
Hi everyone and thanks to anyone reading this post.
I've been struggling a few days, trying to change the communication of my client-server JNDI lookup from http to https.
I'm using JBoss 4.2.0 and upgrading it is currently not an option.
What I did in the client is to change the url as advised in the jboss manual.
| | |
|
| | | System.setProperty("javax.net.ssl.trustStore", "C:/Program Files (x86)/localhost.truststore"); |
| | | System.setProperty("javax.net.ssl.trustStoreType", "JKS"); |
| | | System.setProperty("javax.net.ssl.trustStorePassword", "opensource"); | | |
| | | System.setProperty(HTTPSClientInvoker.IGNORE_HTTPS_HOST,"true"); |
| | | |
| | | jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory"); |
| | |
|
| | | jndiProperties.put(Context.PROVIDER_URL, "https://"+serverIp+":8443/invoker/JNDIFactory"
| | | final Context context = new InitialContext(jndiProperties); |
| | | |
| | | T facade = (T) context.lookup(facadeName); |
| | | return facade; |
|
previously the url was:
jndiProperties.put(Context.PROVIDER_URL, "jnp://"+serverIp+":1099");
and the contextfactory was
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
the serverIp is the real server the user enters. I don't want to use a network host name since I don't have a dns server in my server.
I didn't have any problem with the jnp url and the jnp naming factory, but when I try the access over SSL, the Jboss code in
HTTPNamingContextFactory.getNamingServer(URL providerURL) overrides my ip with a host name the client doesn't recognize.
It does some marshalling from the server and takes the first host entry which is defined in my linux server hosts file.
The HttpInvokerProxy does that eventually by writing the externalURLValue from the server, which is:
https://myhost:8443/invoker/JMXInvokerServlet https://myhost:8443/invoker/JMXInvokerServlet.
My client doesn't know what to do with this "myhost", it needs the real ip of the server, which I initially provide in the JNDI properties in the client.
The only thing I was able to do is edit the hosts file in the client windows system hosts file, and add an entry myhosts with the real ip, but this is of course
not a solution for a production environment, since I can't ask my user to make such modifications.
So I get this exception in the client:
javax.naming.CommunicationException: Operation failed [Root exception is java.rmi.ServerException: IOE; nested exception is:
java.net.UnknownHostException: myhost
My server's deploy/http-invoker.sar/META-INF/jboss-service.xml is below, if I try to set useHostName to false, then the localhost ip would be used
127.0.0.1 instead of myhost, which isn't any helpful, since I just need to keep my initially provided ip.
I'm a newbee to JBoss so I will appreciate any answer as to what am I doing wrong, and how can I resolve this without upgrade of JBOSS.
Thank You
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<!-- $Id: jboss-service.xml 26202 2004-11-29 16:54:36Z starksm $ -->
<server>
<!-- The HTTP invoker service configration
-->
<mbean code="org.jboss.invocation.http.server.HttpInvoker"
name="jboss:service=invoker,type=https">
<!-- Use a URL of the form http:// http://<hostname>:8080/invoker/EJBInvokerServlet
where <hostname> is InetAddress.getHostname value on which the server
is running.
-->
<attribute name="InvokerURLPrefix"> https:// https://</attribute>
<attribute name="InvokerURLSuffix">:${https.port}/invoker/EJBInvokerServlet</attribute>
<attribute name="UseHostName">true</attribute>
</mbean>
<!-- Expose the Naming service interface via HTTP -->
<mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
name="jboss:service=invoker,type=http,target=Naming">
<!-- The Naming service we are proxying -->
<attribute name="InvokerName">jboss:service=Naming</attribute>
<!-- Compose the invoker URL from the cluster node address -->
<attribute name="InvokerURLPrefix"> https:// https://</attribute>
<attribute name="InvokerURLSuffix">:${https.port}/invoker/JMXInvokerServlet</attribute>
<attribute name="UseHostName">true</attribute>
<attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
<attribute name="JndiName"></attribute>
<attribute name="ClientInterceptors">
<interceptors>
<interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
<interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
<interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
</interceptors>
</attribute>
</mbean>
<!-- Expose the Naming service interface via clustered HTTP. This maps
to the ReadOnlyJNDIFactory servlet URL
-->
<mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
name="jboss:service=invoker,type=http,target=Naming,readonly=true">
<attribute name="InvokerName">jboss:service=Naming</attribute>
<attribute name="InvokerURLPrefix"> http:// http://</attribute>
<attribute name="InvokerURLSuffix">:8080/invoker/readonly/JMXInvokerServlet</attribute>
<attribute name="UseHostName">true</attribute>
<attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
<attribute name="JndiName"></attribute>
<attribute name="ClientInterceptors">
<interceptors>
<interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
<interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
<interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
<interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
</interceptors>
</attribute>
</mbean>
</server>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788699#788699]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[EJB3] - premiere Watch Lost Girl Season 3 Episode 1 Online Free Stream
by wasamlajag warearaerae
wasamlajag warearaerae [https://community.jboss.org/people/wasamlajag] created the discussion
"premiere Watch Lost Girl Season 3 Episode 1 Online Free Stream"
To view the discussion, visit: https://community.jboss.org/message/788655#788655
--------------------------------------------------------------
h2. https://community.jboss.org/message/788641#788641 Watch Lost Girl Season 3 Episode 1 Online Free Stream
http://www.anyhotstuff.com/2013/01/watch-lost-girl-season-3-episode-1.html http://www.anyhotstuff.com/2013/01/watch-lost-girl-season-3-episode-1.html
It follows the life of a succubus named Bo, played by Anna Silk, as she learns to control her abilities, helps those in need, and discovers the truth about her origins. Following good ratings and positive reviews, it was renewed for its second season two months after its premiere,and for its third season in December 2011.
With the world of Fae in chaos following Bo's explosive reunion with her mother, Bo must learn to "play the game" and navigate the inner workings of the Fae World in order to protect those who have helped to protect her.
Bo finds her resolve to stay free challenged, and is forced to question her own morals and beliefs. While Bo grows stronger and learns more about who she really is, relationships will be tested and passions will ignite, but answers will not come easily.
Kris Holden-Ried as Dyson: A "wolf-shifter" and a detective in the human world. He is quite strong, possesses an acute sense of smell, is several hundred years old, and very knowledgeable about Fae politics. A member of the Light Fae, his true allegiance is to Trick rather than the Ash. He is in love with Bo and is best friends with Hale, his Fae detective partner.
In the season one finale, he sacrificed his love for Bo to give her the strength to defeat her insane mother as part of a deal with the Norn, leaving him with the memory of their relationship but unable to feel his old passion for her. He has since made efforts to remain friends with Bo, which was initially awkward as Bo tried to win him back.
After being reunited with his old love Ciara, they began a relationship, which was hampered by Dyson's reluctance to reveal his encounter with the Norn and the price he paid, but eventually ended when he admitted that sacrificing his love for Bo cost him the ability to ever love again as wolves mate for life. His love was eventually restored by the Norn after a coerced deal with Kenzi.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788655#788655]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months
[jBPM] - @@~~GODADDY BOWL LIVE~~@@Kent vs Arkansas State Live GODADDY BOWL january 6, 2013
by rjiofkg oudytd
rjiofkg oudytd [https://community.jboss.org/people/rjiofkgoudytd] created the discussion
"@@~~GODADDY BOWL LIVE~~@@Kent vs Arkansas State Live GODADDY BOWL january 6,2013"
To view the discussion, visit: https://community.jboss.org/message/788657#788657
--------------------------------------------------------------
Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013 Kent State vs Arkansas State Live GODADDY BOWL january 6,2013
Kent State vs Arkansas State Live, Arkansas State vs Kent State Live,Kent St. vs Arkansas St. Live, Arkansas St. vs Kent St. Live, GODADDY BOWL Live, Kent State Golden Flashes vs Arkansas State Red Wolves Live,Arkansas State Red Wolves vs Kent State Golden Flashes Live,Red Wolves vs Golden Flashes Live,Golden Flashes vs Red Wolves Live,Kent vs Arkansas Live,Arkansas vs Kent Live,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *http://alllivesports.net/allsports123/wp-content/uploads/2474096.gif*
Kent State vs Arkansas State Live GODADDY BOWL, Arkansas State vs Kent State Live GODADDY BOWL,Kent St. vs Arkansas St. Live GODADDY BOWL, Arkansas St. vs Kent St. Live GODADDY BOWL, GODADDY BOWL Live GODADDY BOWL, Kent State Golden Flashes vs Arkansas State Red Wolves Live GODADDY BOWL,Arkansas State Red Wolves vs Kent State Golden Flashes Live GODADDY BOWL,Red Wolves vs Golden Flashes Live GODADDY BOWL,Golden Flashes vs Red Wolves Live GODADDY BOWL,Kent vs Arkansas Live GODADDY BOWL,Arkansas vs Kent Live GODADDY BOWL,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html http://alllivesports.net/allsports123/wp-content/uploads/Kent-State-vs-Ar...
Kent State vs Arkansas State Live, Arkansas State vs Kent State Live,Kent St. vs Arkansas St. Live, Arkansas St. vs Kent St. Live, GODADDY BOWL Live, Kent State Golden Flashes vs Arkansas State Red Wolves Live,Arkansas State Red Wolves vs Kent State Golden Flashes Live,Red Wolves vs Golden Flashes Live,Golden Flashes vs Red Wolves Live,Kent vs Arkansas Live,Arkansas vs Kent Live,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *http://alllivesports.net/allsports123/wp-content/uploads/2474096.gif*
Kent State vs Arkansas State Live GODADDY BOWL, Arkansas State vs Kent State Live GODADDY BOWL,Kent St. vs Arkansas St. Live GODADDY BOWL, Arkansas St. vs Kent St. Live GODADDY BOWL, GODADDY BOWL Live GODADDY BOWL, Kent State Golden Flashes vs Arkansas State Red Wolves Live GODADDY BOWL,Arkansas State Red Wolves vs Kent State Golden Flashes Live GODADDY BOWL,Red Wolves vs Golden Flashes Live GODADDY BOWL,Golden Flashes vs Red Wolves Live GODADDY BOWL,Kent vs Arkansas Live GODADDY BOWL,Arkansas vs Kent Live GODADDY BOWL,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html http://alllivesports.net/allsports123/wp-content/uploads/Kent-State-vs-Ar...
Kent State vs Arkansas State Live, Arkansas State vs Kent State Live,Kent St. vs Arkansas St. Live, Arkansas St. vs Kent St. Live, GODADDY BOWL Live, Kent State Golden Flashes vs Arkansas State Red Wolves Live,Arkansas State Red Wolves vs Kent State Golden Flashes Live,Red Wolves vs Golden Flashes Live,Golden Flashes vs Red Wolves Live,Kent vs Arkansas Live,Arkansas vs Kent Live,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *http://alllivesports.net/allsports123/wp-content/uploads/2474096.gif*
Kent State vs Arkansas State Live GODADDY BOWL, Arkansas State vs Kent State Live GODADDY BOWL,Kent St. vs Arkansas St. Live GODADDY BOWL, Arkansas St. vs Kent St. Live GODADDY BOWL, GODADDY BOWL Live GODADDY BOWL, Kent State Golden Flashes vs Arkansas State Red Wolves Live GODADDY BOWL,Arkansas State Red Wolves vs Kent State Golden Flashes Live GODADDY BOWL,Red Wolves vs Golden Flashes Live GODADDY BOWL,Golden Flashes vs Red Wolves Live GODADDY BOWL,Kent vs Arkansas Live GODADDY BOWL,Arkansas vs Kent Live GODADDY BOWL,
h1. http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html *CLICK HERE TO WATCH GODADDY BOWL LIVE*
http://svbig.blogspot.com/2013/01/watch-kent-vs-arkansas-state-live.html http://alllivesports.net/allsports123/wp-content/uploads/Kent-State-vs-Ar...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/788657#788657]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 3 months