This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Copy Dependent Libraries fails | ||
---|---|---|---|
Product: | javaee | Reporter: | _ proxity <proxity> |
Component: | Web Project | Assignee: | David Konecny <dkonecny> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | dkonecny, tzezula |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
ant debug output
Google App Engine output Main and dependent project |
Description
_ proxity
2011-05-24 10:30:22 UTC
The Ant 1.8.0 or newer is needed to support indexMetaInf. The NB 7.0 comes with Ant 1.8.2 (Apache Ant(TM) version 1.8.2 compiled on December 20 2010). Don't you have your own Ant set? Can you attach ant debug output? Web Project do not even have this option. David, the building of the library projects fails when they are built as dependent projects. Tomas, I suspect that the Google App Engine is the problem. A Clean & Build of the main project works. I assume that this is done by NetBeans' ant. Only running works not. May be GAE uses its own ant for building and local deployment. The latest version of the official GAE SDK contains an old version of ant: appengine-java-sdk-1.5.0.1/lib/shared/jsp/repackaged-appengine-ant-launcher-1.7.1.jar appengine-java-sdk-1.5.0.1/lib/shared/jsp/repackaged-appengine-ant-1.7.1.jar Right, the Google App Engine is the problem. I have no idea which part of j2ee project it should belong. Reassigning back to David to do reevaluation. The GAP support should overload the init-macrodef-copylibs if it uses older ant. Could you please go to Tools->Options->Miscellaneous->Ant and set Verbose Level to debug and execute Run and save the Ant output into a file and append it here. It would also help us if you could attach a sample WebProject using GAE and a dependent project to demonstrate the problem. Thanks for your help. At the moment I assume that GAE support for NB is doing something wrong. You could as well as file this problem for them to evaluate first but since we already started talking about it I'm happy to evaluate it. Created attachment 108513 [details]
ant debug output
Created attachment 108514 [details]
Google App Engine output
David, I attached the logfiles. Do you need the whole project dirs, e.g. as a zip archive? How the Google App engine output is related to the build output (ant debug output)? The Google App engine output is not in verbose mode. The build (ant debug output) uses correctly ant 1.8.2 but I don't know from where the Google App engine output comes. If you can share the project (or some simple test case) it would be great. The Google App Engine suport comes from http://kenai.com/projects/nbappengine/pages/Home, right? Yes, it's the plug-in from Kenai. I wrote a posting about it on my blog http://machineplant.com I really want to see it integrated in NetBeans! :-) The GAE output is displayed in the output window in a tab of its own. The GAE plug-in offers no switches, so I assume it will need some hacking to get verbose output here. Created attachment 108517 [details]
Main and dependent project
These more or less empty projects are enough to trigger the problem.
Thanks. I will download the module and try. Sorry proxity, this is GAE integration into NetBeans issue. You should file this problem into their bugzilla and ask them to fix it. The problem is following: GAE NB plugin creates ant-deploy file under nbproject directory and it contains "runserver" target which depends on project compilation. And when you request GAE server to be started in the IDE what happens is that this "runserver" target is executed. And it must be here where different Ant version jumps into game and is used to start the server *but* also build the project because "runserver" target depends on project's "dist" target. On the other hand I must say that I cannot reproduce your problem. I'm using latest dev build of NB but everything runs fine and I never got "indexMetaInf problem". So perhaps the problem is in your local environment?? Some older version of Ant sitting somewhere and interfering?? I removed the RPM ant-1.7.1-7.jpp5 from my system. Now it works! May be the GAE plug-in used it for running my web-app, because it was available on the $PATH. Thanks for you help! |