• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploying a Batch Script to Deploy EJBs

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am working through a batch script because I was unsuccessful using the GlassFish Console to deploy EJB files.

This is what happens to me:

<target name="deploy.shared.lib.to.glassfish">
<copy file="d:\NHINC" todir="d:\Sun\AppServer\domains\domain\lib" overwrite="true" />
</target>

This file previously said this:

<target name="deploy.shared.lib.to.glassfish">
<copy file="${deployment.glassfish.shared.lib.file.path}" todir="${glassfish.home}/lib" overwrite="true" />
</target>

The problem is that where I work, we are not allowed to run anything on the c: drive, it has to be run on the d: drive. Well, the batch script has apparently been coded to work with the c: drive.

Okay well, here's the problem. When I comment out and hard code in the location of these files, I get this error:

Use a resource collection to copy directories. I did some research that said this was a bug. It was like, well, great a bug, but I still need to get this deploy.bat to run!!!

I am running GlassFish 2.1.1 bundled with NetBeans 6.7.1 on a 32bit Windows 2008 Server SP with 2 Gb. of RAM

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