Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem building .war from eclipse
Problem building .war from eclipse [message #159988] Thu, 09 February 2006 21:56 Go to next message
Eclipse UserFriend
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

Using WTP 1.5M?, I'm having trouble building a usable .war file from my
dynamic web project. Working through the wizard, I find the package and
the location I want to export to, and click "finish", then the dialog
box flashes, and comes back to the same spot, with the "finish" button
like it expects to be clicked again, and there is now a .war file there.
However, when I try to deploy it in Tomcat 5.5.12, I get an "invalid zip
file" (or words to that effect) in the logs when I start tomcat. I also
tried unzipping it with a standard pkzip utility, and it also says the
..zip file has errors. The same utility has no problem unzipping a .jar
file (from a different project) exported to the same place as the .war.

Any hints?
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
Re: Problem building .war from eclipse [message #162113 is a reply to message #159988] Mon, 27 February 2006 10:41 Go to previous messageGo to next message
Albert Almajano is currently offline Albert AlmajanoFriend
Messages: 15
Registered: July 2009
Junior Member
+1


I have the same problem. When I click finish I stay in the same point. Finish button doesn't generate a war file.

But I have seen that this only happens with one of the projects, the rest of the projects works great.

I am trying to see what's the difference between this project and the others, but I don't see anything.

Any idea?
Re: Problem building .war from eclipse [message #162496 is a reply to message #162113] Tue, 28 February 2006 22:08 Go to previous messageGo to next message
Carsten Friedrich is currently offline Carsten FriedrichFriend
Messages: 7
Registered: July 2009
Junior Member
Same problem here using WTP 1.0.0. Weird thing is: the project can export
war files on two of our machines, but not on 4 other machines. I have no
idea what the difference between the machines is. All are running the same
version of Eclipse and the same project (synchronized by CVS).

Is it possible that the problem is related to dynamic web projects being
checked out from CVS instead of created on the machine from scratch?
Re: Problem building .war from eclipse [message #162511 is a reply to message #162496] Tue, 28 February 2006 22:30 Go to previous messageGo to next message
Carsten Friedrich is currently offline Carsten FriedrichFriend
Messages: 7
Registered: July 2009
Junior Member
As this seems to be a real problem in eclipse, I filed a bug report
against it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=129857
Re: Problem building .war from eclipse [message #162559 is a reply to message #159988] Wed, 01 March 2006 07:22 Go to previous messageGo to next message
Albert Almajano is currently offline Albert AlmajanoFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,

I have found the solution. In my case the problem appeared after renaming other projects. After that I couldn't generate a war file.

The solution was enter in the main project properties/J2EE Module Dependencies and uncheck all the dependences. Then you can generate a war.

After that you come back and check again all the dependencies and then you can finally generate your valid war file.

It seems that in WTP 1.0.0 there's a problem with project renaming. As it is said in the bugzilla this is resolved in WTP 1.0.1.

Hope this helps!!!!
Re: Problem building .war from eclipse [message #163101 is a reply to message #162113] Tue, 07 March 2006 16:19 Go to previous message
Eclipse UserFriend
Originally posted by: eb.born-digital.co.uk

aalmajano wrote:
> +1
>
>
> I have the same problem. When I click finish I stay in the same point. Finish button doesn't generate a war file.
>
> But I have seen that this only happens with one of the projects, the rest of the projects works great.
>
> I am trying to see what's the difference between this project and the others, but I don't see anything.
>
> Any idea?

I had exactly the same problem this morning, it seems like the packaging
just hangs. But I restarted Eclipse and it worked. It had been
working fine last night.

(Now there is another problem, it doesn't seem to want to put the jars
in WEB-INF/lib, seems like the whole virtual library path thing is still
quite buggy)

This is with WST 1.0.1
Previous Topic:wtp and .properties files, specifically log4j
Next Topic:Problems after upgrade
Goto Forum:
  


Current Time: Thu Mar 28 15:39:04 GMT 2024

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

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

Back to the top