Solved

Use a resource collection to copy directories.

Posted on 2010-11-23
6
1,937 Views
Last Modified: 2012-05-10
Hello, I am working through a batch script to deploy EJBs because I was unsuccessful using the GlassFish Console to deploy EJB files.

This is what happens to me:


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.

so I changed it to this:

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


Okay well, here's the problem. When I comment out and hard code in the location of these files just referenced directly above, 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 deploy.xml
0
Comment
Question by:midani222
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34201493
Try
<target name="deploy.shared.lib.to.glassfish">
	<copy todir="d:/Sun/AppServer/domains/domain/lib" overwrite="true">
		<fileset dir="d:/NHINC">
			<include name="**/*"/>
		</fileset>
	</copy>
</target>

Open in new window

0
 

Author Comment

by:midani222
ID: 34206485
Hello I implemented this, it is kind of interesting what happened. It was late last night when I told you the path to the library.

It should have been Sun\AppServer\domains\domain1\lib

anyway I used the other one the one with domain in it and what happened is that it keeps saying:

deploy.shared.lib.to.glassfish:
[copy] Copying 4060 files to:
d:\Sun\AppServer\domains\domain\lib

It has been doing this for about 40 minutes now.

I will try to kill the process and rethink this problem again.

Can you think of anything?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 34207360
>>It has been doing this for about 40 minutes now.

So it works then?

0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

Author Comment

by:midani222
ID: 34207566
well it would appear this this worked.
0
 

Author Closing Comment

by:midani222
ID: 34207571
thanks a whole bunch!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34208935
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question