facebook

Problems with WebSphere configuration

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 15 posts - 1 through 15 (of 40 total)
  • Author
    Posts
  • #207887 Reply

    I am trying to setup the WebSphere 5 connector and am running into
    problems. I am using WebSphere 5.1 with the IBM JDK under the
    WebSphere directory structure. I am also using Eclipse 3.0 RC1 with
    the latest MyEclipse release.

    When I attempt to start WebSphere there are no errors reported on
    the console but the applications server is not started. If I look in
    the WebSphere SystemOut.log file I see the following:

    [6/3/04 8:48:59:392 EDT] 3f8f096f WsServer E WSVR0003E: Server server1 failed to start
    com.ibm.ws.exception.ConfigurationError: Exception encountered while extracting configuration information for the Name Space
    at com.ibm.ws.naming.bootstrap.NameServerImpl.initialize(NameServerImpl.java:277)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:713)
    at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:659)
    at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:96)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:119)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    Caused by: com.ibm.ws.naming.distcos.NameSpaceConfigurationException: Server information for this server (servername=server1) was not found in the serverindex.xml configuration file.
    at com.ibm.ws.naming.bootstrap.ConfigInfoImpl.validateConfiguration(ConfigInfoImpl.java:415)
    at com.ibm.ws.naming.bootstrap.NameServerImpl.initialize(NameServerImpl.java:266)
    … 10 more

    What am I doing wrong?

    -Jeff

    #207900 Reply

    Scott Anderson
    Participant

    Jeff,

    It looks like your domain isn’t set up correctly from this:

    Caused by: com.ibm.ws.naming.distcos.NameSpaceConfigurationException: Server information for this server (servername=server1) was not found in the serverindex.xml configuration file

    How did you create your domain? It appears that you’re trying to start ‘server1’ and you don’t have one.

    Open the serverindex.xml file for the domain you’re trying to start and look for a line that looks like this to see what the server name really is:

    
      <serverEntries xmi:id="ServerEntry_1" serverDisplayName="server1" serverName="server1" serverType="APPLICATION_SERVER">
    
    #208065 Reply

    I do have a server1. I installed with all of the default options and am
    able to start websphere outside of eclipse. In my serverIndex.xml file
    I do see the definition of server1. To make sure there was nothing
    wrong with my installation I uninstalled and reinstalled WebSphere.

    #208071 Reply

    Scott Anderson
    Participant

    What are *all* the settings (all pages) you’re using for the WebSphere connector? Also, can you additionally post the answers to the questions we ask in the “Posting Guidelines” thread at the top of this forum? That will give us better context from which to start.

    #208078 Reply

    Here is my information:

    OS – Windows XP Professional
    Eclipse Version – 3.0 RC1 build id 200405290105
    Eclipse Installation – I reinstalled a fresh copy from the zip file
    Plugins – There are no additional plugins
    JDK version – Sun JDK 1.4.1
    JDK launcher version – The JDK that shipped with WAS 5.1 (IBM 1.4.1)

    There are no errors in my .log file.

    Here are the settings for my WebSphere connector:

    WebSphere Server – enabled
    WebSphere Home Directory – c:\tools\WebSphere\AppServer
    Host Name – bw007007
    Server Name – server1
    Output Encoding – console
    Debug Messages – checked
    Is WebSphere Version 5.1 – checked
    Optional Program Arguments – blank
    Optional Shutdown Arguments – blank

    JDK – specifies the JDK under the WebSphere installation directory
    Optional Java VM Arguments – -Xmx256M

    Launch Mode – Debug mode

    All paths are empty

    #208085 Reply

    Scott Anderson
    Participant

    Do you have a directory called bw007007 at <websphere-home>/config/cells? If not, your server name is probably incorrect.

    #208086 Reply

    Yes. That directory exists.

    Under <WAS_HOME>/config/cells/bw007007/nodes/bw007007 is
    my serverindex.xml file which contains:

    <serverEntries xmi:id=”ServerEntry_1″ serverDisplayName=”server1″ serverName=”server1″ serverType=”APPLICATION_SERVER”>

    This is where server1 is defined.

    #208099 Reply

    Scott Anderson
    Participant

    Are all the host attributes of the <endpoint/> nodes in the file set to bw007007? Can you start this instance from the commandline?

    #208108 Reply

    I can start from the commandline.

    #208110 Reply

    Scott Anderson
    Participant

    Under <WAS_HOME>/config/cells/bw007007/nodes/bw007007 is
    my serverindex.xml

    Is there a serverindex.xml under <WAS_HOME>/config/cells/bw007007, directly? My installation has one there also.

    #208112 Reply

    I do not have the file in that location. If I start WebSphere from the commandline and
    start the administrative console everything looks file. I can run the example applications
    that are distributed with WebSphere.

    #208120 Reply

    Scott Anderson
    Participant

    Can you try this: start the server and admin console from the commandline and create a new server. Call it server2 or something and don’t forget to save it. Then, shutdown WAS. Next, in MyEclipse change the connector over to start server2. Does that work?

    #208152 Reply

    I created server2 and got the same error.

    #208154 Reply

    Riyad Kalla
    Member

    Can you try copying your serverindex.xml file into your <WAS_HOME>/config/cells/bw007007 directory (to mirror Scott’s) and then try and start it?

    #208167 Reply

    Scott Anderson
    Participant

    Actually, don’t do that. I mistyped when I said I had a serverindex.xml file at that level. My serverindex.xml file is contained at <WAS_HOME>/config/cells/<hostname>/nodes/<hostname>/serverindex.xml. Then, I have a ‘servers’ directory below that that contains server1 and server2 subdirectories. So, I think our setups are basically identical.

Viewing 15 posts - 1 through 15 (of 40 total)
Reply To: Problems with WebSphere configuration

You must be logged in to post in the forum log in