facebook

Configuration of websphere 5 not working !

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

    gilesp
    Member

    Hi there guys

    Before you yell… i’ve looked at the following threads:
    https://www.genuitec.com/forums/topic/websphere-config-and-console-output-closed/

    and:
    https://www.genuitec.com/forums/topic/deployment-on-websphere/&highlight=websphere

    and i still can’t seem to get websphere 5 started through myeclipse. All i’m interested at this stage is being able to debug. I don’t really care at this stage about having hot sync.

    I’ve got:
    websphere home set to : C:\Program Files\WebSphere\AppServer\
    hostname: treebeard (machine name) (also tried localhost)
    server name : server 1
    I’ve left the others on that tab as is.

    As per the first discussion thread, i tried changing my JDK to the jdk in websphere: C:\Program Files\WebSphere\AppServer\java… and that didn’t help.

    I’ve tried jdk 1.3.1, 1.4.2, and the ibm one.

    All i get is:

    A configuration error occured on startup. Please verify the preference field with the prompt. The java class is not found: c:\program

    This is in the log:
    !MESSAGE Error starting WebSphere: The java class is not found: C:\Program

    And i’m using eclipse3m7 (build no: 200402122000), myeclipse3.7GA.

    Any ideas (again !)

    Regards
    Giles

    #205453

    Riyad Kalla
    Member

    The problem is the path is longer than 8 chars, change your path from:

    C:\Program Files\WebSphere\AppServer\

    to

    
    C:\PROGRA~1\WebSphere\AppServer\
    

    This is a Windows trait unfortunately 🙁

    #205455

    vbonfanti
    Member

    I am also having the darnedest time getting WebSphere 5 working. I have my webapp deployed as an exploded directory. It’s deployed by MyEclipse to:

    C:\IBM\WebSphere\AppServer\installedApps\bonfantiv\bd61.war

    Where “bonfantiv” is my server name, and “bd61.war” is a directory, not a WAR file. According to previous threads on this topic, this is where it should be (this is also where the “adminconsole.ear” and “DefaultApplication.ear” directories are).

    I can launch WAS5 just fine, but when I go to the admin console, my webapp isn’t configured. I’m assuming it should be automatically configured, since I don’t think it’s possible to manually configure exploded webapps via the WAS5 admin console.

    When I manually create a WAR file (bd61.war) and deploy it via the WAS5 admin console, WAS5 deploys it to the following directory:

    C:\IBM\WebSphere\AppServer\installedApps\bonfantiv\bd61_war.ear\bd61.war

    However, that’s not all there is to it. WAS5 also creates a “META-INF” sub-directory within “bd61_war.ear” that contains a bunch of configuration files and adds two “.xmi” configuration files to my webapps WEB-INF directory. So I think that simply copying the webapp into the “installedApps” directory isn’t going to work.

    If only MyEclipse would let me point my deployment directory to “bd61_war.ear\bd61.war” then even though the intial configuration would be awkward, we’d still have workable solution (why, oh why is the deployment directory hard-coded?!). As it stands right now, I think the only solution is going to be to manually copy my class files to the “bd61_war.ear\bd61.war” directory every time I rebuild my project.

    #205458

    Riyad Kalla
    Member

    vbonfanti,
    We are going to make the location of the deployment configurable in 2.8 or 2.9 depending on what we get done in the given time line. We truely appologize for this annoyance and realize that our method of hard coding the paths so we could get a release out faster may not have been the best overall solution.

    Luckily we learn from our mistakes and will enhance the deployment process greatly starting with 2.8.

    #205461

    vbonfanti
    Member

    That would be good. After that change, the steps for debugging on WebSphere 5 will be:

    1. Manually create a WAR file from the webapp directory of your project. Assume the WAR file is named “mywebapp.war”.

    2. Launch WAS5 and configure a new Enteprise Application using “mywebapp.war” created in Step 1. Note that WAS5 will deploy this application into the following directory:

    AppServer/installedApps/servername/mywebapp_war.ear/mywebapp.war

    3. Configure a J2EE Deployment for your project with the Location listed above.

    Unfortunately, if MyEclipse is going to be taken seriously as a development tool for WebSphere 5, these steps are going to have to be automated. I’m not a WebSphere expert, but I suspect there must be a command-line tool to do the application deployment in Step 2 (something that could be invoked from Java by the MyEclipse deployment wizard). Alternately, it might be possible to figure out how to create the various configuration files required to create the “mywebapp_war.ear” directory.

    Anyway, I like your product and have used it with very good success on WebLogic and JBoss. This is my first time trying in on WebSphere, and is the first time I’ve had this level of difficulties.

    Vince

    #205462

    Riyad Kalla
    Member

    We are always working on and improving our server support and I definately agree with you that the 3 step process needs to be automated into a “Click-n-Go” type situation. We have quite a few things on our plate right now, so enhancements specifically to the running of WebSphere may not make it into 2.8 persay, but they will get into MyEclipse as soon as possible.

    #205478

    gilesp
    Member

    Great …

    Thanks for the help re post 1. Websphere starts up a treat now ! One thing i’m curious about though is:

    When i start websphere up normally start/programs/… it seems to take about 15secs (approx) to start… and i get the ‘blaa blaa ready for e-business’.

    When i start it up through myeclipse…it seems to take about 2 mins…. is this normal ?

    Regards

    #205487

    Riyad Kalla
    Member

    Giles,
    It could be the difference between starting it in “Run” mode and starting it in “Debug” mode. You can do a little test by adjusting the ‘Launch’ settings for WebSphere from Window > Preferences > MyEclipse > Application Servers > WebSphere 5 and select the Launch node, then change it to “Run mode” and then restart it, see how long it takes.

    What is your hardware?

    #205535

    gilesp
    Member

    My machine is a 3ghz p4, with 2 gigs or memory !

    Good suggestion about debugging! I turned off debug mode on startup but i still get a lot of [loaded com.ibm…] statements coming through.

    It’s not too much of an issue – but if it takes this long on this machine, i don’t really want to try on anything less. Hmmm ?

    #205536

    Riyad Kalla
    Member

    Hmm, I can’t think of any other reason why it would be taking so long to startup, I agree that is a VERY long time for that machine. I was hoping you had a 486 DX2/66 or something, then I’d be able to explain why it took so long to load 🙂

    #205557

    gilesp
    Member

    aahhh… 486’s… my good old days. Wrote my first Modula 2 / Pascal program on a 486 😆

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Configuration of websphere 5 not working !

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