Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Deploy.bat to create EJBs (.jar) files  RSS feed

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I ran a deploy.bat script, I am trying to run everything from the d:\ drive.

This is what happened:

Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

Z:\>d:

D:\>cd d:\NHINC

d:\NHINC>deploy.bat

d:\NHINC>set AS_HOME=D:\Sun\AppServer

d:\NHINC>set IDE_HOME=D:\Program Files\NetBeans 6.7.1

d:\NHINC>set ANT_HOME=D:\Program Files\NetBeans 6.7.1\java2\ant

d:\NHINC>set ANT_OPTS=-Xmx872m -XX:MaxPermSize=512m "-Dcom.sun.aas.instanceName=
server"

d:\NHINC>set NHINC_PROPERTIES_DIR=D:\Sun\AppServer\domains\domain1\config\nhin

d:\NHINC>set JAVA_HOME=D:\Java\jdk1.6.0_16

d:\NHINC>set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;D:\Jav
a\jdk1.6.0_16\bin;D:\Program Files\NetBeans 6.7.1\java2\ant\bin

d:\NHINC>ant -buildfile deploy.xml Buildfile: deploy.xml [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xm
l. It could not be found.

BUILD FAILED
d:\NHINC\deploy.xml:6: taskdef class com.oopsconsultancy.xmltask.ant.XmlTask can
not be found

Total time: 0 seconds
d:\NHINC>

Can you tell me what I am doing wrong?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36463
464
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have the jars for Ant Contrib and XmlTask in your classpath?
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I had to go out and get them, but I put them into the class folder and that error is gone now.

Thanks, Michele
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!