HELP - J2EE deployment
I'm making a war and the files in the WEB-INF directory are showing as
in the web-inf directory. The files that are in subdirectories of
WEB-INF are in fact in WEB-INF. Build 3316.
Is anyone else seeing this?
Here is the exploded directory that it builds it from:
To make matters worse, it looks like I can't start earlier versions.
Attachment(s):
moz-screenshot.jpg
moz-screenshot-1.jpg
请先登录再写评论。
Could be something like:
Winzip does not create directory entries in zip files for directories, it stores files with paths intead. Jar actually adds an entry for each directory. So what you might have is a zip-file(well jar-) that contains a "web-inf" directory entry and lots of files with WEB-INF-paths. Since the web-inf directory entry is going to be what creates the directory...
Also: I assure you, SOMETHING adds that directory. Are you sing ant to build the war?
I have an ant script that we run on a Linux box for deploys (another
problem related to SUSE 9 causes problems with that). If they can't get
the Linux deploys working, then I might modify the script to run locally.
I'm not sure if that will help since IntelliJ, WinZip and jar have the
same problem.
Patrik Andersson wrote:
>Could be something like:
>Winzip does not create directory entries in zip files for directories, it stores files with paths intead. Jar actually adds an entry for each directory. So what you might have is a zip-file(well jar-) that contains a "web-inf" directory entry and lots of files with WEB-INF-paths. Since the web-inf directory entry is going to be what creates the directory...
>
>Also: I assure you, SOMETHING adds that directory. Are you sing ant to build the war?
>
Is that an ant-script that creates the war-file? If so, are you using the war-task to do so? Replace that with the zip-task and explicitly add a WEB-INF-entry yourself.
It is a problem with the server. I used PowerArchiver and it built the
war as I expected, but it still blew up.
I deployed that war to our QA environment and it worked. I had IntelliJ
build an war and it also worked in QA.
Thx for whomever suggested that it was a problem with the server.
Rob Harwood (JetBrains) wrote:
>
>
>> I performed a windows search of my project directory for any file
>> named web-inf or any file containing the text web-inf. It found
>> nothing.
>
>
>
>
>> A co-worker uses the project out of CVS and he has the same problem.
>
>
>
JBoss was fuxor. We had to restart it.
Norris Shelton wrote:
>
>
>
>
>> Norris, have you found a solution yet? Some notes below:
>>
>> Norris Shelton wrote:
>>
>>> I performed a windows search of my project directory for any file
>>> named web-inf or any file containing the text web-inf. It found
>>> nothing.
>>
>>
>>
>> I've noticed that 'windows search' blows. In XP, it won't search
>> files with unknown extensions (possibly .iml, .ipr, or .iws) or
>> non-existent extensions like README or files like that, and you can't
>> even force it to. I would use a proper search utility when actually
>> finding the string is important. On Windows, you can use the
>> command-line 'findstr', although it's not greatly usable.
>>
>> Also, WinZip isn't that great either. Just to be sure, I would use
>> WinRAR or PowerArchiver, or some other zip util.
>>
>>> A co-worker uses the project out of CVS and he has the same problem.
>>
>>
>>
>> This seems to indicate to me that it's not just case-stickiness in
>> your filesystem, but some setting in some file, or possibly some
>> external utility that both you and your co-worker use. If you can
>> reproduce it on a third machine, that would pretty much confirm that
>> it's some setting or utility (again, hopefully not IDEA!).
>>