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
35 comments
Comment actions Permalink

I saw this once a while ago on windows, using IDEA 4.5.4... ignored it.

R

0
Comment actions Permalink

I am on Windows XP Pro SP2. I had deployed from this machine before,
but I'm dead in the water now. Doh

Robert S. Sfeir wrote:

>I saw this once a while ago on windows, using IDEA 4.5.4... ignored it.
>
>R

>

0
Comment actions Permalink

Does anybody know what I can do to fix this? I have deleted the
directory that I use to build the war an the war itself. It still happens.

Norris Shelton wrote:

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):
att1.dat
att1.dat
0
Comment actions Permalink

Norris Shelton wrote:

Does anybody know what I can do to fix this? I have deleted the
directory that I use to build the war an the war itself. It still happens.


I've seen this before, unrelated to IDEA, so hopefully your problem is
also unrelated to IDEA.

Somehow, somewhere, there is a lower-case 'web-inf' string hanging
around. It could be in a zip file, it could be in an Ant build file or
other script, it could (hopefully not) be generated by IDEA, or it could
be in the Windows file system.

Assuming you've done a search of your project for lowercase web-inf, and
assuming it's not in IDEA, the last (and actually quite probable)
possibility is in the windows file system. (The path entries in a zip
are stored as text, so something is shoving lowercase web-inf into your
zip, and my guess is it's windows when you create the zip (or add those
files).)

If you do a 'dir', is the folder listed as 'web-inf'? If you delete the
folder, then do 'mkdir WEB-INF', then do 'dir', does the folder still
show up as 'web-inf'? If so, it's surely windows. I've seen something
like this before, but it was a while ago and can't be sure exactly how
it goes, but I'll try.

Here's what I would do: Create the folder, which will inevitably be
named 'web-inf'. Use Windows Explorer to change the name of the file,
like 'web-inf2', then try to create the new folder 'WEB-INF'. Hopefully
it will stick now.

If that doesn't get you anywhere, I would break apart whatever build
process creates your war, and find exactly where it shoves in lowercase
web-inf, and debug it from there.

P.S. After having this happen to me (about 2-3 years ago), I'm careful
to always type WEB-INF and META-INF on windows. I haven't had problems
since.

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

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
renamed the folder from WEB-INF to WEB-INF2 and back to WEB-INF. I did
have my project set-up to create an exploded directory and a war. I
changed it to only create a war. I deleted all of the built files.
After I had IntelliJ rebuild the war, I still ended up with a web-inf
folder. Notice that the name of the folder is WEB-INF for sub-folders
of WEB-INF.



When I changed the project to making a war and an exploded directory,
the war is the same and the exploded directory shows WEB-INF like it's
supposed to.


We have some Unix utilities installed and they show the exploded
directory as


Here is what the project directory looks like


A co-worker uses the project out of CVS and he has the same problem. I
thought it might be in the IntelliJ folders, but windows found no
reference to web-inf (lower-case sensitive) in any of the files.

Rob Harwood (JetBrains) wrote:

Norris Shelton wrote:

>
>> Does anybody know what I can do to fix this? I have deleted the
>> directory that I use to build the war an the war itself. It still
>> happens.
>
>

I've seen this before, unrelated to IDEA, so hopefully your problem is
also unrelated to IDEA.

>

Somehow, somewhere, there is a lower-case 'web-inf' string hanging
around. It could be in a zip file, it could be in an Ant build file or
other script, it could (hopefully not) be generated by IDEA, or it
could be in the Windows file system.

>

Assuming you've done a search of your project for lowercase web-inf,
and assuming it's not in IDEA, the last (and actually quite probable)
possibility is in the windows file system. (The path entries in a zip
are stored as text, so something is shoving lowercase web-inf into
your zip, and my guess is it's windows when you create the zip (or add
those files).)

>

If you do a 'dir', is the folder listed as 'web-inf'? If you delete
the folder, then do 'mkdir WEB-INF', then do 'dir', does the folder
still show up as 'web-inf'? If so, it's surely windows. I've seen
something like this before, but it was a while ago and can't be sure
exactly how it goes, but I'll try.

>

Here's what I would do: Create the folder, which will inevitably be
named 'web-inf'. Use Windows Explorer to change the name of the file,
like 'web-inf2', then try to create the new folder 'WEB-INF'.
Hopefully it will stick now.

>

If that doesn't get you anywhere, I would break apart whatever build
process creates your war, and find exactly where it shoves in
lowercase web-inf, and debug it from there.

>

P.S. After having this happen to me (about 2-3 years ago), I'm careful
to always type WEB-INF and META-INF on windows. I haven't had problems
since.

>



Attachment(s):
moz-screenshot.jpg
moz-screenshot-1.jpg
moz-screenshot-2.jpg
moz-screenshot-3.jpg
0
Comment actions Permalink

I've also had that happen, for me it was Classes vs. classes that caused it. Have you examined (I'm sure you have) the Path settigs and I mean ALL of them? Web Module settings are very annoying in that "WEB-INF" is all over the place, idea defaults to putting web.xml somewhere way off because that's the way people seem to want it, anyway, see if one of those doesn't have WEB-INF as web-inf.

Another thing, idea stores Web MOdule caches in N different places. It has one dir for compiler output (in system), one for caches, delete all of those. If none of that works, set up a brand new project :)

0
Comment actions Permalink

This frickin sucks.

I deleted all caches and built files. Same thing. I searched all
source files and .IntelliJIdea for files named web-inf or for files
containing web-inf. Nothing. I recreated my project and module file
(making sure it was always WEB-INF - it was). No change.

Patrik Andersson wrote:

>I've also had that happen, for me it was Classes vs. classes that caused it. Have you examined (I'm sure you have) the Path settigs and I mean ALL of them? Web Module settings are very annoying in that "WEB-INF" is all over the place, idea defaults to putting web.xml somewhere way off because that's the way people seem to want it, anyway, see if one of those doesn't have WEB-INF as web-inf.
>
>Another thing, idea stores Web MOdule caches in N different places. It has one dir for compiler output (in system), one for caches, delete all of those. If none of that works, set up a brand new project :)

>

0
Comment actions Permalink

Just searched IDEA source codebase for 'web-inf' just to be sure. It wasn't
there.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

This frickin sucks.

I deleted all caches and built files. Same thing. I searched all
source files and .IntelliJIdea for files named web-inf or for files
containing web-inf. Nothing. I recreated my project and module file
(making sure it was always WEB-INF - it was). No change.

Patrik Andersson wrote:

>> I've also had that happen, for me it was Classes vs. classes that
>> caused it. Have you examined (I'm sure you have) the Path settigs and
>> I mean ALL of them? Web Module settings are very annoying in that
>> "WEB-INF" is all over the place, idea defaults to putting web.xml
>> somewhere way off because that's the way people seem to want it,
>> anyway, see if one of those doesn't have WEB-INF as web-inf.
>>
>> Another thing, idea stores Web MOdule caches in N different places.
>> It has one dir for compiler output (in system), one for caches,
>> delete all of those. If none of that works, set up a brand new
>> project :)
>>


0
Comment actions Permalink

This is getting annoying. I verified that the CVS file system had it as
WEB-INF. I renamed the exploded directory folder to WEB-INFx and
IntelliJ warred it up as WEB-INFx. I changed the folder back to WEB-INF
and it went back to web-inf. WTF.

I deleted ALL of my files and checked out from CVS. Still happens.

Is there a way to have IntelliJ force this directory to be WEB-INF since
the spec declares it to be upper-case.

I thought I would never say this. Windows sucks.

Maxim Shafirov (JetBrains) wrote:

Just searched IDEA source codebase for 'web-inf' just to be sure. It
wasn't there.

>>:o

-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

>
>> This frickin sucks.
>>
>> I deleted all caches and built files. Same thing. I searched all
>> source files and .IntelliJIdea for files named web-inf or for files
>> containing web-inf. Nothing. I recreated my project and module file
>> (making sure it was always WEB-INF - it was). No change.
>>
>> Patrik Andersson wrote:
>>
>>> I've also had that happen, for me it was Classes vs. classes that
>>> caused it. Have you examined (I'm sure you have) the Path settigs and
>>> I mean ALL of them? Web Module settings are very annoying in that
>>> "WEB-INF" is all over the place, idea defaults to putting web.xml
>>> somewhere way off because that's the way people seem to want it,
>>> anyway, see if one of those doesn't have WEB-INF as web-inf.
>>>
>>> Another thing, idea stores Web MOdule caches in N different places.
>>> It has one dir for compiler output (in system), one for caches,
>>> delete all of those. If none of that works, set up a brand new
>>> project :)
>>>
>
>

0
Comment actions Permalink

I thought I would never say this. Windows sucks.


Oh, the illusions...

0
Comment actions Permalink

This is a windows problem. If I use winZip to create a .war, it
exhibits the same behavior.

Norris Shelton wrote:

This is getting annoying. I verified that the CVS file system had it
as WEB-INF. I renamed the exploded directory folder to WEB-INFx and
IntelliJ warred it up as WEB-INFx. I changed the folder back to
WEB-INF and it went back to web-inf. WTF.

>

I deleted ALL of my files and checked out from CVS. Still happens.

>

Is there a way to have IntelliJ force this directory to be WEB-INF
since the spec declares it to be upper-case.

>

I thought I would never say this. Windows sucks.

>

Maxim Shafirov (JetBrains) wrote:

>
>> Just searched IDEA source codebase for 'web-inf' just to be sure. It
>> wasn't there.
>>
>>> :o
>>
>> -


>> Maxim Shafirov
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>>> This frickin sucks.
>>>
>>> I deleted all caches and built files. Same thing. I searched all
>>> source files and .IntelliJIdea for files named web-inf or for files
>>> containing web-inf. Nothing. I recreated my project and module file
>>> (making sure it was always WEB-INF - it was). No change.
>>>
>>> Patrik Andersson wrote:
>>>
>>>> I've also had that happen, for me it was Classes vs. classes that
>>>> caused it. Have you examined (I'm sure you have) the Path settigs and
>>>> I mean ALL of them? Web Module settings are very annoying in that
>>>> "WEB-INF" is all over the place, idea defaults to putting web.xml
>>>> somewhere way off because that's the way people seem to want it,
>>>> anyway, see if one of those doesn't have WEB-INF as web-inf.
>>>>
>>>> Another thing, idea stores Web MOdule caches in N different places.
>>>> It has one dir for compiler output (in system), one for caches,
>>>> delete all of those. If none of that works, set up a brand new
>>>> project :)
>>>>
>>
>>

0
Comment actions Permalink

I would go Apple if it wasn't for their pathetic history of JDK updates.

Marcus Brito wrote:

>>I thought I would never say this. Windows sucks.
>>
>>
>
>Oh, the illusions...

>

0
Comment actions Permalink

I would go Apple if it wasn't for their pathetic
history of JDK updates.


I would go if the hardware wasn't so overpriced...

0
Comment actions Permalink

This is a windows problem. If I use winZip to create
a .war, it
exhibits the same behavior.


Here's a tip: if you create a file (or directory) with a certain casing, renaming won't change it. Try to completely remove the folder from your hard disk (of course, saving the contents somewhere else), then recreate it with the correct case (and copy it's contents back).

0
Comment actions Permalink

In article <4014125.1115315975262.JavaMail.itn@is.intellij.net>,
Marcus Brito <mbrito@gmail.com> wrote:

I would go Apple if it wasn't for their pathetic
history of JDK updates.


I would go if the hardware wasn't so overpriced...


$500.00 is over priced? Even if you loaded up a mini it's still
800.00... you can also get a nice iMac with a 2Ghz processor and 512MB
of RAM for $1299.... and that includes the 17" screen...

People want great hardware quality, but want dell prices... come on.

R

0
Comment actions Permalink

In article <427A588C.3080708@nunya.net>,
Norris Shelton <nunya@nunya.net> wrote:

I would go Apple if it wasn't for their pathetic history of JDK updates.


Pathetic because it didn't release JDK 5 until last week? And how many
applications require JDK5 again?

I'd say it's not fun to wait when everyone else has it, but in the
overall context of things, there hasn't really been anything (short of
JetBrains wanting to ship IDEA with JDK5) out there pushing JDK5. IDEA
is a different beast, it's driven towards developers, not a much larger
user population.

I don't know who your clients are, and how amenable they are to having a
required JDK, but from where I sit, I don't have the luxury of writing
JDK 5 code and making the whole cancer research community up their JDK
just because I felt like being cool :)


R

0
Comment actions Permalink

$500.00 is over priced?


Maybe I really need to move...

From apple.com/br:

>> Mac Mini (1.25GHzG4/256MB/40GB/Combo): R$ 2.890,00
>> Mac Mini (1.42GHzG4/256MB/80GB/Combo): R$ 3.390,00
>> PowerBook G4 (M9183LZ/A 1.3GHz/256M) : R$ 8.990,00
>> PowerBook G4 (M9462LZ/A 1.5GHz/512M) : R$ 16.990,00

From hp.com.br:

>> HP D325 (Athlon 2800+/256M): R$ 1.904,00
>> HP Pavilion ze4910 (CeleronM 1.4Ghz/256M): R$ 4.499,00
>> HP Pavilion ze2040 (Centrino 1.6Ghz/512M): R$ R$ 8.999,00

From my parts :P

>> Marcus' Box (AthlonXP 3200/1GB/120GB/Combo/Radeon9800 XT): around R$ 2.800,00

I didn't build my machine with any "cheap parts". Everything is high quality, from the Asus motherboard, to the Seagate hard drives, to the Kingston memory modules. It's just that buying them separately is usually cheaper than buying from brand manufacturers like HP (specially if you keep an eye on the market, and buy the parts after a huge price drop thanks to some vapor announcement).

Sigh... looks like all I need is a reliable supplier for Macintosh spare parts (I don't really care about the Apple brand, I just wanted some quality hardware to run MacOS X).

0
Comment actions Permalink

In article <12036163.1115319140992.JavaMail.itn@is.intellij.net>,
Marcus Brito <mbrito@gmail.com> wrote:

Sigh... looks like all I need is a reliable supplier for Macintosh spare
parts (I don't really care about the Apple brand, I just wanted some quality
hardware to run MacOS X).


ummm... There is no such thing, you need to contact Apple for spare
parts, not sure they will give them to you. You can't run OSX on your
home made machine.

R

0
Comment actions Permalink

ummm... There is no such thing, you need to contact
Apple for spare
parts, not sure they will give them to you. You
can't run OSX on your
home made machine.


As I really expected. Oh well, I'll keep working...

0
Comment actions Permalink

Can you get an Apple that is comparable to a dual Xeon 2.8Ghz w/2GB for
under $2K? Me thinks not. :)


Robert S. Sfeir wrote:

>In article <4014125.1115315975262.JavaMail.itn@is.intellij.net>,

Marcus Brito <mbrito@gmail.com> wrote:

>

>
>>>I would go Apple if it wasn't for their pathetic
>>>history of JDK updates.
>>>
>>>
>>I would go if the hardware wasn't so overpriced...
>>
>>
>
>$500.00 is over priced? Even if you loaded up a mini it's still
>800.00... you can also get a nice iMac with a 2Ghz processor and 512MB
>of RAM for $1299.... and that includes the 17" screen...
>
>People want great hardware quality, but want dell prices... come on.
>
>R

>



Attachment(s):
moz-screenshot.jpg
0
Comment actions Permalink

We deployed our first JBoss webapp 2 months ago on JDK5. We switching
to developing against it in January. :)
We are a web ASP, so we have a lot more flexibility for what we run.

Robert S. Sfeir wrote:

>In article <427A588C.3080708@nunya.net>,

Norris Shelton <nunya@nunya.net> wrote:

>

>
>>I would go Apple if it wasn't for their pathetic history of JDK updates.
>>
>>
>
>Pathetic because it didn't release JDK 5 until last week? And how many
>applications require JDK5 again?
>
>I'd say it's not fun to wait when everyone else has it, but in the
>overall context of things, there hasn't really been anything (short of
>JetBrains wanting to ship IDEA with JDK5) out there pushing JDK5. IDEA
>is a different beast, it's driven towards developers, not a much larger
>user population.
>
>I don't know who your clients are, and how amenable they are to having a
>required JDK, but from where I sit, I don't have the luxury of writing
>JDK 5 code and making the whole cancer research community up their JDK
>just because I felt like being cool :)
>
>
>R

>

0
Comment actions Permalink

I have. I deleted the built files. I even went as far as deleting my
source files and checking out from CVS. Same problem. I verified that
CVS (Linux) has the correct case.

Marcus Brito wrote:

>>This is a windows problem. If I use winZip to create
>>a .war, it
>>exhibits the same behavior.
>>
>>
>
>Here's a tip: if you create a file (or directory) with a certain casing, renaming won't change it. Try to completely remove the folder from your hard disk (of course, saving the contents somewhere else), then recreate it with the correct case (and copy it's contents back).

>

0
Comment actions Permalink

Norris Shelton wrote:

This is getting annoying. I verified that the CVS file system had it as
WEB-INF. I renamed the exploded directory folder to WEB-INFx and
IntelliJ warred it up as WEB-INFx. I changed the folder back to WEB-INF
and it went back to web-inf. WTF.


What does the output of "jar -tf yourwebapp.war" look like? I just
experimented with this and looking at the jar using Winzip I see
lower-case "web-inf" folders but the jar command lists it as "WEB-INF".

I suspect Winzip is "interpreting" the path for your pleasure (right!).
Notice that it only happens for files which are directly in the WEB-INF
folder. I think Winzip just checks if the path of a file (excluding the
filename itself) is all upper-case and lower-cases it.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

Here is what jar showed


WinZip shows it as:


I deployed it to the Linux JBoss server just to make sure - it blew cookies.

Gordon Tyler wrote:

Norris Shelton wrote:

>
>> This is getting annoying. I verified that the CVS file system had it
>> as WEB-INF. I renamed the exploded directory folder to WEB-INFx and
>> IntelliJ warred it up as WEB-INFx. I changed the folder back to
>> WEB-INF and it went back to web-inf. WTF.
>
>

What does the output of "jar -tf yourwebapp.war" look like? I just
experimented with this and looking at the jar using Winzip I see
lower-case "web-inf" folders but the jar command lists it as "WEB-INF".

>

I suspect Winzip is "interpreting" the path for your pleasure
(right!). Notice that it only happens for files which are directly in
the WEB-INF folder. I think Winzip just checks if the path of a file
(excluding the filename itself) is all upper-case and lower-cases it.

>

Ciao,
Gordon

>



Attachment(s):
moz-screenshot.jpg
moz-screenshot-1.jpg
0
Comment actions Permalink

Weird... Is IntelliJ creating this WAR file? What if you have IntelliJ
create an exploded directory and then you use JAR to manually zip it up
into a WAR file? Does it still blow cookies then?

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

I have let IntelliJ create the war. I have used WinZip to create the
war from the exploded directory. I have also used jar to create the
war. They all have the same problem.

I have renamed directories and deleted all my built and source files.

Gordon Tyler wrote:

Weird... Is IntelliJ creating this WAR file? What if you have IntelliJ
create an exploded directory and then you use JAR to manually zip it
up into a WAR file? Does it still blow cookies then?

>

Ciao,
Gordon

>

0
Comment actions Permalink

Norris Shelton wrote:

I have let IntelliJ create the war. I have used WinZip to create the
war from the exploded directory. I have also used jar to create the
war. They all have the same problem.


At this point I would examine the appserver which is choking on them. As
far as I can tell, the jar tool is creating the files correctly. What
exactly is the error?

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

It cannot find specified files like web.xml and struts-config.xml
because they are not in WEB-INF. The server is JBoss 4.0.1sp1. It
works fine on Windows, but tosses on Linux. This is something that had
worked fine for months before.

Gordon Tyler wrote:

Norris Shelton wrote:

>
>> I have let IntelliJ create the war. I have used WinZip to create the
>> war from the exploded directory. I have also used jar to create the
>> war. They all have the same problem.
>
>

At this point I would examine the appserver which is choking on them.
As far as I can tell, the jar tool is creating the files correctly.
What exactly is the error?

>

Ciao,
Gordon

>

0
Comment actions Permalink

I agree with Gordon. If I open our ear in WinZip it looks just like you have
been saying. But it deploys fine on Windows/Weblogic and Solaris/iPlanet.

"Norris Shelton" <nunya@nunya.net> wrote in message
news:427BAF58.4040305@nunya.net...

It cannot find specified files like web.xml and struts-config.xml because
they are not in WEB-INF. The server is JBoss 4.0.1sp1. It works fine on
Windows, but tosses on Linux. This is something that had worked fine for
months before.

>

Gordon Tyler wrote:

>
>> Norris Shelton wrote:
>>
>>> I have let IntelliJ create the war. I have used WinZip to create the
>>> war from the exploded directory. I have also used jar to create the
>>> war. They all have the same problem.
>>
>>
>> At this point I would examine the appserver which is choking on them. As
>> far as I can tell, the jar tool is creating the files correctly. What
>> exactly is the error?
>>
>> Ciao,
>> Gordon
>>


0
Comment actions Permalink

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!).

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.