?
Solved

Use a resource collection to copy directories.

Posted on 2010-11-23
6
Medium Priority
?
2,064 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 2000 total points
ID: 34207360
>>It has been doing this for about 40 minutes now.

So it works then?

0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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