• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with war file from Tomcat to Websphere

 
Ranch Hand
Posts: 64
Oracle Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic