Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » File name too long when packaging infocenter WAR file
File name too long when packaging infocenter WAR file [message #472345] Wed, 27 February 2008 05:25
Peter Desjardins is currently offline Peter DesjardinsFriend
Messages: 21
Registered: July 2009
Junior Member
I've been working with the infocenter as a WAR file for several months
now. I had been using the WAR file template from ticket 201666
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=201666).

I wanted to switch to using the latest version of the WAR file template
so I got Eclipse SDK Version: 3.4.0 Build id: I20080226-1155 and
followed the instructions in the help system ("Deploying the infocenter
as a Web Archive").

After following all the steps I tried to move a copy of WEB-INF to
another directory but Windows Explorer claimed it could not move the
directory. Then I tried to package it as a WAR file without moving it
and got this error:

$ jar cf help-web-app.war WEB-INF/
WEB-INF/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v2007 11021030/src/javax.servlet.jsp_2.0.0.v200711021030/about.htm
l: File name too long
Error adding file to jar!
Error adding file to jar!
Error adding file to jar!
Error adding file to jar!
Error adding file to jar!
Error adding file to jar!
Error adding WEB-INF/ to jar archive!

Has anyone else seen this or have ideas about what might be causing it?
I get no such error when packaging the WAR file from the template in
ticket 201666. I count only 122 characters in the file name and path.

I am using Cygwin to invoke the jar command. Attempting to cp that
directory results in these errors:

$ cp -r WEB-INF/ ~
cp: cannot stat
`WEB-INF/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200 711021030/src/javax.servlet.jsp_2.0.0.v20071
1021030/about.html': File name too long
cp: cannot stat
`WEB-INF/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200 711021030/src/javax.servlet.jsp_2.0..0.v20071
1021030/about_files': File name too long
cp: cannot stat
`WEB-INF/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200 711021030/src/javax.servlet.jsp_2.0.0.v20071
1021030/src.zip': File name too long


This condition persists after restarting the computer. Thanks for your
help.

Peter
Previous Topic:File name too long when packaging infocenter WAR file
Next Topic:Missing breadcrumbs
Goto Forum:
  


Current Time: Sun Nov 23 02:08:50 GMT 2014

Powered by FUDForum. Page generated in 0.01678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software