Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7599977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:47:51+00:00 2026-05-30T22:47:51+00:00

According to the Play documentation , it is possible to pack a Play app

  • 0

According to the Play documentation, it is possible to pack a Play app in a war file and deploy it to Websphere, but I’m having problems.

I’m using the play war command with the --zip option, which is working properly. The resulting war file has the right layout (WEB-INF at top level, with my jars moved to WEB-INF/lib).

After deploying the war file on my Websphere server, I change the app’s class loading order to parent last so that it uses Play’s version of any libs that conflict. And then I try to load a page, any page, of my app, and get an error.

I’ve tried deploying demo apps and a new empty app the same way, but again, I just get an empty page that says Not found Get /. The only thing in the log is WARN ~ 404 -> GET / (GET /).

I’ve tried it with Play 1.2.3, and 1.2.4, Websphere 7.0.0.0, and 7.0.0.19. I’ve also tried toggling the different deployment options in Websphere, though the default options look like they should work.

Has anyone gotten a Play app to work in Websphere? If so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:47:52+00:00Added an answer on May 30, 2026 at 10:47 pm

    I finally have it working. I’ll document my steps in case anyone else runs into similar problems deploying a Play app on WebSphere in the future.

    1 – The first issue was the 404. Websphere doesn’t pass requests for root (/) to the app to handle (wtf?), so the fix is to define a similar route in your routes file:

    GET    /*    Application.index
    

    instead of (or on top of)

    GET    /    Application.index
    

    2 – The next issue was errors related to persistence (JPA) methods not existing. Play uses JPA 2.0, while WebSphere 7 uses their own custom version of OpenJPA 1.0. You can install a feature pack for JPA 2 and OSGI (you don’t need the OSGI part, so it can be ignored). Note that the feature pack requires that you have WebSphere 7.0.0.9 or later installed. That means matching fix packs for both the app server and the bundled JDK. I.E. fix pack 21 (the latest at the time or writing) for both the server and the JDK need to be installed first before installing the JPA feature pack. At the end of the feature pack installation, it will ask you if you want to run the profile tool. Say yes. This tool will let you “augment” your profile (the server node you’re going to install your war on). Augment away!

    3 – Build a war file that will work in WebSphere:

    play war <appFolder> -o <outputFolder> --zip --%prod
    

    This will create a folder named <outputFolder> (an exploded war) and a .war file named <outputFolder>.war, with the app id set to prod. The exploded war can be deleted.

    Running this command on linux keeps putting my WEB-INF folder inside an unnamed folder (so, down a level from the root level of the war file). In other words, instead of /WEB-INF/, it’s creating a structure like //WEB-INF/. Anyway, I’m fixing it manually for now, by re-zipping it properly. Anyone know how to avoid this problem?

    4 – Install the war file into WebSphere with all the default settings in the admin console…or tweak them if you know what you’re doing.

    5 – I’m not entirely sure if this step is necessary (doesn’t change anything for my particular app), but all the advice I’ve read online about getting Play apps to run in WebSphere say to do this. Meh, it can’t hurt. Click on your installed app. Click on the “Class loading and update detection” link. Then select the “Classes loaded with local class loader first (parent last)” option. Ok. Save.

    6 – Open a browser page to your address (localhost:9080 if running websphere locally), and test. At this point it should work! Hopefully. Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know it is possible to play iPod Songs using AVPlayer, but I cannot
I'm using MPMusicPlayerController to play a list of mp3 in my app. The only
i want to play sound according to text of the label.is this possible to
AudioServicesPlaySystemSound() is playing my sounds using ringer volume. I want them to play according
According to the documentation, they're pretty much interchangeable. Is there a stylistic reason to
According to the answers to this question, I cannot embed a file version in
According to this article Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when
According to the feedparser documentation , I can turn an RSS feed into a
I am trying to POST an image to imageshack using their API and Play
I'm trying to deploy two or more independent Play! (1.2.4) based projects to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.