ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li, Jerry" <Jerry...@WorldChain.com>
Subject help on java task
Date Mon, 15 Oct 2001 04:38:28 GMT
Hi, all:

I am trying to use java task to run a java class in a separate JVM from an
ant script. If the java class gets error, I wan to print the error to
console and stop the ant scripts. I have used:

	<java fork="yes" classpath="${wl_jar1}:${wl_jar2}:${ejbClasspath}"
failonerror="true" classname="${wl_ejbc}">
			<arg line=" -compiler javac ${in_jar} ${out_jar}"/>
	</java>
	<antcall target="copyDistributionFiles"/>

where I have defined wl_jar1, wl_jar2, ejbClasspath, wl_ejbc, in_jar, and
out_jar in the init target. ( you may see that I am running weblogic ejbc).

I have seen the errors on my DOS console ( I am working on Windows 2000) but
the ant script does not stop. I could not figure out why.  Why does the
antcall task get called even though java task has an error?

Below is my errors:

*************************************************************
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: AlertManager
has a class com.worldchain.platform.event.AlertManagerEJB which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: AlertManager
has a class com.worldchain.platform.event.AlertManagerHome which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: AlertManager
has a class com.worldchain.platform.event.AlertManagerRemote which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EbuManager
has
a class com.worldchain.platform.ebu.EbuManagerEJB which is in the classpath.
This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EbuManager
has
a class com.worldchain.platform.ebu.EbuManagerHome which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EbuManager
has
a class com.worldchain.platform.ebu.EbuManagerRemote which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EventManager
has a class com.worldchain.platform.event.EventManagerEJB which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EventManager
has a class com.worldchain.platform.event.EventManagerHome which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: EventManager
has a class com.worldchain.platform.event.EventManagerRemote which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment:
InboundMessageHandler has a class
com.worldchain.platform.b2bconnector.InboundMessageHandlerEJB which is in
the classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: MailBean
has a
class com.worldchain.platform.mail.MailBean which is in the classpath. This
class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment:
OutboundMessageHandler has a class
com.worldchain.platform.b2bconnector.OutboundMessageHandlerEJB which is in
the classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment:
OutboundMessageHandler has a class
com.worldchain.platform.b2bconnector.OutboundMessageHandlerHome which is in
the classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment:
OutboundMessageHandler has a class
com.worldchain.platform.b2bconnector.OutboundMessageHandlerRemote which is
in the classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: PolicyManager
has a class com.worldchain.platform.policy.PolicyManagerEJB which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: PolicyManager
has a class com.worldchain.platform.policy.PolicyManagerHome which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: PolicyManager
has a class com.worldchain.platform.policy.PolicyManagerRemote which is in
the classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: UserManager
has
a class com.worldchain.platform.security.UserManagerEJB which is in the
classpath. This class should only be located in the ejb-jar file.> 
<Oct 14, 2001 9:21:20 PM PDT> <Error> <EJB> <EJB Deployment: UserManager
has
a class com.worldchain.platform.security.UserManagerHome which is in the
classpath. This class should only be located in the ejb-jar file.> 
****************************************************************************
*********************


-------------------------------------------------------------------------- 
Note:  The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and deleting it from
your computer. Thank you. 
--------------------------------------------------------------------------

Mime
View raw message