mehandih / grails-jaxrs

Automatically exported from code.google.com/p/grails-jaxrs
0 stars 0 forks source link

scaffold does not work with plugin domain classes #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create a plugin with domain classes
2. Create a regular project and install the plugin just created
3. Try to scaffold (grails generate-resources) a domain class from the plugin
4. Error stating the plugin can't find the domain class

Domain class not found in grails-app/domain, trying hibernate mapped classes...
No domain class found for name foo.BarClass. Please try again and enter a valid 
domain class name

0.4 with Grails 1.3.6 on Mac with SpringSource Tool Suite

Original issue reported on code.google.com by bobbywar...@gmail.com on 13 Jan 2011 at 7:04

GoogleCodeExporter commented 8 years ago
Thanks for reporting. I'll take a look as soon as I can. If could send me your 
plugin, this would be of great help.

Original comment by krass...@googlemail.com on 14 Jan 2011 at 8:06

GoogleCodeExporter commented 8 years ago
Sure, I can send you the plugin when I get home. There's nothing to it though 
except one domain class.

Plugin:
-------
grails create-plugin sampleplugin
cd sampleplugin
grails create-domain-class com.domain.project.User
grails package-plugin

Project:
--------
grails create-app sampleapp
grails install-plugin /path/to/sampleplugin-0.1.zip
grails install-plugin jaxrs
grails generate-resources com.domain.project.User

Then you'll receive the "Domain class not found"

Original comment by bobbywar...@gmail.com on 14 Jan 2011 at 10:09

GoogleCodeExporter commented 8 years ago
Ah ok, then I'll create it myself :) Just wanted to make sure we're using the 
same artifacts.

Original comment by krass...@googlemail.com on 15 Jan 2011 at 8:56

GoogleCodeExporter commented 8 years ago
Weird, I was trying it within STS before, but I was just playing with this 
again outside STS and it worked just fine. (just using command line, no STS)  I 
was able to successfully generate resources for plugin domain classes.  So, I 
guess this is just a bug in STS, right?

By the way, I just have to say that I love this plugin!  It's so cool!

Thanks,
Bobby

Original comment by bobbywar...@gmail.com on 2 Feb 2011 at 4:08

GoogleCodeExporter commented 8 years ago
Hi Bobby,

glad to hear that it's working now for you and thanks for your kind works. 
Can't say at the moment if it's really an STS bug or just a configuration 
issue. Need to investigate further.

Do you think we can close this issue?

Cheers,
Martin

Original comment by krass...@googlemail.com on 2 Feb 2011 at 4:13

GoogleCodeExporter commented 8 years ago
Yup, this issue can be closed.  Thanks!

Bobby

Original comment by bobbywar...@gmail.com on 2 Feb 2011 at 5:13

GoogleCodeExporter commented 8 years ago

Original comment by krass...@googlemail.com on 2 Feb 2011 at 6:08