L
laredotornado
Hi,
I'm using Perl 5.16 on mac 10.9.1. I'm trying to get Perl to output the correct error message when I run a shell process and that process fails. I have this ...
system("$jbossHome/bin/jboss-cli.sh", "--file=$file");
if ( $? != 0 )
{
die"Failed to deploy $downloadedFile: $!\n";
}
However, what Perl reports is "Failed to deploy /tmp/my.war: Inappropriate ioctl for device" and when I run the command in a shell, the actual error message is "{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./my" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./my: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"my.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}}}".
Any ideas how I can output the correct error message?
I'm using Perl 5.16 on mac 10.9.1. I'm trying to get Perl to output the correct error message when I run a shell process and that process fails. I have this ...
system("$jbossHome/bin/jboss-cli.sh", "--file=$file");
if ( $? != 0 )
{
die"Failed to deploy $downloadedFile: $!\n";
}
However, what Perl reports is "Failed to deploy /tmp/my.war: Inappropriate ioctl for device" and when I run the command in a shell, the actual error message is "{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./my" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./my: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"my.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}}}".
Any ideas how I can output the correct error message?