0 Replies Latest reply on Nov 2, 2012 2:08 AM by Jasper@c

    FlexTasks.jar not getting recognized in unix box

    Jasper@c Level 1

       

      Hi,

      I created two build files, one is flexBuild.xml(to create swf for flex code), and it is called by another one, ie, build.xml(that creates java ear file). Both got successfully built in Windows. But when I tried executing them in Unix box it gives below error:

       

      BUILD FAILED

      /apps/WasApps/LiveCycle/build.xml:72: The following error occurred while executing this line:

      /apps/WasApps/LiveCycle/flexBuild.xml:67: mxmlc task failed

      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)

      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)

      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      at org.apache.tools.ant.Task.perform(Task.java:364)

      at org.apache.tools.ant.Target.execute(Target.java:341)

      at org.apache.tools.ant.Target.performTasks(Target.java:369)

      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      at com.ubs.build.job.AutomateBuildJob.executeStagingNightJob(AutomateBuildJob.java:121)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

      at java.lang.reflect.Method.invoke(Method.java:600)

      at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:132)

      at org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter.invokeInt ernal(MarshallingMethodEndpointAdapter.java:140)

      at org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter.invoke(Abstr actMethodEndpointAdapter.java:53)

      at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:230)

      at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:172)

      at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleCon nection(WebServiceMessageReceiverObjectSupport.java:88)

      at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebS erviceMessageReceiverHandlerAdapter.java:57)

      at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatche rServlet.java:222)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476 )

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)

      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java: 178)

      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)

      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)

      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)

      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)

      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:455)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:384)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)

      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConn ectionInitialReadCallback.java:214)

      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitia lReadCallback.java:113)

      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionLi stener.java:165)

      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

      Caused by: /apps/WasApps/LiveCycle/flexBuild.xml:67: mxmlc task failed

      at flex.ant.FlexTask.executeInProcess(FlexTask.java:296)

      at flex.ant.FlexTask.execute(FlexTask.java:225)

      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      at org.apache.tools.ant.Task.perform(Task.java:364)

      at org.apache.tools.ant.Target.execute(Target.java:341)

      at org.apache.tools.ant.Target.performTasks(Target.java:369)

      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 7)

      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

      ... 45 more

      --- Nested Exception ---

      /apps/WasApps/LiveCycle/flexBuild.xml:67: mxmlc task failed

      at flex.ant.FlexTask.executeInProcess(FlexTask.java:296)

      at flex.ant.FlexTask.execute(FlexTask.java:225)

      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      at org.apache.tools.ant.Task.perform(Task.java:364)

      at org.apache.tools.ant.Target.execute(Target.java:341)

      at org.apache.tools.ant.Target.performTasks(Target.java:369)

      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 7)

      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      at org.apache.tools.ant.Task.perform(Task.java:364)

      at org.apache.tools.ant.Target.execute(Target.java:341)

      at org.apache.tools.ant.Target.performTasks(Target.java:369)

      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      at com.ubs.build.job.AutomateBuildJob.executeStagingNightJob(AutomateBuildJob.java:121)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

      at java.lang.reflect.Method.invoke(Method.java:600)

      at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:132)

      at org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter.invokeInt ernal(MarshallingMethodEndpointAdapter.java:140)

      at org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter.invoke(Abstr actMethodEndpointAdapter.java:53)

      at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:230)

      at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:172)

      at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleCon nection(WebServiceMessageReceiverObjectSupport.java:88)

      at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebS erviceMessageReceiverHandlerAdapter.java:57)

      at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatche rServlet.java:222)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476 )

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)

      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)

      at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java: 178)

      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)

      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)

      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)

      at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)

      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java:455)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java:384)

      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)

      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConn ectionInitialReadCallback.java:214)

      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitia lReadCallback.java:113)

      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionLi stener.java:165)

      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)

      at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)

      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)

      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)

      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)

      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

       

      Note : I have added flex sdks to unix (and given classpath for flextasks.jar also) and also refered to its path in build.properties.

                I tried compc also just to check if flextasks.jar is getting recognised, but that too gives above error.