Issue Details (XML | Word | Printable)

Key: MGP-1
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dave Whitla
Reporter: Kristof Vanbecelaere
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
maven-glassfish-plugin

Asadmin command line needs .bat extension

Created: 18/Jul/08 05:24 PM   Updated: 10/Oct/09 09:26 AM   Resolved: 26/Jul/08 03:10 PM
Return to search
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.1

Environment: Windows
External References:
sjjxdwgg (sjjxdwgg)
sjjxdwgg
cetirizine (cetirizine)
cetirizine
avalide (avalide)
avalide
free cialis (free cialis)
free cialis
amaryl (amaryl)
amaryl
buy valium online (buy valium online)
buy valium online
motilium (motilium)
motilium
desyrel (desyrel)
desyrel
retin (retin)
retin
buy viagra (buy viagra)
buy viagra
generic tadalafil (generic tadalafil)
generic tadalafil
phenergan (phenergan)
phenergan
avapro (avapro)
avapro
adipex p (adipex p)
adipex p
cheap tramadol (cheap tramadol)
cheap tramadol
pepcid (pepcid)
pepcid
cheapest cialis (cheapest cialis)
cheapest cialis
tylenol codeine (tylenol codeine)
tylenol codeine
phentermine side effects (phentermine side effects)
phentermine side effects
acai side effects (acai side effects)
acai side effects
vicodin (vicodin)
vicodin
soma online (soma online)
soma online
yasmin (yasmin)
yasmin
vicodin prescription (vicodin prescription)
vicodin prescription
vicodin online (vicodin online)
vicodin online
sinemet (sinemet)
sinemet
prilosec otc (prilosec otc)
prilosec otc
cialis for (cialis for)
cialis for
hyaluronic acid (hyaluronic acid)
hyaluronic acid
ultram tramadol (ultram tramadol)
ultram tramadol
atenolol (atenolol)
atenolol
cialis best (cialis best)
cialis best
cheap valium (cheap valium)
cheap valium
gabapentin (gabapentin)
gabapentin
tylenol with codeine (tylenol with codeine)
tylenol with codeine
clomid (clomid)
clomid
cymbalta (cymbalta)
cymbalta
cialis price (cialis price)
cialis price
sildenafil citrate (sildenafil citrate)
sildenafil citrate
sildenafil citrate (sildenafil citrate)
sildenafil citrate
hytrin (hytrin)
hytrin
alli (alli)
alli
accutane (accutane)
accutane
motilium (motilium)
motilium
free cialis (free cialis)
free cialis
meridia (meridia)
meridia
micardis (micardis)
micardis
coreg (coreg)
coreg
requip (requip)
requip
dilantin (dilantin)
dilantin
motrin (motrin)
motrin
tramadol hydrochloride (tramadol hydrochloride)
tramadol hydrochloride
relafen (relafen)
relafen


 Description  « Hide
I think the generated asadmin command lines need .bat extension to function correctly. Otherwise CreateProcess returns error = 2.

Sort Order: Ascending order - Click to sort in descending order
Steffan Westcott added a comment - 18/Jul/08 07:21 PM
I believe I am being affected by this issue also. It would appear maven-glassfish-plugin does not work at all on WIndows platforms. For example, on entering the command

mvn glassfish:start-domain

I get the following error:

[INFO] Unable to create domain "domain1". IOException: Cannot run program "D:\bin\sailfin/bin/asadmin": CreateProcess error=2, The system cannot find the file specified

Note: domain1 does in fact exist prior to running the command.

Dave Whitla added a comment - 19/Jul/08 11:52 AM
Ahh yes.

This has not been tested at all on Windows.
Solution is simple and will be in the next snapshot build.

Dave Whitla added a comment - 26/Jul/08 03:10 PM
Apologies for the delayed snapshot build - hectic week at work :)

Matthew Walsh added a comment - 29/Aug/08 01:07 AM
Just stumbled on this issue and thought I'd share. When using the SNAPSHOT version of the plugin, some of the commands don't actually work. For instance, running "glassfish:deploy" on a non-running instance (in Windows) does not start the instance like it does in Linux. However, once the domain is manually started, running "glassfish:deploy" does deploy the application.

Dave Whitla added a comment - 29/Aug/08 09:36 AM
Doesn't seem related to this issue. Could you post a new bug please with config.

I now have a large Windows development team using the SNAPSHOT prior to the upcoming release. They have not observed this issue, so I suspect a configuration problem which may be due to inadequate doco rather than code.

Thanks,

Dave

Eric Jacob added a comment - 28/Aug/09 11:01 AM
I also observed this issue on the 2.1 and 2.2-SNAPSHOT versions of the plugin. Running "glassfish:deploy" give me this error:

IOException: Cannot run program "C:\Program Files\glassfishv3-prelude\bin\asadmin": CreateProcess error=193, %1 is not a valid Win32 application

There seems to be a missing ".bat" extension to the "asadmin" command.

Thanks.

Ricardo Correa added a comment - 10/Oct/09 09:26 AM
I don't think this issue is fixed in version 2.2-SNAPSHOT as I just tested it. However a simple workaround is deleting the asadmin shell file (glassfishdir/bin/asadmin) and keeping the .bat.