-
1. Re: How to change the application name for a deployment?
kpiwko Oct 1, 2013 6:14 AM (in response to plexusnexus)Hey Oliver,
every time you're creating archive, you can specify a name of archive via second argument:
ShrinkWrap.create(Class<? extends Archive<?> archiveType, String name)
You can also check a guide here http://arquillian.org/guides/shrinkwrap_introduction/
HTH,
Karel
-
2. Re: How to change the application name for a deployment?
plexusnexus Oct 1, 2013 9:35 AM (in response to kpiwko)Hi Karel,
this is the correct way to set the name of the archive. But the application is always deployed with the application name test. Therefore I cannot deploy two archives at once.
Bye,
Oliver
-
3. Re: How to change the application name for a deployment?
smikloso Oct 1, 2013 11:46 AM (in response to plexusnexus)Could you be very specific what do you mean when you say "the application name"?
-
4. Re: How to change the application name for a deployment?
plexusnexus Oct 4, 2013 3:10 AM (in response to smikloso)If I have two jar deployments in one Arquillian test Glassfish complains during the deployment of the second jar that there is already an application named test.
-
5. Re: How to change the application name for a deployment?
kpiwko Oct 4, 2013 7:04 AM (in response to plexusnexus)Oliver,
most of the servers use name of the war to give application name or some server specific descriptor - glassfish-web.xml in your case. If you are not using WAR but EAR, deployment name is usually in application.xml descriptor. Or maybe in server specific descriptor, such as glassfish-application.xml.
Hard to tell as we don't now what are you deploying, to what server you are deploying and what exception you actually got.
Karel