Failed to connect from jdeveloper to weblogic server jsr 160 failed

纵然是瞬间 提交于 2019-12-11 03:25:19

问题


I'm trying to connect from Jdeveloper to a remote Weblogic server. This is what I get when testing the connection.

Some say that one should disable jdeveloper's proxy settings. I did so, and it didn't change anything. Any help !


回答1:


Try to run your JDeveloper as administrator (it's a common 'mistake' for Windows users). If that doesn't work you should read this blog post: http://sathyam-soa.blogspot.be/2012/06/jdeveloper-11g-cannot-establish-app.html




回答2:


Add the server's host name in the "hosts" file in the client's operating system. Next time when you add an application server in jdeveloper, don't input the ip, type the hostname instead.




回答3:


One additional possible issue is when the domain is running in a docker container and you had the Dockerfile expose the AdminServer port externally, which then means it is proxied via the host system. In that case, you want to point WebLogic Hostname not to the IP or hostname of the container, but of the physical machine instead.

So you run the netstat command, like:

    host> netstat -nap | grep 7001
    tcp     1165      0 172.17.42.1:35464           172.17.0.1:7001             CLOSE_WAIT  32752/java          
    tcp        1      0 172.17.42.1:33738           172.17.0.1:7001             CLOSE_WAIT  32752/java          
    tcp        1      0 172.17.42.1:33746           172.17.0.1:7001             CLOSE_WAIT  32752/java          
    tcp     1165      0 172.17.42.1:35123           172.17.0.1:7001             CLOSE_WAIT  32752/java          
    tcp        0      0 :::7001                     :::*                        LISTEN      -                   

You see the interim / proxy listed above, 172.17.42.1. You can check via the ifconfig command and see the docker proxy is that IP address:

    host> ifconfig
    docker0   Link encap:Ethernet  HWaddr 56:84:7A:FE:97:99  
              inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:429422 errors:0 dropped:0 overruns:0 frame:0
              TX packets:356600 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:228869726 (218.2 MiB)  TX bytes:322146511 (307.2 MiB)

That tells you that there is a proxy in the mix, so instead of using the hostname / IP address of the container running the Admin Server, use the hostname of the machine running the docker container and the Admin Server port. Then the Test should succeed.



来源:https://stackoverflow.com/questions/30013673/failed-to-connect-from-jdeveloper-to-weblogic-server-jsr-160-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!