aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven not including WEB-INF/lib/jnlp-servlet.jar when creating webstart app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven not including WEB-INF/lib/jnlp-servlet.jar when creating webstart app " Watch "Maven not including WEB-INF/lib/jnlp-servlet.jar when creating webstart app " New topic
Author

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

Fred Leclerc
Greenhorn

Joined: Aug 29, 2005
Posts: 3
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
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

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)


JBoss In Action
Vladislav Kuzma
Greenhorn

Joined: Mar 29, 2013
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven not including WEB-INF/lib/jnlp-servlet.jar when creating webstart app
 
Similar Threads
Third party jar
using the display:table tag
a servlet inside jar can not be accessed on web sphere at workplace
The import cannot be resolved
Hibernate+GWT problem related to slf4j