Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

WAR files can be signed?

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Ref to the question below.

I am not sure about this "WAR files can or cannot be signed", i dont understand the term "signed"

I found the answer description below. Anybody can explain, thank you

Option B is incorrect because WAR files may be signed. Option C is incorrect.


Which four are true about WAR files? (Choose four.)

A WAR stands for Web ARchive.
B WAR files cannot be signed.
C WAR files typically contain EAR files.
D Entire web applications can be packaged into a single WAR file.
E WAR files can be created using the standard Java jar command.
F WEB-INF and META-INF are common top-level directories within WAR files.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Signing files in the Java world is most often associated with applets, although any jar/war/ear/... file can be signed. Wikipedia has an extensive writeup, but this introduction is a bit more readable.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

muthu moorthy wrote:Hi
I am not sure about this "WAR files can or cannot be signed", i dont understand the term "signed"



Yes war and ear can be signed using e.g. jar signer. It shouldn't matter if app server support or not signed wars or ears. As long as you deploy ear it will work. If you alter ear in a way that it offends the signature, then java.security exception will happen and you ear (or war) won't be launched by application server due the plain java.security exception.

This was tested on WebLogic 12g, but due to nature of mechanism which relies on java (not J2EE container) I am convinced it applies to all app servers.
 
knowledge is the difference between drudgery and strategic action -- tiny ad
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic