Question

Caught exception: java.io.IOException: No such file or directory when running cvs ant task

Asked by: ethnarch

I am trying to write a script that can download a project from cvs.  It works on windows but if I put it on a fedora 10 machine. I receive this error and I can't seem to figure out what's causing it.
 [cvs] Caught exception: java.io.IOException: No such file or directory

I took a guess that maybe it was the .cvspass file since it comes right after that line and I tried just setting the rights on that file to 777 to make sure it had full access.  It had no effect and I still receive the error.

Below is the verbose log from the ant script

trak-checkout:
     [echo] Checking out the required sources from CVS
    [input] Please enter the tag name(default is head): [HEAD]
 
      [cvs] Using cvs passfile: /home/user/.cvspass
      [cvs] Executing 'cvs' with arguments:
      [cvs] '-d:pserver:ptg\username:******@10.0.1.26:/comanche'
      [cvs] '-q'
      [cvs] '-z3'
      [cvs] 'checkout'
      [cvs] '-rHEAD'
      [cvs] 'project_trak/trak'
      [cvs] 
      [cvs] The ' characters around the executable and arguments are
      [cvs] not part of the command.
      [cvs] 
      [cvs] 
      [cvs] environment:
      [cvs] 
      [cvs] 	ORBIT_SOCKETDIR=/tmp/orbit-alandauser
      [cvs] 	HOSTNAME=localhost.localdomain
      [cvs] 	SHELL=/bin/bash
      [cvs] 	TERM=xterm
      [cvs] 	HISTSIZE=1000
      [cvs] 	XDG_SESSION_COOKIE=0a5e7f3f32307f40b33b325f4a4507fe-1246368860.903027-2138618770
      [cvs] 	GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc-1.2-gnome2
      [cvs] 	WINDOWID=69206079
      [cvs] 	USER=user
      [cvs] 	LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:do=00;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=00;32:*.tar=00;31:*.tgz=00;31:*.svgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.dz=00;31:*.gz=00;31:*.bz2=00;31:*.tbz2=00;31:*.bz=00;31:*.tz=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.rar=00;31:*.ace=00;31:*.zoo=00;31:*.cpio=00;31:*.7z=00;31:*.rz=00;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.mng=00;35:*.pcx=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.m2v=00;35:*.mkv=00;35:*.ogm=00;35:*.mp4=00;35:*.m4v=00;35:*.mp4v=00;35:*.vob=00;35:*.qt=00;35:*.nuv=00;35:*.wmv=00;35:*.asf=00;35:*.rm=00;35:*.rmvb=00;35:*.flc=00;35:*.avi=00;35:*.fli=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.yuv=00;35:*.svg=00;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:
      [cvs] 	GNOME_KEYRING_SOCKET=/tmp/keyring-XtaGY3/socket
      [cvs] 	SSH_AUTH_SOCK=/tmp/keyring-XtaGY3/ssh
      [cvs] 	SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2161,unix/unix:/tmp/.ICE-unix/2161
      [cvs] 	USERNAME=user
      [cvs] 	MAIL=/var/spool/mail/user
      [cvs] 	PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/alandauser/bin
      [cvs] 	DESKTOP_SESSION=gnome
      [cvs] 	PWD=/home/user/Desktop
      [cvs] 	XMODIFIERS=@im=imsettings
      [cvs] 	LANG=en_US.UTF-8
      [cvs] 	GNOME_KEYRING_PID=2154
      [cvs] 	GDM_LANG=en_US.UTF-8
      [cvs] 	GDMSESSION=gnome
      [cvs] 	SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
      [cvs] 	SHLVL=7
      [cvs] 	HOME=/home/user
      [cvs] 	GNOME_DESKTOP_SESSION_ID=this-is-deprecated
      [cvs] 	LOGNAME=alandauser
      [cvs] 	DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-23vgO14Fua,guid=84f46e3f9c5c47660458f6484a4a145d
      [cvs] 	LESSOPEN=|/usr/bin/lesspipe.sh %s
      [cvs] 	DISPLAY=:0.0
      [cvs] 	G_BROKEN_FILENAMES=1
      [cvs] 	COLORTERM=gnome-terminal
      [cvs] 	CVS_PASSFILE=/home/user/.cvspass
      [cvs] Caught exception: java.io.IOException: No such file or directory

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-06-30 at 14:20:33ID24534807
Topic

Java Programming Language

Participating Experts
1
Points
500
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. TOMCAT 4.1 / CVS / ANT nightly builds
    I would like to implement automatic nightly builds with TOMCAT 4.1 / CVS / ANT. The process should be triggerd with a cron job. 1) - retrieve the newest files from cvs. 2) - compile 3) - deploy to tomcat I need a _complete_ "guide" or "howto" to impleme...
  2. Ant SSHEXEC: Reject Host Key
    Hi, This is regarding the sshexec optional task in ant. I am using this task for quite sometime. When I execute my ssh task in ant from command prompt it works fine (file gets transfered to remote system). Now I have automated the task by scheduling using anthill runnin...
  3. ant NoClassDefFoundError
    I'm trying to use ant to run a java app on a linux system. According to "ant -v" I'm using: Apache Ant version 1.5.2-26 compiled on May 5 2004 Here's the weird part. If I run ant it says "java.lang.NoClassDefFoundError: com.knowlist.list.stats.affinity.Cal...
  4. how to checkout source from cvs using ant?
    how to checkout source from cvs using ant?how to give pass login and pass in build script.
  5. Caught java.lang.ClassNotFoundException: com.sun.…
    Hi, i am trying out something here and face some problems. Hope you can share with me your points to sovle this problems. i have downloaded the smslib file to try to run with my GSM Modem. The package I get is from http://smslib.org/installation_java.php and that is the ex...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CEHJPosted on 2009-06-30 at 14:23:33ID: 24749748

Your username is presumably something other than 'user' ..? 'user' looks like a placeholder to me

 

by: CEHJPosted on 2009-06-30 at 14:24:17ID: 24749755

If in doubt, run

whoami

 

by: ethnarchPosted on 2009-06-30 at 14:30:12ID: 24749814

I changed some of the values I didn't want to post this online

1. user is a place holder for my real username
2. username is also a place holder for my real username
3. project  is really the name of a project

 

by: CEHJPosted on 2009-06-30 at 14:32:30ID: 24749837

Please post result of

ls -l ~/.cvspass

                                              
1:

Select allOpen in new window

 

by: ethnarchPosted on 2009-06-30 at 14:45:55ID: 24749941

[user@localhost ~]$ ls -l ~/.cvspass
-rwxrwxrwx 1 user user 57 2009-06-30 14:26 /home/user/.cvspass
[user@localhost ~]$


I had previously ran chmod a+rwx on it (only as a temporary solution) so it has all rights

 

by: CEHJPosted on 2009-06-30 at 14:49:24ID: 24749962

Well maybe that's not the file it's complaining about. What's the current ant command?

 

by: ethnarchPosted on 2009-06-30 at 14:53:59ID: 24749990

I am running the command below

ant -v -f setup.xml project-checkout

I'll post the script

 

by: ethnarchPosted on 2009-06-30 at 14:57:21ID: 24750014

below is the target that is being called

  <target name="project-checkout" depends="dir" 
          description="Update or check out required sources
                       from CVS">
 
    <echo message="Checking out the required sources from CVS"/>
	<cvspass cvsroot="${project.cvsroot}"
       password="password"
	   passfile=".cvspass"
	/>
	<input
		message="Please enter the tag name(default is head):"
		addproperty="cvs.tag"
		defaultvalue="HEAD"
	/>
    <cvs cvsroot="${project.cvsroot}" quiet="true"
         command="checkout" 
         dest="${src.local}" compression="true" 
		 tag="${cvs.tag}"
		 package="project_trak/trak"
		 />
  </target>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:

Select allOpen in new window

 

by: CEHJPosted on 2009-06-30 at 15:07:42ID: 24750072

You could try using the --debug parameter to Ant. Probably a good idea to echo the properties too to make sure they're set

 

by: ethnarchPosted on 2009-06-30 at 15:19:39ID: 24750162

I am only getting the lines below in between CVS_PASSFILE and the ioexception line

This really is one of those times where you just wished they put the file name out to the console/log.  Probably is a ridiculously simple problem, just can't figure out what the problem is!

      [cvs] 	CVS_PASSFILE=/home/alandauser/.cvspass
Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
'-d:pserver:rtg\user:password@10.0.1.26:/comanche'
'-q'
'-z3'
'checkout'
'-rHEAD'
'project_trak/trak'
The ' characters around the executable and arguments are
not part of the command.
      [cvs] Caught exception: java.io.IOException: No such file or directory
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: ethnarchPosted on 2009-06-30 at 15:25:43ID: 24750204

I fixed it, ugh I didn't have cvs installed on the linux box.  On fedora i just did

yum install cvs

I got the clue from this site http://www.java-tips.org/other-api-tips/ant/how-to-use-cvs-task-2.html
where it says
     This task needs "cvs" on the path. If it isn't, you will get an error (such as error 2 on windows). If  
     <cvs> doesn't work, try to execute cvs.exe from the command line in the target directory in which
     you are working.

 

by: CEHJPosted on 2009-06-30 at 15:37:08ID: 24750267

Glad you got it ;-)

 

by: CEHJPosted on 2009-07-05 at 01:21:47ID: 24779182

:-)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...