7 Replies Latest reply: May 18, 2011 6:22 AM by Aslak Knutsen RSS

    Why is the Archive always deployed as test.war?

    Mark Temple Newbie

      When I create a test and do something like this:

       

      @Deployment

         public static JavaArchive createTestArchive() {

            JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "MyTest.jar")

               .addClasses(TemperatureConverter.class)

               .addAsManifestResource(

                  EmptyAsset.INSTANCE,

                  ArchivePaths.create("beans.xml"));

       

            return archive;

         }

       

      It always deploys as test.war, not "MyTest.jar" shown above... I see:

      [org.jboss.profileservice.management.upload.remoting.DeployHandler] invoke, payload: {DeploymentTargetID=names=[test.war], clientAddress=/127.0.0.1}, parameter: start