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.

Bug 268399 - Error occurred running Grails CLI: No profile found for name [web]. When Netbeans load and run a Grails 3.x previous project.
Summary: Error occurred running Grails CLI: No profile found for name [web]. When Netb...
Status: CLOSED INVALID
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: bruno.flavio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 08:09 UTC by juanramonrico
Modified: 2016-10-09 10:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description juanramonrico 2016-10-07 08:09:32 UTC
I try with latest dev version to create and run an empty Grails 3.x project and it works ok. But when I load a Grails 3.x previous project a new error appears:
    Error occurred running Grails CLI: No profile found for name [web]

In fact, Netbeans can't run any Grails menu option. Each of them show a error message.

When I use Grails 3.x from command line executing gradlew bootRun (project directory) project runs properly without errors. The toy exmaple project is in https://github.com/grails-samples/grails-petclinic. I change gradle project version of properties to internal default Grails version.


Regards,
Comment 1 bruno.flavio 2016-10-08 23:37:04 UTC
Hello, thank you for reporting this issue.

I couldn't replicate the described issue yet, here's what I tried:

1. Clone the petclinic repository;
2. Set the grails version in NetBeans to the project's version: 3.0.3;
3. Run the project, works as expected;
5. Stop the running project.
6. Change the gradle.properties grailsVersion to 3.0.11;
7. Set the grails version in NetBeans to 3.0.11;
8. Run the project, works as expected.

Could give me some guidance in order to reproduce this?

-Bruno
Comment 2 juanramonrico 2016-10-09 10:15:54 UTC
Hello Bruno,

I follow your steps and everything run well.
My old petclinc clone had four months ago and a few changes to adapt 3.0.3 original version to 3.1.x.

I started again with:

1. clone petclinic 
2. I tested with Grails 3.0.3 with Netbeans 8.2 and dev Build 201610090002. Everything works well.
3. In order to upgrade petclinic project, I created a new empty project with dev build (Grails 3.2.0) and I copy build.gradle and gradle.properties to the previous petclinic project.
4. Again, I tested the new Grails 3.2.0 with Netbeans 8.2 and dev Build 201610090002 with upgraded petclinic. Everything works well.


So, thanks for your answers and I changed this issue status.
Comment 3 bruno.flavio 2016-10-09 10:54:23 UTC
All right, thank you for the feedback.
If you end up seeing that there's something more to it please reopen the issue with additional information.

-Bruno