- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to transfer tomcat war file from windows to hp...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 08:58 AM
05-15-2008 08:58 AM
226-WARNING! 32101 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 Transfer complete.
Separately FTP'd same war file in Binary and success:
200 PORT command successful.
150 Opening BINARY mode data connection for AssetCenterWebService.war.
226 Transfer complete.
On the HP-UX machine I vi'd the file and got errors below (both ascii and binary versions):
# vi AssetCenterWebService.war
File opens with error:
"AssetCenterWebService.war" [Incomplete last line] 32217 lines, 8469751 characters (30878 nulls)
I then proceeded with a dos2ux and attempted to open the new file but still got errors (both ascii and binary versions):
# dos2ux *.war > newfile.war
# vi newfile.war
File opens with error:
"newfile.war" [Incomplete last line] 3 lines, 201 characters (33 nulls)
I attemped to deploy the war file but the war file is unreadable...error in tomcat log below.
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Invalid or unreadable WAR file : reading zip
file central directory failed
So I checked the war file to see if it is valid via unzip -t
So how should I transfer the war file and ensure it is a valid readable file on HP-UX?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 09:03 AM
05-15-2008 09:03 AM
SolutionNote that windows FTP client defaults to ascii.
Issue the binary command to transfer files using the windows FTP client for binary files.
Or use SFTP which is smart enough to get this right by itself. Filezilla has a nice client for sftp.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 11:14 AM
05-15-2008 11:14 AM
Re: How to transfer tomcat war file from windows to hpux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 11:57 AM
05-15-2008 11:57 AM
Re: How to transfer tomcat war file from windows to hpux?
other, similar archive formats, but I gather
that they're basically Zip archives with some
special content among the archived files.
> The only valid war file is the one ftp in
> binary mode before the dos2ux is run on it.
That sounds right to me. Unless you have
some good reason, and I can't imagine what it
would be, you should avoid attacking a valid
Zip (or JAR, or WAR, or ...) archive (which
is not a text file) with text-file tools like
"vi" or "dos2ux".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 02:31 AM
05-16-2008 02:31 AM
Re: How to transfer tomcat war file from windows to hpux?
Thanks for your comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2008 02:33 AM
05-16-2008 02:33 AM