Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help with war file from Tomcat to Websphere

 
Ranch Hand
Posts: 64
Oracle Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm here again because I'm facing a problem, I spent hours trying to install IBM Websphere Application Server 7 (Trial), but I've already installed it successfully in my ubuntu server (it's a server, so I can't use any gui tool or wizard :[ )

I verified the installation and started the server successfully... Now, I want to deploy a war file. My task is basically to migrate from tomcat to websphere. My Tomcat Server is 6.0 and my Websphere is 7.0 as I menctioned.

But I don't have any idea how to begin , because I'm sure we can't copy the war in a directory and deploy it happily as in tomcat, instead I found that I have to use some scripts, do you know how i can begin with this process? I will be really grateful if somebody can help me.

Thanks in advance.
 
Greenhorn
Posts: 11
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you have other system you can access the Websphere Application server(WAS) console using browser

https://ip-address:9080/ibm/console

there you have applications in that you can upload the war file

you probably might have to do changes in the code also.
because i have faced similar issue. some resources file like applicationresource.properties or some user defined xml files are not found by WAS.
you will have to modify application to read form a specific path.

Also please not that ibm uses ibm jvm to run it. you might be using sun jvm to compile war.
so please dont compile it in 1.6 and install it in ibm 1.5 jdk. use sun jdk 1.5 to compile.
 
Marcelo Tataje
Ranch Hand
Posts: 64
Oracle Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your answer, I will follow all the steps that you menctioned, I didn't know that I could access the console that way, because some people told me I had to use jpython to create scripts and deploy the war file, but the way you did it saves a lot of time. I know I will have a lot of problems when deploying since the application is using METRO WS which worked fine on glassfish and tomcat but for sure will fail on Websphere. Do you know if Websphere have some libraries that could replace METRO functioalities? Thanks for your reply, it will be useful.
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic