Hi Krishna, I had the same problem. I modified my pom to have:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <executions> <execution> <phase>package</phase> <goals><goal>exploded</goal></goals> <configuration> <webappDirectory>${build.directory}/webapp</webappDirectory> </configuration> </execution> </executions> </plugin> Then I was able to launch the webapp with: def main(args: Array[String]): Unit = { println("Database URL: " + System.getenv("DATABASE_URL")) val server = new JServer(Option(System.getenv("PORT")) map (_.toInt) getOrElse 8080) val context = new WebAppContext() context.setServer(server) context.setContextPath("/") context.setWar("target/webapp") server.addHandler(context) server.start() server.join() } Sorry for the scala code, but you should be able to convert to Java easily enough. On your box, during testing, make sure you run "mvn install", and then run "foreman start" from the same directory as the "pom.xml" lives in, that contains "target". Could someone write this up as a FAQ entry? It took me a while to work out, and it looks like a fairly painless way to migrate from a war deployment to heroku. Matthew On 29 September 2011 10:48, Krishna <harikrishnacogniz...@gmail.com> wrote: > Hi Heroku Experts, > > I am new to this platform, Can anyone guide me to deploy war file on > heroku. I am working with Java spring & like to deploy my application > in Heroku. > > This is urgent requirement, Could you please respond me ASAP. > > Thanks & Regards, > Hari krishna. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to heroku@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- Dr Matthew Pocock Visitor, School of Computing Science, Newcastle University mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer tel: (0191) 2566550 mob: +447535664143 -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.