Create different instance ??

on the basis of some values(1,2,3,4..) i hav to create different objects ..
if any one can suggest me any way to do it apart from..
IF ELSE
SWITCH
the list is long so i can't create instances and store them in hashtable or any other list..
is there any design pattern for it..
Class.forName("Aclass").getInstance().. return Object type object that can't be referenced by Aclass
thanks

it's called factory pattern or virtual constructor.
%

Similar Messages

  • Creating different instances of one class

    Hi everyone thanks so much for all the help so far! I want to create a new instance of class coauthorship everytime the loop goes around to a new record! However thats not whats happening it only creates 1 instance of coauthorship and it is overwritten with every loop here is Class Coauthorship
    public class Coauthorship {
        private String name, coauthor, title;
        private List titles;
        /** Creates a new instance of Coauthorship */
        public Coauthorship(String name1, String name2, String TITLE){
            name = name1;
            coauthor = name2;
            title = TITLE;
            //List titles = Collections.synchronizedList(new ArrayList(alltitles));
        public String getauthor(){
            return name;
        public void settitle(String TITLE){
            title = TITLE;
        public void setname(String name1){
            name = name1;
       public void setcoauthor( String name2){
            coauthor = name2;
      // public void addTitle(String TITLE){
        //    if(TITLE != null)
        //    titles.add(TITLE);
        public String getcoauthor(){
            return coauthor;
           public String gettitle(){
            return title;
           public int getTitleCount(){
               return titles.size();
             public void printcoauthors(String currentauthor){
             //Extractdata ed = new Extractdata();
            // Coauthorship c = new Coauthorship(ed.getname1(), ed.getname2(), ed.getTITLE());
             if(currentauthor.equals(getauthor()))
                 System.out.println(getcoauthor());
             else if (currentauthor.equals(getcoauthor()))
                 System.out.println(getauthor());
             System.out.println(gettitle());
             System.out.println("Hello is this thing on?");
    }and here is where the values are coming from in Class Extractdata
    //Checks if the document was cowritten
                    if(authors.getLength() > 0)            
                                for(int z = 0; z < authors.getLength(); z++){
                               //Begin with the second author so not to include the author in the list of coauthors
                                        for(int w = 1; w < authors.getLength(); w++){
                                            Coauthorship coauthorship = null;
                                            //Ensures that the author is not counted as a co-author
                                            if(z != w){
                                                name1 = names[z];
                                                name2 = names[w];
                                                Coauthorship c = new Coauthorship(name1, name2, TITLE);
                                                c.setname(name1);                                           
                                                c.setcoauthor(name2);
                                                c.settitle(TITLE);
                                }Thanks so much for everyones help so far

    One thing to remember is that when you write:
    Coauthorship c = new Coauthorship(name1, name2, TITLE);
    Coauthorship c is creating a reference variable that points to an object that is of class type Coauthorship. It is NOT the object itself. It only points to the object in question.
    It is the new Coauthorship(...) that actually creats the object in memory. So each time through the loop you are asking for a new Coauthoriship object and a new reference to that new object. Of course, Java (meaning the JVM) may (or always will - not sure here) re-use the reference variable at the same memory location. You loose the reference to each object create in the previous loop iteration leaving you with a reference pointing to the last object created in the loop when the loop ends.
    If you could state in plain English what your goal is, that would help. From your code, I can tell that the goal (or problem domain) is not clear. Or at least, how to achieve that goal is not clear. State the requirements using ergular words (not psuedo code or such) that would help get things a little clearer.

  • Create a Different instance with Separte amserver,psconsole,directory serve

    Hi
    I have created different instance in same node using webserver 7.0(Sun Java Sytem portal Server 7.1 Update 2). i want to know about how to create different instance each instance have separate acessmanager, psconsole and directory server, is it possible?? i am using sun java sytem portal server 7.1 update 2.
    Can you any one please tell me the further steps..
    Cheers..
    Sekar M

    This is possible but not easy to explain in a few lines on a forum. You may want to consider using Solaris 10 zones instead and just put each stack into a separate zone.

  • Arrays within custom Classes - same array for different instances?

    Hello all,
    I have made a very simple custom class for keeping track of groups of offices for a company.  The class has a Number variable to tell it how many different offices there are, and an Array to store the individual offices by name.  It looks like this.
    class officeCluster
        static var _className:String = "officeCluster";
        // variables
        var numOffices:Number;
        var locationArray:Array = new Array();
        // functions
        function officeCluster()
            trace("officeCluster constructor");
    Very simple!
    Now, it is my understand that when I create different instances of the class, they will each have their own version of "numOffices" and their own version of "locationArray".
    When I run traces of "numOffices", this seems to be true.  For example,
    trace(manufacturingOfficeCluster.numOffices);
    trace(servicesOfficeCluster.numOffices);
    yields
    5
    4
    In the output panel, which is correct.  However, there is trouble with the locationArray.  It seems that as I assign different values to it, regardless of what instance I specify, there is only ONE array- NOT one for each instance.
    In other words,
    trace(manufacturingOfficeCluster.locationArray[1].theLocation);   // theLocation is a String.  The locationArray itself holds Objects.
    trace(servicesOfficeCluster.locationArray[1].theLocation);
    yields
    New Haven, CT
    New Haven, CT
    even though I have defined elsewhere that they are different!
    Is anyone aware of any issues partaining to using Arrays within Class instances?  Any help would be appreciated!
    note:  I've been able to work around this by creating multiple arrays within the class and using a different one for each instance, but this seems very sloppy.

    Unfortunately, the code segment you attached results in:
    12
    12
    in the output panel.   So the problem must lie elsewhere!  Let me give some more detail...
    There are several files involved. The "officeCluster" class file looks like this:
    class officeCluster
         static var _className:String = "officeCluster";
         // variables
         var numOffices:Number;
         var locationArray:Array = new Array();
         // functions
         function officeCluster()
            trace("officeCluster constructor");
    I have two actionscript files which contain object data for the individual offices.  They look like this...
    var servicesOfficeCluster = new officeCluster();
    servicesOfficeCluster.numOffices = 4;
    var newHope:Object = new Object();
    newHope.locationName = "New Hope Office";
    newHope.theLocation = "New Hope, NJ";
    //more data
    servicesOfficeCluster.locationArray[0] = newHope; //array index is incremented with each entry
    //more Objects...
    and like this...
    var manufacturingOfficeCluster = new officeCluster();
    manufacturingOfficeCluster.numOffices = 5;
    var hartford:Object = new Object();
    hartford.locationName = "Hartford Office";
    hartford.theLocation = "Hartford, CT";
    //more data
    manufacturingOfficeCluster.locationArray[0] = hartford; //array index is incremented with each entry
    //more Objects...
    As you can see, the only difference is the name of the officeCluster instance, and of course the Object data itself.  Finally, these are all used by the main file, which looks like this- I have commented out all the code except for our little test -
    import officeCluster;
    #include "manufacturingList.as"
    #include "servicesList.as"
    /*lots of commented code*/
    manufacturingOfficeCluster.locationArray[1].theLocation = "l1";
    servicesOfficeCluster.locationArray[1].theLocation = "l2";
    trace(manufacturingOfficeCluster.locationArray[1].theLocation);
    trace(servicesOfficeCluster.locationArray[1].theLocation);
    Which, unfortunately, still yields
    12
    12
    as output :\  Any ideas?  Is there something wrong with the way I have set up the class file?  Something wrong in the two AS files?  I'm really starting to bang my head against the wall with this one.
    Thanks

  • How to create multiple instance of Jboss with different  port number

    Hi all
    Please tell me steps to create multiple instance of Jboss with diffrent port number.
    I tried with this steps, but it does not work for me.
    In conf/jboss-service you will find the binding manager.
       <mbean code="org.jboss.services.binding.ServiceBindingManager"
         name="jboss.system:service=ServiceBindingManager">
         <attribute name="ServerName">ports-01</attribute>
         <attribute name="StoreURL">../docs/examples/binding-manager/sample-bindings.xml</attribute>
         <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
         </attribute>
       </mbean>Please help me on this.
    Thanks in advance

    It is the name of the website for JBoss. That seems rather obvious to me, and you would have found out for yourself if you had tried it.
    Your question is not a Java question and doesn't belong in these forums. It is a JBoss question and you should ask there, or more probably have a look at the JBoss documentation first.

  • How to create multiple instances within same AS

    Ramesh,
    I have a unique problem. I might have to create B2B instances for 4 owners. As in BPEL, I can have separate domains for the 4 clients in the same instance; what is the equivalent in B2B?
    I have a limited number of CPUs and need to install the instances on the same box and hence trying to be creative yet secure here.
    Could you please provide some pointers.
    Thanks
    Shamik

    Hello Shamik,
    Please elaborate your use case. Is this just caters to user management or to really have different domain like bpel for four different users. Please see, b2b do not have the notion of BPEL domain, you might have to install multiple instances of B2B pointing to the same MR.
    Rgds,Ramesh

  • Can I create multiple instances of  realplayer plug-in in one jsp page?

    I want to play meny video files in one jsp web page, these video files are to be played with the embeded plug-in of realplayer, each plug-in was linked(use its SRC property) a different video file. But, to my surprise, when I press the play button, every player played the same video file,not its specified file.
    I have no idea why it did so and what can I do?
    Whether can I create multiple instances of realplayer plug-in in one jsp page, that is to say, each instance is independent of others?
    thanks in advance!

    Generally speaking, Internet Explorer tries not to launch multiple versions of a plug-in. So what's happening is that you load the first video clip, and then before it has a chance to play, you load the second video clip into the same window. (It's like changing songs in WMA.)
    In some cases - this may not work for Real Player, but it's worth trying - if you spawn a new window through a hypertext link and then launch the plug-in in that window, IE will treat it separately. Otherwise, you could not, for example, run two Macromedia Flash applications from different web sites at the same time.
    Keep in mind that only one program can access the soundcard at a time, so Real Player may purposely "pause" or "cancel" other video streams until the active one finishes. If you were using the desktop version, selecting another video by any means aborts the currently running video (i.e., RP won't let you create a separate instance of it).
    The easiest solution is to create a wrapper JSP file that takes the name of the video clip, and plays it. Call that JSP and specify that it should be opened in a new window via the TARGET keyword in the anchor tag. Then hopefully RP itself won't block a second window from running.

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Creating second instance 10g (non rac)

    We are 10G 64bit on a Windows/VM box - or will be:)
    Is it possible to create multiple instances of oracle on a single server?
    Generally speaking - would I create the second instance just like the first instance but with a different db name?
    Any reasons why I wouldn't want to create multiple database instances on the same server?
    Currently we have our client (enterprise manager) installed on a separate box and use the same client to connect to several databases. If I had multiple instances on one server how would enterprise manager connect to multiple instances with the same ip?
    Thanks for taking my question!.
    Kathie

    When running the second DBCA the global database name and sid would be unique as well?Yea, the global database name must be unique.
    I could also use the same flashback directory as this area has the sid in the directory path? Yea, you can use the same flashback directory for any database on the same server.
    Forum question: Is there a way to close a question and give credit for an answer? I dont, know, but the interesting about the participation on this forum is HELP
    Luck.
    Have a good day.
    Regards.

  • Urgent Unable to create the Instance and reconfiguration of planning

    Hi All
    we are using hyperion 9.3.1 for planning. Long time back we did installation and had some applications on different planning instance.
    Now we need to create a new application then we are trying to create the application but we are unable to create becasue instanse is not there, so we are planninng to create a instance by using configuration utility.
    while we are doing configuration at the first step i am unable to fine the product panel Planning is not available.
    Can any one have the answer??
    Thanks in Advance..
    Rao

    Not sure if this Planning Option Not Visible in Configuration Utility will help you, have a look and let us know.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create different log files for different users in log4j

    I want to create different logs for different users, using different appenders for each user so that logs are created in his file only.
    Confusion:How to direct them to different files in my logger class

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create an instance

    Hi all,
    Actually, I want to create an instance without priting or sending to any destination.
    My code steps should be:
    1. logon
    2. get report object
    3. set parameters information
    4. create an instance / schedule report
    once I create all instances for different reports, then I need to read all created instance objects (report with data populated) and sent to printer.
    Is this possible? If possible, please suggest how to proceed further.
    Thanks,
    Krishna

    here is a general code sample - you may need to modify it.
    <%
    IEnterpriseSession oEnterpriseSession = null;
    IInfoStore oInfoStore = null;
    String username = "administrator";
    String password = "<password>";
    String cmsname = "<cmsname>";
    String authType = "secEnterprise";
    String reportName = "<reportname>";
         oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authType);
         oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
         String query =      "select top 1 * from ci_infoobjects where si_name='" + reportName + "' and si_instance=0";
         IInfoObjects reports = oInfoStore.query(query);
         IReport report = (IReport) reports.get(0);
         ISchedulingInfo schedInfo = report.getSchedulingInfo();
         schedInfo.setRightNow(true);
         schedInfo.setType(CeScheduleType.ONCE);
         // schedule the report to default destination.
         oInfoStore.schedule(reports);
         // retrieve report instance. You may have do this multiple times if the report is still in process.
         query = "select top 1 * from ci_infoobjects where si_name='" + reportName + "' and si_instance=1 order by si_creation_time desc";
         IInfoObjects instances = oInfoStore.query(query);
         IInfoObject instance = (IInfoObject) instance.get(0);
         IReportAppFactory rptAppFactory = (IReportAppFactory)es.getService("", "RASReportService");
         ReportClientDocument clientDoc = rptAppFactory.openDocument(instance, 0, Locale.ENGLISH);
         //set PrintReportOptions object properties. Look in RAS SDK documentation for further info.
         clientDoc.getPrintOutputController().printReport(PrintReportOptions object);
         clientDoc.close();
    oEnterpriseSession.logoff();
    %>

  • Creating multiple instances of JTextField

    Hy, I have a JtextField and a JButton. Depending on the
    value inserted in the JtextField, when I click on the JButton,
    I want a new window to open and create multiple instances of
    JTextField.
    I tried to use a for loop, but how do I differentiate among
    the different JTextField
    thanks

    Just put the JTextField instances in an array.see below:
    int NumOfJTextFiled=10;
    JTextField jtextfieldArray[]=new JTextField[NumOfJTextFiled]
    for(int i=0;i<NumOfJTextFiled;i++)
    jtextfieldArray=new JTextField();

  • Create multiple instance in a database

    is it possible to create multiple instance in a database.if possible then is it possible to activate many instance at a time.(in personal edition)

    Instance in Oracle refers to the Oracle database "engine" - a collection of processes using a shared memory area, accessing a physical Oracle database.
    Multiple instances are possible on the same platform for different physical databases. But not a Good Idea..
    Multiple instances on different platforms are for the same physical database using Oracle Real Application Clusters, aka Oracle RAC.
    Thus your question does not make a lot of sense. My guess is that you are in fact refering to an Oracle session instead as this is "in the database" as you refered to.
    Each client that connect to Oracle, creates/establishes an Oracle session. A single client uses one (usually the default) or more sessions (usually used by a multi-threading client).
    By default, the Oracle Instance supports multiple Oracle (client) sessions. Including Personal Oracle. In the past, Personal Oracle limited (via the Listener) the number of remote clients (i.e. clients on other platforms) that can connect. I would assume that this is still the case. I however do not recall that there were a limit imposed on the number of local sessions that could be created - the limiting factor here is afterall the power and resources available by the PC. It's very unlikely that a common PC will be able to support a Personal Edition Oracle instance and 100's of local client sessions at the same time.
    If you do mean instance as per the strict Oracle definition - why would you want to create two Oracle instances (each with its own physical database) on a PC? That does not make sense on a large db server platform. It makes even less sense on a small PC platform.
    Each Oracle instance has overheads (processing and memory). Each physical Oracle database has overheads (system space, temp space, redo, logs, etc). Why duplicate these overheads?
    On a single platform - what can two Oracle instances (less capable because of reduced resources availability) do what a single Oracle instance cannot do faster and better and more effectively? Thus is it not a Good Idea to run multiple instances on a single platform. (exceptions acknowledged)

  • Problem in creating multiple instance of Jboss running on same machine  ???

    Hi all
    Please tell me steps to create multiple instance of Jboss with diffrent port number.
    Actually i want multiple instance of Jboss with different port number running on same machine.
    I tried with this steps, but it does not work for me.
    In conf/jboss-service.xml i added
       <mbean code="org.jboss.services.binding.ServiceBindingManager"
         name="jboss.system:service=ServiceBindingManager">
         <attribute name="ServerName">ports-01</attribute>
         <attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-indings.xml</attribute>
         <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
         </attribute>
       </mbean>
       <mbean code="org.jboss.services.binding.ServiceBindingManager"
         name="jboss.system:service=ServiceBindingManager">
         <attribute name="ServerName">ports-02</attribute>
         <attribute name="StoreURL">D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-bindings.xml</attribute>
         <attribute name="StoreFactoryClassName">
           org.jboss.services.binding.XMLServicesStoreFactory
         </attribute>
       </mbean>But i am getting an exception when i am trying to run jboss server
    16:49:04,656 INFO  [ServiceBindingManager] Using StoreURL: file:/D:/dev/jboss-4.0.2/docs/examples/binding-manager/sample-binding
    16:49:04,750 ERROR [MainDeployer] could not create deployment: file:/D:/dev/jboss-4.0.2/server/default/conf/jboss-service.xml
    org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
            at org.jboss.system.ServiceController.install(ServiceController.java:202)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
            at org.jboss.Main.boot(Main.java:195)
            at org.jboss.Main$1.run(Main.java:463)
            at java.lang.Thread.run(Thread.java:595)
    Failed to boot JBoss:
    org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.system:service=ServiceBindingMana
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:70)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
            at org.jboss.system.ServiceController.install(ServiceController.java:202)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
            at org.jboss.Main.boot(Main.java:195)
            at org.jboss.Main$1.run(Main.java:463)
            at java.lang.Thread.run(Thread.java:595)
    16:49:05,125 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages
    Shutting down
    16:49:05,156 INFO  [Server] Shutdown complete
    Shutdown complete
    Halting VM
    Press any key to continue . . .Please help me on this.
    Thanks in advance

    Then you haven't followed the method correctly. That error is
    addressed specifcally on that site, as that error is the main
    reason for the site. Did you read the note about the "known
    bug" because of the one port that is not included in the
    sample file?
    If you had tried the first method (set up a second IP and
    started both servers with the command line option providing
    an IP) there is no way this error could happen.
    If you followed the second method, and specified a different
    port for every port listed (including the one that is not in the
    sample file per default) then there is, once again, no way that
    this error could happen.
    The error happens on the second server because it is trying
    to bind the same port, using the same address, as the first
    server, which is impossible if you fully implement one of the
    two methods described there.

Maybe you are looking for

  • Connecting an old printer

    I have an old laser printer that I want to connect to my eMac thru the ethernet port, but the printer has only a printer port (the symbol is the two side-by-side arrows, one facing left, the other right). What is the cheapest type of adapter I can ge

  • Report query with multiple selects

    On some of my Report Queries (that have multiple selects) it sometimes changes the rowset when I edit the specific SQL. For example, I have 2 selects in my Report Query andnd when I download the XML my first select's data goes into <ROWSET1> and my s

  • Websphere: Exception JNDI lookup

    Hi All, I am stuck up with JNDI lookup in WebSphere 6 from standalone non J2EE application client JVM. Client JVM has thrown the following exception while lookup: Feb 23, 2005 11:30:47 AM com.ibm.ws.naming.util.Helpers WARNING: jndiGetObjInstNoop Exc

  • Decentralized Warehouse Help

    We have configured Decentralized Warehouse.  We are using R/3 as our central system and our WMS system is a 3rd party system which we'd like to send a flat file to (IDOC).  Believe it or not via secure ftp. The configuration for the functional side i

  • Replicating data between oracle9i(source) and 10g database(Target)

    sucessfully replicated data between source and target in 10g Now I have to replicate the data between oracle9i(source) and 10g database(Target) please help me to solve this issue