Ear and War files

Discussions

EJB design: Ear and War files

  1. Ear and War files (4 messages)

    Can anybody suggest a tool to create .ear and .war files (Other than Ant).

    Thanks
    Abeers

    Threaded Messages (4)

  2. Ear and War files[ Go to top ]

    Yes... the jar utility that comes with the JDK. Just make a jar, and rename it to have a .war or .ear extension. I am pretty sure that ear and war is just a jar with another extension. (Please correct me if I'm wrong).

    -Pat
  3. Ear and War files[ Go to top ]

    True, a .ear file is a JAR. But the J2EE spec defines what goes in the JAR. For example, it must have an XML deployment descriptor, and might even contain one or more .war files. So any JAR is not a .ear.

    Dave
  4. Ear and War files[ Go to top ]

    I've gone to using the packager tool found in the J2EE SDK. We're using Sybase's Jaguar CTS EJB server, and it's very finicky about the EJB JAR file. We've also gone to verifying the JAR file with the verifier tool, also included in the J2EE SDK. Sybase only works with EJB JARs strictly adhering to the J2EE standard. We've tried to generate EJB JARs using the Ant 1.2 ejbjar task and that did not create JAR files which would verify within the verifier.

    -- chris bartling --
  5. Ear and War files[ Go to top ]

    U can make use of the jar utility supplied with jdk. You've to specify the o/p file with whatever extension u want (.ear, .war or .jar)

    -Ahamed Hasan