Configuring two cups servers

Hi,
I have just installed arch and my problem might be completely trivial. I apologize if that is the case.
I am trying to configure my cups client as follows. At work I am connecting to a remote cups server and at home I have a local(host) cups server. My home printer is HP Deskjet 3520.
When setting the remote cups server in /etc/cups/client.conf I am able to print to the network printers. I was also able to install my printer using the web interface and then install hplip (as described here: https://wiki.archlinux.org/index.php/CUPS#HP_Printer). The problem is that it doesnt recognize the cups server and  $ lpstat -t returns
scheduler is not running
no system default destination
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor
lpstat: Bad file descriptor
By replacing the remote cups server with ServerName /var/run/cups/cups.sock in etc/cups/client.conf (as is suggested here: https://bbs.archlinux.org/viewtopic.php?id=185298) I have no problem printing to the installed printer.
My question is if there is a way to configure both my local printer and to connect to the cups server.
Thank you in advance and best regards,
Tomer

Hi
I use networkmanager and have created a file owned by root in /etc/NetworkManager/dispatcher.d to do this.
This method works if the ip address numeric ranges are different between the two sites.
I called the file /etc/NetworkManager/dispatcher.d/02cupsclient (I already had a file starting with "01") with this content...
#!/bin/sh -e
if [ -z "$1" ]; then
echo "$0: called with no interface" 1>&2
exit 1;
fi
case "$2" in
up)
rm -f /etc/cups/client.conf
if [ "`ip addr | grep 192.168.`" ]; then
ln -sf /etc/cups/client.conf_work /etc/cups/client.conf
fi
down)
rm -f /etc/cups/client.conf
echo "$0: called with unknown action \`$2'" 1>&2
exit 1
esac
change "192.168." in the above to the starting ip address range of your work network and also
chmod 755 /etc/NetworkManager/dispatcher.d/02cupsclient
Also create /etc/cups/client.conf_work with this content...
ServerName {ip address of work cups server}
When network manager detects you are on your work IP address range, then it symbolic links to your custom client.conf file to use your work cups server, otherwise it doesn't link the client.conf leaving you running your own cups system.
Hope this helps.
Cheers
Paul.
Last edited by paulkerry (2015-02-11 10:01:03)

Similar Messages

  • Configure 2 Ldap servers on C370

    hello everyone,
    we are consdering to configure a dual bundle C370 to Host a production and sumulation environement simutanously.
    from Netwotking and mail flow plicies i think this is possible.
    but i am not sure about Ldap profiles.
    is it possible to configure two Ldap servers an associate each one with the adequate domain.
    regards

    If they go in via the notification message they get in their email, they don't need authentication.
    But if they need to do more than release that specific message, they'll need auth.
    Go to Monitor/Quarantines
    In the row for Spam Quarantin there's an "Edit" link on the far right, click that.
    There's a section called End-User Quarantine Access, where you can turn on how users get access to the Quarentine.  Pick LDAP.
    You'll need to turn on and configure the Spam Quarantine End-User Authentication Query and the Spam Qarantine Alias Consolidation Query in your LDAP profiles under System Administration > LDAP

  • How to configure time synchronization for two NTP servers

    We have IOSXR 4.2.1 on routers CRS3 and ASR9K with all recomended SMUs; we need to configure the time synchronization for two NTP servers with the configuration below, but the routers became unstable; synchronize with one NTP servers for some time, then switch to other NTP server, and keep doing this. Anyone know why this behavior?
    ntp
    authentication-key 1 md5 encrypted 01070F074F0A05
    authenticate
    trusted-key 1
    server 10.192.32.32 prefer
    server 10.192.32.33
    source Loopback50
    update-calendar
    RP/0/RP0/CPU0:DFCRSDTC1#sh log | i ntp
    Wed Jul 10 09:37:04.621 BRSPO
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:29:18 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:29:27 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.32 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:30:21 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:31:36 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->15.
    RP/0/RP0/CPU0:Jul  4 21:35:56 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.
    RP/0/RP0/CPU0:Jul  4 21:40:11 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 15->2.
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 21:50:52 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 21:59:26 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_RECOVERED : High priority NTP peer connection recovered - Stratum 6->2.
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : System clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:25:07 : ntpd[256]: %IP-IP_NTP-5-HP_CONN_LOST : High priority NTP peer connection lost - Stratum 2->6.
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-SYNC_LOSS : Synchronization lost : 10.192.32.33 : Peer unreachable or clock selection failed
    RP/0/RP0/CPU0:Jul  4 22:56:16 : ntpd[256]: %IP-IP_NTP-5-ALL_CONN_LOST : All NTP peer connections failed.

    Hi Claudio, that ddts is pretty generic to be honest but yes it is filed to address sync issues in the XR NTP algo.
    The thing is that XR ntp clock selection is a bit different then iOS and follows the specs very closely which results in this erroneous loss behavior.
    For instance, you could also see this issue with a sync loss if the update time is only 500msec off what it was before and that will result in a ntp sync loss rather then adjusting to it.
    Also I wanted to mention that the ntp prefer is a bit of a misnomer in XR (since it follows the specs differently then IOS) and this knob was taken over from IOS really.
    You might get some joy if you set it to one server only and see if that helps?
    regards
    xander

  • Configuring two 11g OID servers in High Availability mode.

    I have OID1 server where I have installed OID11g and WLS using SSL Port 3131 and Non SSL Port 3060. The ldap set up is working as the sqlnet connections are using ldap adapter to resolve the request.
    I have OID2 server where I have installed OID11g using the same port.
    Now, I want to setup a cluster for these two so that the the load balancer will automatically route the requests to either of the two servers so that if one is unavailable, the other will fill the request. I am following "Configuring High Availability for Identity Management Components" document, but it is not very what steps needs to be followed.
    Any suggestion will be appreciated;
    I am also having problem using ldapbind or any of the oid commands as it gives "unable to locate message file: ldap<language>.msb" despite the fact that I am seting all the env vars such as ORACLE_HOME, ORACLE_INTANCE, ORA_NLS33 and so on.

    You don't need to setup a cluster for Load balancer. The Load balancer configuration can point to both the server and depending on the configuration in LBR act in failover and load balanced mode. All you need to take care of is that the two OID servers are using the same schema.
    When installing first OID server it gives a option to install in cluster mode and when installing the second server you can use the option to expand the cluster created in first installation. But that should not stop you from configuring OID in highly available mode using Load balancer as explained above.
    "unable to locate message file: ldap<language>.msb" occurs if you have not set the ORACLE_HOME variable. See that it is set to <MiddlewareHome>/Oracle_IDM1 if you have used the defaults.
    Hope this helps,
    Sagar

  • Policy based NAT to share 1 public between to two internal servers

    Hello all,
    I would like to implement a solution that allows me to share a single public IP amongst two internal servers. One service uses a range of tcp ports.
    I believe the below will address what I need however - can I use the ‘object-group’ command or do I need to specify each tcp port separately?
    This?
    object-group service A_Bunch_O_Ports tcp
    description Telemesis comms to-From Internet
    port-object eq https
    port-object eq www
    port-object eq 8060
    port-object eq 8070
    access-list policyNAT-share extended permit tcp host 172.20.40.100 object-group A_Bunch_O_Ports host 1.2.3.4 object-group A_Bunch_O_Ports
    access-list policyNAT-share extended permit tcp host 172.20.40.200 eq 25 host 1.2.3.4 eq 25
    nat (inside) 3 access-list policyNAT-share
    global (outside) 3 1.2.3.4 netmask 255.255.255.255
    Or this?
    access-list policyNAT-share extended permit tcp host 172.20.40.100 eq 443 host 1.2.3.4 eq 443
    access-list policyNAT-share extended permit tcp host 172.20.40.100 eq 80 host 1.2.3.4 eq 80
    access-list policyNAT-share extended permit tcp host 172.20.40.100 eq 8060 host 1.2.3.4 eq 8060
    access-list policyNAT-share extended permit tcp host 172.20.40.100 eq 8070 host 1.2.3.4 eq 8070
    access-list policyNAT-share extended permit tcp host 172.20.40.200 eq 25 host 1.2.3.4 eq 25
    nat (inside) 3 access-list policyNAT-share
    global (outside) 3 1.2.3.4 netmask 255.255.255.255

    Do you need both inbound and outbound connection for the server, or only outbound connection?
    If you only need outbound connection, then you don't even need to specify the port on the access-list. You can just configure the following:
    nat (inside) 3 172.20.40.100 255.255.255.255
    nat (inside) 3 172.20.40.200 255.255.255.255
    global (outside) 3 1.2.3.4 netmask 255.255.255.255
    However if you need both inbound and outbound connection for the server, then you should configure the following:
    static (inside,outside) tcp 1.2.3.4 443 172.20.40.100 443 netmask 255.255.255.255
    static (inside,outside) tcp 1.2.3.4 80 172.20.40.100 80 netmask 255.255.255.255
    static (inside,outside) tcp 1.2.3.4 8060 172.20.40.100 8060 netmask 255.255.255.255
    static (inside,outside) tcp 1.2.3.4 8070 172.20.40.100 8070 netmask 255.255.255.255
    static (inside,outside) tcp 1.2.3.4 25 172.20.40.200 25 netmask 255.255.255.255

  • Two web servers cant use same port forwarding rule???

    I have two web servers, each configured to respond to http reqests on port 80.  I use NoIP service to map a domain name to my router. I create a port forwarding assignment for Server A by selecting the WebServer rule in the port forwarding rule table.  All is fine.  For Server B, I select the same Webserver rule and the router says there is a conflict.
    I don't understand why.  I think the router has enough information to route a http request for Server B by knowing its MAC address, which is different than Server A MAC address.
    What am I missing here???
    I was able to do this on my previous router with DD-WRT.....
    So it would appear the way to resolve this is to assign a different port address to Server B???
    grrrrrrrrrr I hate this router

    You shouldn't have been able to do that on any router.  You have to change the listening port of server 2, to 8080 or something like that, or make one a secure server and run it over 443
    That is a known issue with port forwarding
    Problem #8:
    Same Port in Multiple Rules
    There are some routers such as Linksys, D-Link and many others that do not do any checks if a port is already in another port forwarding rule. A port can only be forwarded to one Computer/IP at a time. So when there are multiples of the same port number the port forwarding rule will not work.
    Here is an example.
    As you can see port 2350 is in 2 rules. The 1st one points to a different IP than that of the 2nd rule. So the router will honor the 1st rule and the 2nd port forwarding rule to port 2350 fails.
    By removing the 1st rule the 2nd one will now work.

  • GDM 3.8 with two X servers

    Hello,
    I am curious if anyone has GDM running two X severs at startup. In the past (and still now) I am using XDM like in this thread:
    https://bbs.archlinux.org/viewtopic.php?id=142273
    However with the change to GNOME where the screenlocker requires GDM, I wanted to try using GDM. Thus far I have not been able to get GDM to work the way I want. I very much dislike "switch user" because the users are not consistently on the same virtual terminal.
    So, my goal at the moment is two launch two X servers at bootup on two consistent VT using GDM. This will provide the gnome screen locker. Has anyone successfully configured such a setup? If so, can you share what changes need made?
    Thanks

    I would still like to hear anyone's experience on the GDM question if anyone has it.
    I played with the code that jasonwryan showed in the other thread. It didn't completely work for me. The option -novtswitch didn't work. It would always keep starting X on a new VT. I modified the code to work for me,,,
    A .profile file in each of our home directories.
    ~/.bash_profile has an additional line added
    source ~/.profile
    My .profile for use with tty3:
    if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty3 ]]; then
    exec xinit -- :1 vt3 &>/dev/null && logout
    else read -p "Bryan, if you wanted to automatically start your desktop, logout, then press Ctrl + Alt + F3 and log in. Press [Enter] to continue."
    fi
    Her .profile for use with tty2:
    if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty2 ]]; then
    exec xinit -- :0 vt2 &>/dev/null && logout
    else read -p "Teresa, if you wanted to automatically start your desktop, logout, then press Ctrl + Alt + F2 and log in. Press [Enter] to continue."
    fi
    It's interesting... It allows me to logon to other tty without starting X, but suggests what to do if I was in error. One thing I notice is if I try to reboot the computer from the menu, it will tell me she is logged on in a console. With XDM, it showed she was logged on, but not in a console. Now for a little testing to see if there are permissions problems.
    BTW, I am using i3lock as my screen locker. In GNOME custom shortcuts I have Super + L executing a custom script. Shortcut command:
    i3lock-more /home/bryan/Data/wallpapers/ThinkLinux.png
    and the i3lock-more script in /usr/local/bin:
    #!/bin/sh
    xset dpms 0 0 30
    ( i3lock -n -i $1 && xset dpms 0 0 900 )
    Of course I didn't get any closer to GDM working, but I did get to hear "Why do you keep changing things?" :-)

  • Can I configure two webserver domain in one windows server

    Can I configure two webserver domain in one windows server with default port. ( i.e 80 )
    For Ex:- http://server-name/psp/DOMAIN/?cmd=login and another one
    http://server-name/psp/DOMAIN2/?cmd=login.
    If not please let me know the workaround to do so. B'coz i don't want to put portnumber in my second URL..

    Hi,
    You can even have serveral domains within the same webserver instance.
    During PIA installation (of the second) choose option existing domain and then add an additional site.
    Give the domain a unique name and port to your second application server and you are ready to go.
    I usually do this on sandbox environments to keep the sandbox small , with several databases (Portal, HCM, FIN, CRM) and one PIA with serveral domain.
    But is definitely not what you should do for production systems.
    Each application should have it's one PIA instance.
    Hakan
    I didn't read the port number requirement.
    You can only run one webserver instance on a port number for example port 80.
    But you can still have one webserver PIA with serveral domain on the same port number as described above.
    Edited by: Hakan Biroglu on Mar 14, 2012 2:28 PM

  • Why connect two dhcp servers with different IP addresses?

    
    so for an assignment at college we had to configure a router connected to two switches which both had a server connected to them.
    the computers were connected via dhcp to either server however each side had a different IP. we have now been asked to justify as to why two servers were used with different IP which I cannot quite produce a business orientated answer.
    I can understand connecting two dchp servers on same IP to increase fault tolerance but I do not understand using two separate IP addresses.

    Hi,
    Does “using two separate IP addresses“ mean 2 subnets which are connected by router?
    If you have separately configured 2 DHCP servers on the 2 subnets, and want 1 of the 2 DHCP servers to provide fault tolerance for the other. You need to use an RFC 1542–compliant router, or DHCP relay agent, in order to forward DHCP broadcast traffic.
    If there is any misunderstanding about your question, please correct. 
    Best Regards,           
    Eve Wang                                                                             
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Two Managed servers in the same apahce.

    Hi,
    I did not have too much experience with WLS, I have two manged servers which listened on diff port, and I tried to configure them in one apache instance..
    do u know how to do it? I have tried this:
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <IfModule mod_weblogic.c>
    MatchExpression app1 WebLogicHost=192.1.1.87|WebLogicPort=7100|Debug=ON
    MatchExpression app2 WebLogicHost=192.1.1.87|WebLogicPort=7200|Debug=ON
    </IfModule>
    And got the following error:
    [Mon Jun 23 15:43:41 2003] [error] CONFIG_ERROR [line 1309 of ap_proxy.cpp]: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters
    My WLS: 7 sp2 and apache is 2.0.45.
    Appreciate your advice...
    Regards
    Leo

    You can have more number of soa servers in a SOA domain. You can create mutiple managed servers using config wizard. But when you create more than one soa servers, then all the servers should exist in the same cluster.
    You can not have the soa servers outside the soa cluster.

  • Ale / Idoc between two different servers

    Hi All,
    In my scenario i am working on two different servers in which distribution of idoc is carrying out.
    (Before this i have worked on same server scenarios with different clients.)
    But present scenario i am working with two diferent servers,
    like,
    i am having 100 client in server A (sender system) and 700 client in server B(receiver system),
    i have created all the basic steps like logical systems in both systems,
    Assign logical systems to clients in consecutive servers,
    RFC's and ports.
    while creating message type under model view in server A client 100(sender system ) i can find only 100 client's logical system name, i cannot find the 700 clients logical system name.
    due to both clients are in different ip address , does we need to transfer the logical system assign ment transport request to other client.
    regards,
    Mohd.

    Hello abdul  ,
    When you configure a logical system for example the same system with a different client (700) it should be configured in the source system (Client 100).
    In this way when you can send the relevant IDOCs via the ALE according the model view (BD64) ,the source system (100) knows that the target is the  system with the client 700 .
    (There is a generic RFC in the background process : INBOUND_IDOC_PROCESS).
    Sender :  system_100
    Receiver:system_700
    Message type : MATMAS
    Also in order to accept the relevant Idocs in the system with client 700,you must configure a partner profile that will contain in inbound parameters the relevant message type (MATMAS).
    I hope it is more understood .
    Thank you,
    Boaz

  • BO MOBI with BOE and Mobile server on two separate servers

    Hi Experts,
    We need to set up a BO MOBI with BOE and Mobile server on two separate servers.
    In such a configuration, how does the two servers communicate?
    What should be the VAS and VMS server configurations? especially the external hostnames in the files?
    We are looking for a non Blackberry(proxy) deployment.
    We have installed the software,however the windows services of Authserver and the Job servers are not available in the mobile server instance
    Any help would be highly appreciated.

    Hi Experts,
    We need to set up a BO MOBI with BOE and Mobile server on two separate servers.
    In such a configuration, how does the two servers communicate?
    What should be the VAS and VMS server configurations? especially the external hostnames in the files?
    We are looking for a non Blackberry(proxy) deployment.
    We have installed the software,however the windows services of Authserver and the Job servers are not available in the mobile server instance
    Any help would be highly appreciated.

  • One Internet Connection, Two different LANS & Two DHCP Servers, How to share internet without conflict?

    I have two LANs and one internet connection.  Each LAN has its own DHCP server.  I want to be able to have internet access on BOTH LANs but don't
    want to have a DHCP conflict between them.
    The main LAN is a Time Warner Cable modem and a Cisco router running DHCP going to a 48 port switch that has all the workstations connected.  
    The second is a stand alone Windows 2012 WDS server which is ONLY use to image computers via WDS. The server is running DHCP as well and is connected to another 48 port switch where I connect systems that need to be imaged.
     I want to be able to provide internet access on LAN with the Windows 2012 WDS server so after I image the computers I can download drivers direct from the internet.   The Windows WDS server has two NIC cards but I am only using one.   Is
    it possible to configure this so the internet from the main LAN is shared to the WDS server and its clients without causing problems with the two DHCP servers?   Here is a basic network diagram.   Thanks!

    Hi Adam,
    To share the internet on secondary VLAN, please follow the steps below:
    Connect the secondary switch to Cisco router
    Configure the devices on secondary VLAN to use Cisco router as its' gateway
    Configure NAT for secondary VLAN on Cisco router
    Due to different manufacturer has different ways to configure, for detailed configuration information, please consult the manufacturer of the switch and router.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I am unable to start two oc4j servers (stand alone)

    Hi All,
    I am unable to start the two oc4j servers as it is giving the following exception
    Starting OC4J from C:\oc4j\j2ee\home ...
    2009-01-21 11:38:34.015 NOTIFICATION JMSServer[]: OC4J JMS server recovering tra
    nsactions (commit 0) (rollback 0) (prepared 0).
    2009-01-21 11:38:34.015 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc
    al transactions Queue[jms/Oc4jJmsExceptionQueue].
    2009-01-21 11:38:34.093 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc
    al transactions Queue[jms/jobstore].
    2009-01-21 11:38:34.203 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc
    al transactions Queue[jms/events].
    2009-01-21 11:38:34.234 NOTIFICATION JMSServer[]: OC4J JMS server recovering loc
    al transactions Queue[jms/notifications].
    2009-01-21 11:38:34.281 ERROR jms.xml: port 9,127 already in use.
    09/01/21 11:38:34 *** (SEVERE) jms.xml: port 9,127 already in use.
    2009-01-21 11:38:34.281 ERROR Failed to set the internal configuration of the OC
    4J JMS Server with: XMLJMSServerConfig[file:/C:/oc4j/j2ee/home/config/jms.xml]
    09/01/21 11:38:34 *** (SEVERE) Failed to set the internal configuration of the O
    C4J JMS Server with: XMLJMSServerConfig[file:/C:/oc4j/j2ee/home/config/jms.xml]
    2009-01-21 11:38:34.281 ERROR J2EE OJR0011 Exception starting JMS server: Failed
    to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf
    ig[file:/C:/oc4j/j2ee/home/config/jms.xml]
    2009-01-21 11:38:34.328 ERROR J2EE RMI0002 Error starting ORMI server gis77 port
    23,791: Address already in use: JVM_Bind
    2009-01-21 11:38:34.328 ERROR java.net.BindException: Address already in use: JV
    M_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at com.evermind.server.rmi.RMIServer.createServerSocket(RMIServer.java:4
    01)
    at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.jav
    a:313)
    at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:194)
    at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer
    .java:2235)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
    a:914)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
    uncher.java:113)
    at java.lang.Thread.run(Thread.java:595)
    09/01/21 11:38:34 Error starting ORMI server gis77 port 23,791: Address already
    in use: JVM_Bind
    09/01/21 11:38:34 Shutting down OC4J...
    even I got the same exception after changing the port numbers in rmi.xml and jms.xmls
    Any help appreciated...
    Thanks in advance,
    Krishna

    This is my favorite FAQ. ;-)
    Generally speaking, to start two OC4Js you have to make sure that they don't listen on the same ports. The easiest way is to copy the home directory to another one, (eg. home2) and change the ports in home2/config/*.xml.
    With OC4J 10.1.3.x you can use the Application Server Console to change the number of JVMs to more than one and you're done.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Bridge already registered when using two managed servers

    I have defined a messaging bridge with a target of my cluster in Weblogic 9.0 (upgraded from 7.0). My cluster has two managed servers. The bridge and resource adapter also have targets of the cluster. When I start the first managed server, everything works fine. The bridge works. When I bring up the second managed server, I repeatedly get the following:
              javax.jms.JMSException: SJMSBridge is already registered
              Is there something new that I need to define in the config to make this work?

    Here is the full error. I can understand what you are saying about the cluster, but I get this message even when only one server of the cluster is running. That doesn't make sense to me.
              ####<Nov 15, 2005 2:30:36 PM PST> <Info> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093836274> <BEA-200030> <Bridge "SJMSBridge" is configured to work in "Exactly-once" mode, and it is actually working in "Duplicate-okay" mode.>
              ####<Nov 15, 2005 2:30:36 PM PST> <Info> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093836805> <BEA-200028> <The bridge "SJMSBridge" has started transferring messages.>
              ####<Nov 15, 2005 2:30:38 PM PST> <Warning> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093838008> <BEA-200026> <Bridge "SJMSBridge" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was java.lang.Exception: javax.resource.ResourceException: Error setting message listener
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1457)
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1437)
                   at weblogic.jms.adapter.JMSBaseConnection.setMessageListener(JMSBaseConnection.java:1201)
                   at weblogic.jms.adapter.JMSConnectionHandle.setMessageListener(JMSConnectionHandle.java:134)
                   at weblogic.jms.bridge.internal.MessagingBridge.beginForwarding(MessagingBridge.java:951)
                   at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1038)
                   at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              -------------- Linked Exception ------------
              javax.resource.ResourceException: Error creating asynchronous consumer
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1457)
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1437)
                   at weblogic.jms.adapter.JMSBaseConnection.createConsumer(JMSBaseConnection.java:1299)
                   at weblogic.jms.adapter.JMSBaseConnection.access$400(JMSBaseConnection.java:84)
                   at weblogic.jms.adapter.JMSBaseConnection$11.run(JMSBaseConnection.java:1183)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
                   at weblogic.jms.adapter.JMSBaseConnection.setMessageListener(JMSBaseConnection.java:1180)
                   at weblogic.jms.adapter.JMSConnectionHandle.setMessageListener(JMSConnectionHandle.java:134)
                   at weblogic.jms.bridge.internal.MessagingBridge.beginForwarding(MessagingBridge.java:951)
                   at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1038)
                   at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              -------------- Linked Exception 2 ------------
              javax.jms.JMSException: SJMSBridge is already registered
                   at org.exolab.jms.messagemgr.ConsumerManager.createDurableConsumerEndpoint(ConsumerManager.java:404)
                   at org.exolab.jms.server.JmsServerSession.createSubscriber(JmsServerSession.java:771)
                   at org.exolab.jms.server.mipc.IpcJmsSessionConnection.createSubscriber(IpcJmsSessionConnection.java:588)
                   at org.exolab.jms.server.mipc.IpcJmsSessionConnection.notify(IpcJmsSessionConnection.java:165)
                   at org.exolab.jms.server.mipc.IpcJmsReceiver.notify(IpcJmsReceiver.java:100)
                   at org.exolab.jms.server.mipc.IpcServerChannel.run(IpcServerChannel.java:161)
              .)>

Maybe you are looking for