• 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

Maven not including WEB-INF/lib/jnlp-servlet.jar when creating webstart app

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the problem, I use the maven nbm plugin to create a webstartable app (nbm:webstart-app) on CentOS 6.

If I am using java 1.7.0 update 2 - there is no WEB-INF/lib/ folder in the generated war file, subsequently, the $$codebase values are not modified by tomcat (version 6 in this case) and the application cannot be used.

BUT, if I use java 1.7.0 update 1 - the WEB-INF folder is created in the resulting war file and everything works file and the $$codebase problem is gone.

Any idea why this is so ?

Thanks
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you run Maven with the -X option in each case and compared the output? That might give you some clue as to what is going wrong in the plugin. Other than that, you might have to debug the plugin to find out what the difference is.

(We ran into similar issues using 1.6.0_28, and thus went back to 1.6.0_26)
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bit too late, but i had the same problem. i don't know why, but after downloading JDK "Demos and Samples" (they comes in seperate download) and placing in %java_home% directory maven nbm plugin begin generate war with WEB-INF/lib/ directory and jnlp-servlet.jar.

it is enough to copy only "sample\jnlp\servlet" with content to %java_home% directory.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic