Solved

Use a resource collection to copy directories.

Posted on 2010-11-23
6
1,843 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
  • 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

760 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now