Virtual server listen socket

n SUN Webserver6.1, Listen socket(port) 80, 8080, and 8888 are
enabled. But after created some virtual servers, I would like to
dedicate port 8080 to one virtual server and port 8888 to another one.
But it seems that I cannot do this. Even in the server.xml file I saw
that port 8080 is only used by one virtual server, but this virtual
server still response to port 8888. Just wonder why? or say can I setup
that one virtue server is only response to one por and how?
Another question is: in the SUN Webserver 6.1 documentation, it says "
if you want to create a listen socket for IP-address-based virtual
servers, the IP address must be 0.0.0.0, ANY, any or INADDR_ANY,
meaning it listens on all IP address on that port."
Does that mean in an IP-based virutal server, cannot use a specific IP
when creating a listen socket? I am a bit confusing here. IP base
virtual server is that you need to specifiy an IP when creating listen
socket, isn't it?
Thanks for advice!

You can define virtuals in your server.xml file manually. You can have one virtual listening to one or many ports(LS) and you can have several virtuals listening to the same port. And you can assign IP address to virtual as well.
For example with YourServerIP listening to 4 ports you can do the following:
<LS id="ls1" ip="YourServerIP" port="8088" security="off" servername="YourServerName" defaultvs="YourDefaultVS"/>
<LS id="ls2" ip="YourServerIP" port="8089" security="off" servername="YourServerName" defaultvs="YourDefaultVS"/>
<LS id="ls3" ip="YourServerIP" port="8080" security="off" servername="YourServerName" defaultvs="VS3"/>
<LS id="ls4" ip="YourServerIP" port="80" security="off" servername="YourServerName" defaultvs="VS5"/>
<VSCLASS id="vsclass1" objectfile="obj.conf">
<VS id="YourDefaultVS" connections="ls1 ls2" mime="mime1" aclids="acl1" urlhosts="www.YourURL.com">
<PROPERTY name="docroot" value="/PathToYourDocumentRoot1"/>
<USERDB id="default"/>
</VS>
<VS id="VS3" connections="ls3" mime="mime1" aclids="acl1" urlhosts="www.AnotherURL.com">
<PROPERTY name="docroot" value="/PathToYourDocumentRoot2"/>
<USERDB id="default"/>
</VS>
<VS id="VS4" connections="ls4" mime="mime1" aclids="acl1" urlhosts="YourServerIP">
<PROPERTY name="docroot" value="/PathToYourDocumentRoot3"/>
<USERDB id="default"/>
</VS>
<VS id="VS5" connections="ls4" mime="mime1" aclids="acl1" urlhosts="www.YetAnotherURL.com YetAnotherURL.com">
<PROPERTY name="docroot" value="/PathToYourDocumentRoot4"/>
<USERDB id="default"/>
</VS>     
<VS id="VS6" connections="ls4" mime="mime1" aclids="acl1" urlhosts="www.AsManyURLsAsNeddedSeparatedBySpace.com">
<PROPERTY name="docroot" value="/PathToYourDocumentRoot5"/>
<USERDB id="default"/>
</VS>          
</VSCLASS>
Hope it helps.
Alexander aka ttalex

Similar Messages

  • App Server 9 - virtual server listener

    Problem - getting 'Already bound: 80' if virtual server using 2 IP's
    Yes, I know the answer to the question is...
    There MUST be something else bound to port 80 - but there ISN'T.
    Pretty 'basic' stuff. But, after 2 days work, I am
    unable to configure with 2 different IP's - I know it
    'should work' - but curious if anyone can confirm it DOES work?
    fresh install OS & Application Server
    Sparc Solars 11/06, Sun V210
    Java Aplication Platform SDK-5 Update 3
    DNS: (x's are valid IP address)
    x.x.x.34 -> web30.domainabc.com - machine primary IP bge0
    x.x.x.35 -> www.domaindef.com - 2nd IP bge0:1
    ======== WORKS ==== (listens to all IP's)
    listeners...
    admin-listener true 0.0.0.0 8444 __asadmin
    http-listener-2 true 0.0.0.0 443 server
    http-listener-1 true 0.0.0.0 80 server
    virtual servers...
    server http-listener-1,http-listener-2
    __asaadmin admin-listener
    domaindef http-listener-1
    ======== DOES NOT WORK ====
    listeners...
    admin-listener true x.x.x.34 8444 __asadmin
    http-listener-2 true 0.0.0.0 443 server
    http-listener-1 true x.x.x.34 80 server
    http-domaindef true x.x.x.35 80 domaindef
    virtual servers...
    server http-listener-1,http-listener-2
    __asaadmin admin-listener
    domaindef http-domaindef
    netstat -a ONLY shows domainabc.com using port 80
    NOTHING else is using port 80
    Server will not restart - server log shows:
    grizzlyHttpProtocol.endpoint.initerror
    java.net.BindException: Already bound: 80
    WHILE in Admin, if 'Enable' listener http-domaindef
    it WORKS - but netstat shows the server 'clobbered' the x.x.x.34:80
    and is only running the x.x.x.35:80 listener instead
    [#|2007-04-16T17:09:44.261-0400|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardService|_ThreadID=22;_ThreadName=httpWorkerThread-8444-1;_RequestID=ea8003f3-d4df-40bd-a403-558f4f6928a2;|Connector.initialize
    LifecycleException: PWC3985: Protocol handler initialization failed: java.net.BindException: Already bound: 80
    at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1592)

    You are mixing version.
    EJB 2.0 is part of J2EE 1.3.
    EJB 2.1 is part of J2EE 1.4.
    Oracle Application Server 9.0.4 supports J2EE 1.3
    There is also a preview of the J2EE 1.4 version.
    Both can be found here:
    http://www.oracle.com/technology/tech/java/oc4j/index.html

  • SJSAS 8.0.0_01 - Virtual-server/http-listener

    Hi!
    I want to set up three domains to be mapped to three different webapps on the same physical server. Since every HTTP-listener belongs to one virtual-server and there can't be two listener for the same port, how can I set up three different listener using the same port and different virtual servers?
    A different problem: Why can't I choose a webapp that is deployed within a Enterprise Application to be the default webapp of a virtual server?
    Thanks in advance,
    Christoph

    Hi David!
    Thank you again for answering, I very much appreciate your help.
    No, there is no listener interferring on the same port, that is for sure. Actually, you can't even create a listener for a taken port.
    Unfortunately I can't edit the router configuration, but that's a different problem.
    Here's an extract of the listener/virtual server configuration of my domain.xml, perhaps someone can see my mistake.
    This is how I tried to set up the port 8008 for two different domains to different webapps ( which gave me a adress-is-already-in-use(8008)-error):
    <http-listener acceptor-threads="1" address="0.0.0.0" default-virtual-server="csde" enabled="true" id="http-listener-x" port="8008" security-enabled="false" server-name="" xpowered-by="true"/>
    <virtual-server default-web-module="csweb" hosts="csde" http-listeners="http-listener-x" id="csde" state="on">
    <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
    <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
    </virtual-server>
    <virtual-server default-web-module="adminapp" hosts="cscom" http-listeners="http-listener-x" id="cscom" state="on">
    <property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
    <property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
    </virtual-server>
    Thanks in advance for any suggestion,
    Christoph

  • Need help in creating virtual server

    Hi
    I have configured the sun ONE portal server to run on a domain p1.test.com. A default virtual server with the listen socket is existing for this virtual server. But now I need to access the portal with another domain name p1.test.co.in. I have tried creating another virtual server but it is not working. Please help me in creating the virtual server. For the "urlhost", whether I have to specify the original machine name or new domain name. Please help me in this issue.
    Regards
    ram

    Hi,
    Thanks for your reply. Actually I need the same content for both the url's. The DNS entries are already for the two urls's. It is getting the login page. But after giving the credentials it dosent brings the portal desktop page (seems to be going in a loop).
    I have my Sun ONE LDAP server configured with the domain "test.com". Is there any changes that I have to make in the LDAP. Please help me in this issue.
    Thank You.
    Best Regards
    ram

  • Listen socket

    Hello,
    Can a listen socket be used for multiple webservers? Is it necessary to have a listen socket for individual virtual server?

    Multiple listen sockets can use the same IP address, but they must be listening on different ports.
    Multiple listen sockets can use the same port as long as the IP addresses are different.
    Please verify the doc section about this with what you want to make exactly ===>
    http://docs.sun.com/source/819-0130/agvirtual.html#wp1011171

  • Virtual server questions

    Hi,
    My objective is to create a virtual server for www.anothercompany.com on the same port 80. The instance has by default www.mycompany.com running.
    1] While creating the virtual server, I should enter a URL Host. What is this? Should it be www.anothercompany.com or the host where the web server is running on?
    2] how to configure each virtual server to have its own server.xml, obj.conf, and other configuration files?
    thanks

    I recently did this on a solaris system.
    Here are the steps:
    Get a new IP address for server
    Add the additional IP address to system interface
    cd /etc
    ls /etc/hostname.* (this gives you the type which I will use ## )
    edit /etc/hosts to add new IP and name
    cp /etc/hostname.## /etc/hostname.##:1
    edit /etc/hostname.##:1 to be name in host table
    ifconfig ##:1 plumb
    ifconfig ##:1 information (IP netmask broadcast etc)
    ifconfig ##:1 up
    Modify existing webserver so it no longer uses 0.0.0.0
    admin console - edit listen sockets
    select socket (ls0, ls1, etc)
    modify IP from 0.0.0.0 to IP of original webserver
    apply changes
    Add new webserver specifying new IP address in socket
    Since it has a different IP, you can use port 80 without problems

  • Virtual Server Logging Problem

    I'm currently using Sun Application Server 9. I've created a virtual server together with a new listener on a port 8081. I have two problems here:
    1) The website on the virtual server runs fine. And I've coded System.out.println on several servlets for assisting purposes. My problem is that, i can't see those message printed on the server.log by System.out.println.
    2) The same copy of WAR file has been deployed to the virtual server which it's able to perform JDBC functions in default server. Thing turns funny when the same WAR file that runs on the virtual server is unable to perform the JDBC functions.
    Can't figure out why. Please help me.
    Thanks!

    There are two kinds of virutal servers - IP/Socket/Port based, and URLHost based.
    You created a IP/Socket/Port based virtual server. Instead, you should look for the URLHost fiend in the virtual server pages and change it to reflect the correct DNS name it should respond to. Make sure this VS (and the default) are both attached to the port 80 listen socket.

  • Error while creating virtual server in sunone web server 6.1

    I created virtual server class called vs1 and virtual server called vsr1 under it. I deleted them . now while i am trying to create another virtual server class by setting lisener socket and giving it a name. when i create virtual server class and click ok and then apply to apply changes it gives me error with message:
    File System error: can not open file for reading
    c:/iPlanet/Servers/myservername/[email protected]
    What's the solution ?
    Thanks in Advance,

    Hi..
    Thanks for your reply...
    Executed following command in OVS server..Please find the output of that command..
    [root@IRIMSOVM utils]# ./do_rpc.py https://oracle:[email protected]:8899 echo hello
    echo ['hello'] =>
    success:echo=hello
    [root@IRIMSOVM utils]#
    Thanks...
    YJR

  • Changes are not saved under 'listen sockets' - Webserver 6.1 SP2

    Hi all,
    I'm running Webserver 6.1 SP2 on Solaris 9 and face a strange behaviour when I make changes under 'Listen sockets'. I want to enable nearly everything regarding SSL2 and SSL3 to serve older IE browser versions.
    My config is like
    SSL Version 2 - [enabled]
    Use the default set of SSL version 2 ciphers [enabled]
    <here I check every checkbox>
    <also with SSL Version 3 and TLS Ciphers>
    Then I choose OK - "listen sockets edited" - Apply changes - the server gets restarted.
    But when I view my changes again I see that
    SSL Version 2 [enabled] ... (which is ok )
    <but here all following checkboxes are disabled>
    Mmmh, strange.
    Because of that I still can't connect with IE5.0 SSL2, SSL3 enabled (simulating a customer with an older version).
    The error log says "...SSLv2 is on, but no SSLv2 ciphers are enabled. SSLv2 connections will fail."
    But the checkbox for SSL2 is enabled!
    Someone else with this situation??
    Greetings Nick

    It's an admin gui bug you are running into. The admin gui is not making the proper config changes into the server.xml for turning on the SSL2 ciphers.
    Workaround: edit your server.xml file, find the line for SSLPARAMS and look for the ciphers for sslv2 and change all '-' signs to '+' to turn on the sslv2 ciphers.

  • Iws6sp3 Configuring virtual server administrator�s user interface

    Hi I am trying to configure my virtual server admininstrator interface. I followed the admin guide iws60 816-1379-01 May 2001, Chapter 13 "Using Virtual Servers" page 307. I followed all the steps however when I go to my browser, what should I type in for the URL?
    Example given:
    server_name:port/user-app/server_instance/virtual_server_ID
    Q1. should mine will be:
    http://127.0.0.1:8889/user-app/test.mytest.com/https-test.mytest.com
    if I am trying out my default virtual server?
    Q2. If I have created another virtual server called, esample.indoors.com will that by my vistual_server_id?
    Q3. Why after adding the extra codes into my server.xml, I cannot access my default admin port which is 8888?
    Below is my server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- declare any variables to be used in the server.xml file in the ATTLIST below -->
    <!DOCTYPE SERVER SYSTEM "server.dtd" [
    <!ATTLIST VARS
    docroot CDATA #IMPLIED
    adminusers CDATA #IMPLIED
    webapps_file CDATA #IMPLIED
    webapps_enable CDATA #IMPLIED
    accesslog CDATA #IMPLIED
    user CDATA #IMPLIED
    group CDATA #IMPLIED
    chroot CDATA #IMPLIED
    dir CDATA #IMPLIED
    nice CDATA #IMPLIED
    >
    ]>
    <SERVER legacyls="ls1">
    <VARS accesslog="E:/iPlanet/iws6sp3/https-admserv/logs/access"/>
    <LS id="ls1" ip="0.0.0.0" port="8888" security="off" acceptorthreads="1">
    <CONNECTIONGROUP id="group1" matchingip="default" servername="test.mytest.com" defaultvs="https-admserv"/>
    </LS>
    <MIME id="mime1" file="mime.types" />
    <ACLFILE id="acl1" file="E:/iPlanet/iws6sp3/httpacl/generated.https-admserv.acl" />
    <VSCLASS id="defaultclass" objectfile="obj.conf" rootobject="default" acceptlanguage="on">
    <VS id="https-admserv" connections="group1" mime="mime1" urlhosts="test.mytest.com" aclids="acl1">
    <VARS webapps_file="web-apps.xml" webapps_enable="on"/>
    <USERDB id="default" database="default" />
    </VS>
    </VSCLASS>
    <LS id="ls5" ip="0.0.0.0" port="8889" security="off" acceptorthreads="1" blocking="no">
    <CONNECTIONGROUP id="group5" matchingip="default" servername="test.mytest.com"
    defaultvs="useradmin"/>
    </LS>
    <VSCLASS id="userclass" objectfile="userclass.obj.conf" rootobject="default" acceptlanguage="on">
    <VS id="useradmin" connections="group5" state="on" mime="mime1" urlhosts="user-app" aclids="acl1">
    <VARS webapps_file="user-apps.xml" webapps_enable="on"/>
    <USERDB id="default" database="default" />
    </VS>
    </VSCLASS>
    </SERVER>

    Hi Chris,
    thanks for your reply! Pilot Extended Listener; Pilot Listener; WWW and JBOSS are running and I started Pilot Extended Listener before Jboss, but it doesn't work.
    It tries to open http://localhost/pilot/scriptmain.pw?userinfo=/pilot/pipadmin/adminstart4.htm but there isn't a file "scriptmain.pw" in the pilot directory, only the file "scriptmain.pip". Maybe it is missing?!
    best regards,
    Rob

  • Business connector server on Virtual Server

    Hi,
    Currently our 4.6 release Business Connector servers running on Windows NT Operating system. We would like to upgrade them to BC release 4.7 on Windows 2000 operating system on Virtual servers.
    Are there any known issues/disadvantages if we install Business connector servers on Virtual Server rather than a Physical server?
    These virtual servers will be in the same domain as that of SAP systems. Host names of the upgraded Virtual servers will be same as the current production BC hosts.
    Thanks,
    Srini

    Technical Data
    These functions are:
    Changed, new, deleted
    For Release
       Software Component
    ·        Component: SAP Business Connector (external)
    ·        Release: 4.7
    Assignment to Application Component
    BC-MID-BUS (SAP Business Connector)
    Country Setting
    Valid for all countries
    Use
    The following information provides you with an overview of the new features in SAP BC Release 4.7: It also tells you about incompatible changes that you need to know about before performing an upgrade.
    SAP BC 4.7 is based on Integration Server 4.6 from webMethods. However, the SAP BC elements in Integration Server 4.6 have been redeveloped (see below for details).
    Features
    Additional Functions in SAP BC Developer
    As well as SAP BC Administrator GUI, you can now use SAP BC Developer to perform typical development tasks.  You do not need administrator authorizations in SAP BC Developer to do this. For example, with SAP BC 4.7 you can use SAP Lookup to generate elements for the Developer.  This enables you to gather information about function modules, structures (tables), BAPIs and IDocs in an SAP system, and then generate outbound maps or records for these objects directly.
    SAP BC Developer contains a new menu, SAP, which contains the following functions:
    ·        Look up a function module and generate an outbound map
    ·        Look up a structure definition and generate a record.
    ·        Lookup a business object.
    ·        Look up an IDoc and creating a Record.
    ·        Browser for Function Maps.
    In addition, the Developer now also supports the following actions:
    ·        Generate an SAP inbound map if you want an SAP system to run a service in SAP BC.
    ·        Generate an SAP outbound map to execute a function module in an SAP system.
    ·        Generate a record based on an SAP ABAP Dictionary structure.
    ·        Generate a record based on an SAP IDoc.
    SAP BC Developer now also supports a proxy bypass list. This means that you no longer need to define whether a connection runs through a proxy; instead, the bypass list performs this task.
    New Public Services on SAP BC Server
    pub.string:gzip
    Compresses the specified input string and generates a check total (optional). For measurements or for statistical purposes, the lengths of the zipped and unzipped strings are provided as output.
    ·        pub.string:ungzip
    Decompresses a specified input string, which was compressed with pub.string:gzip, and verifies the check total (optional).
    ·        pub.string:numericParse
    Analyzes a number in accordance with a given number pattern.
    ·        pub.math:randomLong
    Generates a pseudo random number and sends its string representation in a pipeline variable. You can use this number as a universal identifier with an acceptable level of security, as long as it is used in non-distributed scenarios and for a small number of variables.
    ·        pub.file:head
    Shows the start of a given file.
    ·        pub.file:tail
    Shows the end of a given file.
    ·        pub.flow:sleep
    Puts the current service into sleep mode for the specified period (in seconds).
    Restructuring of the WmPartners Package
    The WmPartners package in SAP BC Server has been completely restructured and now offers the following enhancements:
    ·        Improved status information in the messages displayed in the Transaction Store and the Audit Log. This solves a range of problems, such as incorrect status information being displayed by IDocs.
    ·        Improved search and sort options for transactions in the file system of the Message Store. In the Transactions menu, SAP BC Administrator GUI offers you a new option, Message Store Query Settings, which enables you to select and delete transactions. In Release 4.7, the Message Store can also be displayed on separate pages, which makes it easier to edit large numbers of transactions.
    ·        Improved search and sort options for Routing Rules. In the Routing Rules menu, SAP BC Administrator GUI offers you a new option, Routing Rule Filter Settings, which enables you to restrict the number of routing rules that are displayed, and to sort the display. The filter accepts all combinations of characters, and the placeholders '*' (string of characters) and  '?' (one character). This makes it easier to sort and search for routing rules, especially if you need to process a large number of communication partners and message types.
    ·        Forwarding the "Confirm Event" tRFC (triggered by an SAP system) to the next receiver (for the following transports: B2B Service, ALE (R/3 IDoc), and XML (only if another SAP BC is the receiver)) and triggering "Confirm Event" from an external client. Both of these cases can be significant if the final receiver is an SAP system. In this case, "Confirm Event" removes the transaction ID from the ARFCRSTATE table, which can improve system performance significantly when a large number of tRFCs are being processed.
    Support for Distributed Statistic Records (DSRs)
    SAP BC has supported the generation of DSRs since Release 4.7  DSRs enable you to monitor the performance of each SAP system and its components. In this way, you can check how much system load is produced by each individual component, and how many resources are being used. This enables you to identify "performance leaks" and optimize system performance.
    The DSR support integrated in SAP BC also allows you to measure the total retention period of a process in SAP BC. To evaluate the DSRs, you require additional SAP software, including specific versions of the SAP Solution Manager, and the RFC Library. The exact requirements are still being defined.
    The details will be published in SAP Note 620418. You can find a link to this SAP Note on the SAP BC download page at http://service.sap.com/sbc-download.
    SAP BC Server Core Enhancements
    ·        Reverse Invoke
    The reverse invoke protocol has been enhanced and now allows you to forward more information, such as IP addresses.
    If, for example, an application fails because a connection is broken, and other working connections exist, the connection is checked using a ping.
    From now on, the internal server can open or reopen a defined number of connections, if necessary.
    A document is generated for any exceptions on the internal server.
    ·        Email Listener
    New Features in the Email Listener
    ¡        Reprocessing of invalid mails for IMAP Server
    ¡        Processed mails selected as "unread" if they have not been deleted.
    You can also specify whether mails with exceptions are deleted or not.
    ·        Update Manager
    The Update Manager manages fixes and patches for the upgrade of an SAP BC Server. Previously , the Update Manager allowed a fix to set other fixes as obsolete, using the updateVoidList field in the update.cnf file of the fix. An obsolete fix is not shown in classpath, but up to now the Update Manager has not been able to give a fix in classpath priority ahead of this other fix. The Update Manager has now been enhanced to support these fix priorities:  The update.cnf file in the fix now contains an updatePrecedeList field.
    Incompatible Changes
    SAP BC Delivery Without JVM
    The Windows Version of SAP BC 4.7 is no longer delivered with a Java Virtual Machine (JVM). The SAP BC 4.7 Installation Guide describes the JVMs that are supported.
    See also
    For more information, see the documentation on the SAP Business Connector, under
    ·        http://service.sap.com/connectors (SAP Business Connector  ® SAP Business Connector in Detail  ® Documentation).

  • Listening socket class freezes my program

    i originaly created a listening socket in my main gui class but everytime i execute it, my gui appears with no visible components inside and freezes. i am not able to close the gui window by clicking on the x button at teh top right hand corner.
    i then removed my listening socket and made a new class altogether that listens to socket connection. i get the same problem when i execute both my gui and listening socket class. any suggestions?
    heres my socket listening class
    package icomm;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class listening {
        /** Creates a new instance of listening */
        public listening() {
         public void listeningSocket()
                ServerSocket server = null;
                boolean listening = true;
                try
                    //listen in port 4444;
                    server = new ServerSocket(14);
                catch(IOException x)
                    JOptionPane.showMessageDialog(null, "cannot listen to port 4444", null, JOptionPane.ERROR_MESSAGE);
                while(true)
                     ChatDialog w;
                    try
                      w = new ChatDialog(server.accept());
                      Thread t = new Thread(w);
                      w.setVisible(true);
                      t.start();
                     // server.close();
                    catch(IOException x)
                        JOptionPane.showMessageDialog(null, "could not open chat window", null, JOptionPane.ERROR_MESSAGE);
    }and here is the code that launches the gui and the listening class from my login button..
    //laod main gui
                        show_main_gui(text_username.getText());
                        //run listening socket
                        listening listen = new listening();
                        listen.listeningSocket();

    you do not need any thread for this - the socket will not block your frame. here is an example which works:
    import java.net.ServerSocket;
    import javax.swing.JFrame;
    public class Sockframe extends JFrame{
         public Sockframe(){
           super("Socket using Application");
           setDefaultCloseOperation(EXIT_ON_CLOSE);
           setSize(100,100);
          * @param args
         public static void main(String[] args) {
              // show new Frame
              Sockframe f = new Sockframe();
              f.setVisible(true);
              try{
                   // do socket stuff
                   ServerSocket s = new ServerSocket(4567);
                   s.accept();
              } catch(Exception exc){
                   exc.printStackTrace();
    }Did you provide some default close operation for the frame? The frame needs this to know how to behave when the X-button os pressed.

  • SJSW7-Directing virtual server log

    all my virtual server logging are stored in the default directory. I have one instance running, however, I would like to create a separate folder for each virtual server and store their log information in it. I tried configuring a virtual server under log preferences and have both server log and access log boxes checked and the location set but after testing it out, both directories are empty.

    I already applied changes and reboot instance. my virtual server that I'm configuring is "uc.memphis.edu"
    server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    -->
    <server>
    <cluster>
    <local-host>peter-vm2-2003.memphis.edu</local-host>
    <instance>
    <host>peter-vm2-2003.memphis.edu</host>
    </instance>
    </cluster>
    <log>
    <log-file>../logs/errors</log-file>
    <log-level>info</log-level>
    </log>
    <jvm>
    <java-home>C:/Sun/WebServer7/jdk</java-home>
    <server-class-path>C:/Sun/WebServer7/lib/webserv-rt.jar;C:/Sun/WebServer7/lib/pwc.jar;C:/Sun/WebServer7/lib/ant.jar;${java.home}/lib/tools.jar;C:/Sun/WebServer7/lib/ktsearch.jar;C:/Sun/WebServer7/lib/webserv-jstl.jar;C:/Sun/WebServer7/lib/jsf-impl.jar;C:/Sun/WebServer7/lib/jsf-api.jar;C:/Sun/WebServer7/lib/webserv-jwsdp.jar;C:/Sun/WebServer7/lib/container-auth.jar;C:/Sun/WebServer7/lib/mail.jar;C:/Sun/WebServer7/lib/activation.jar</server-class-path>
    <debug>false</debug>
    <debug-jvm-options>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896</debug-jvm-options>
    <jvm-options>-Djava.security.auth.login.config=login.conf</jvm-options>
    <jvm-options>-Xms128m -Xmx256m</jvm-options>
    </jvm>
    <thread-pool>
    <max-threads>128</max-threads>
    <stack-size>131072</stack-size>
    </thread-pool>
    <default-auth-db-name>keyfile</default-auth-db-name>
    <auth-db>
    <name>keyfile</name>
    <url>file</url>
    <property>
    <name>syntax</name>
    <value>keyfile</value>
    </property>
    <property>
    <name>keyfile</name>
    <value>keyfile</value>
    </property>
    </auth-db>
    <acl-file>default.acl</acl-file>
    <mime-file>mime.types</mime-file>
    <access-log>
    <file>../logs/access</file>
    </access-log>
    <http-listener>
    <name>http-listener-1</name>
    <port>80</port>
    <server-name>peter-vm2-2003.memphis.edu</server-name>
    <default-virtual-server-name>peter-vm2-2003.memphis.edu</default-virtual-server-name>
    </http-listener>
    <http-listener>
    <name>http-listener-2</name>
    <port>83</port>
    <server-name>webtest.memphis.edu</server-name>
    <default-virtual-server-name>webtest</default-virtual-server-name>
    </http-listener>
    <http-listener>
    <name>http-listener-3</name>
    <port>86</port>
    <server-name>uc.memphis.edu</server-name>
    <default-virtual-server-name>uc</default-virtual-server-name>
    </http-listener>
    <virtual-server>
    <name>peter-vm2-2003.memphis.edu</name>
    <http-listener-name>http-listener-1</http-listener-name>
    <host>peter-vm2-2003.memphis.edu</host>
    <object-file>peter-vm2-2003.memphis.edu-obj.conf</object-file>
    <document-root>c:/webprod/temp1</document-root>
    <acl-file>peter-vm2-2003.memphis.edu.acl</acl-file>
    <access-log>
    <file>C:/logs/peter-vm2</file>
    <format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% %Req->headers.referer% %Req->headers.user-agent% %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% %Req->reqpb.protocol% %vsid% </format>
    </access-log>
    </virtual-server>
    <virtual-server>
    <name>webtest</name>
    <http-listener-name>http-listener-2</http-listener-name>
    <host>webtest.memphis.edu</host>
    <object-file>webtest-obj.conf</object-file>
    <document-root>c:/webprod/webtest</document-root>
    <acl-file>webtest.acl</acl-file>
    </virtual-server>
    <virtual-server>
    <name>uc</name>
    <http-listener-name>http-listener-3</http-listener-name>
    <host>uc.memphis.edu</host>
    <object-file>uc-obj.conf</object-file>
    <document-root>c:/webprod/uc</document-root>
    <access-log>
    <file>c:/webprod/logs/uc</file>
    <format>%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] "%Req->reqpb.clf-request%" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% %Req->headers.referer% %Req->headers.user-agent% %Req->reqpb.method% %Req->reqpb.uri% %Req->reqpb.query% %Req->reqpb.protocol% %vsid% </format>
    </access-log>
    <log-file>c:/webprod/logs/uc</log-file>
    </virtual-server>
    </server>
    And this is my obj.conf for the virtual server "uc-obj.conf"
    # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    # Use only forward slashes in pathnames as backslashes can cause
    # problems. Refer to the documentation for more information.
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Sun/WebServer7/lib/icons" name="es-internal"
    NameTrans fn="home-page" path=""
    PathCheck fn="nt-uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.htm,index.html,home.html,index.jsp"
    PathCheck fn="set-cache-control" control="public"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service fn="php5_execute" type="magnus-internal/x-httpd-php"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service fn="append-trailer" type="text/html" timefmt="%B %d, %Y %I:%M" trailer=""
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="x-httpd-php">
    ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
    Service fn="php5_execute"
    </Object>

  • JBoss Virtual server

    How to create JBoss virtual server in our PC
    My OS is windows but I want to create it linux platform
    Thank you

    This question has almost nothing to do with DNS so stop worrying about that.
    As far as the actual problem. An HTTP server, whether that's IIS or Apache or JBoss listens and responds to requests on port 80. And you cannot have more than one application/server of any type trying to listen (bind) to the same port at the same time so you have a problem.
    The simplest solution (he said without actually knowing how to make JBoss specifically do this) would be to make JBoss run on a port that isn't 80. For example if you made it run on port 8888. Then you would access your JBoss application from http://mydomain.com:8888
    There are other solutions but you will require an administrator to help you implement them. The two other solutions off the top of my head are as follows.
    1) Using IIS as a front end redirect jsp requests to JBoss. I know that such thing is possible in Apache and I am sure that by hook or by crook such a thing would be possible in IIS although good luck figuring that out.
    2) Run the JBoss on a seperate physical server. Or at least bound to a different IP address then what IIS is. If you went this route then you would use DNS to create a second host that points to the IP of the JBoss server. For example http://jboss.mydomain.com This is the only way in which DNS might be involved in your answer but you need a second IP in order to make that work.

  • Help With Virtual server

    Hi, I'm trying to get virtual server set up on my computer. I seem to be having trouble with my computer's configuration, I've edited ssh_config to use port 2222 (port 22 is blocked by my ISP) and to use GatewayPorts, so I know the connection is reaching my computer, but ssh -v [email protected] gives me the following:
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug1: Connecting to 207.148.144.12 [207.148.144.12] port 2222.
    debug1: connect to address 207.148.144.12 port 2222: Connection refused
    ssh: connect to host 207.148.144.12 port 2222: Connection refused
    I've played around with my config files and can't find a way to get it not to be refused. Remote login is on. I'm not a UNIX user much at all so I might need a bit more help
    Do I have to enter an authentication name in my configuration somehwere? Have I forgoetten to do anything? And is it just me or is it actually telling me its October of last year?
    Thanks in advance,
    ~Stuart Barth

    Are you trying to connect to port 2222 on the server? if so, changing ssh_config isn't going to have any effect.
    ssh_config controls the ssh client configuration. In addition you need to tell the server to listen on port 2222 as well. It doesn't sound like you've done that.
    Normally this would be controlled by the file /etc/sshd_config, but in the case of Mac OS X, sshd doesn't actually run as a daemon, so even this won't work.
    Mac OS X uses launchd to manage the sshd server - invoking the sshd process when a network connection comes in. Therefore it's launchd that you need to change to tell it to listen to port.
    You'll need to edit the file /System/Library/LaunchDaemons/ssh.plist and change the section:
    <pre class=command> <key>SockServiceName</key>
    <string>ssh</string></pre>
    to replace 'ssh' with the port number you want to use (off hand I'm not sure if substituting a port name with a number will work, but it's worth a try.
    The alternative, and somewhat simpler, option is to setup port forwarding on your router (assuming you're using some kind of NAT router) to forward connections from port 2222 on the public interface to port 22 on the server. This will only work if your router supports changing the port number as well s the destination IP address (not all of them do), but if it does then you don't need to change anything on the server.

Maybe you are looking for

  • New infinity connection not working.

    So I had the openreach engineer round yesterday to upgrade me to infinty. When he finished installing the kit he speed checked the line and got me to test the phone and broadband was working and everything was fine. Within 15 minutes of him leaving I

  • Transaction SOLMAN_SET does not exist

    Hi All, I have installed SMD agent  in one if the R/3 System's and trying to configure that managed system in solution manager .As per the document we need to configure managed system from transaction SOLMAN_SETUP. But the txn SOLMAN_SETUP does  not

  • Extremely slow after upgrade

    I got Tiger working but the start up is sooo slow, like HOURS slow. It takes FOREVER to just get to the Finder and be able to move around on there. And when I open an App. it takes FOREVER too, and to make a change in a preference, same thing- Beachb

  • Banging My Head Against Grep Wall

    I'm trying to filter lines out of a log within a shell script, with line like this... cat log | grep -v "filter word" | grep -v "filter 2" > newLog ...but I cannot find the grep or egrep command for something slightly more complex than a simple match

  • I do not remember my password of filevault and i can not install some softwares on my mac please help me

    i do not remember my password of filevault and i can not install some softwares on my mac please help me