Maybe the error message is reporting the real path which might be less than 255 characters. But in reality the ear/war/jar might have been extracted to the JBOSS_HOME/server/< server-name>/tmp/ folder. I remember that the folder names generated within the tmp folders are long too. Something like
So that probably will add up to the length of the file names which might lead to exceeding the limit.