Closed lrkwz closed 10 years ago
Did you install spud-security or create a security bridge interface ?
Also do you have a context path? What does it say when your app starts up i.e.
Server running. Browse to http://localhost:8080/myapp
I've implemented a bridge interface.
The startup log is:
|Running Grails application
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security UI ...
... finished configuring Spring Security UI
Server running. Browse to http://localhost:8080/garanteasy-application
2014-07-28 15:55:39,266 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this_.site_id as y0_, this_.url_name as y1_, this_.destination_url as y2_ from spud_permalinks this_ where this_.site_id=?
2014-07-28 15:55:39,582 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this_.id as id1_18_0_, this_.version as version2_18_0_, this_.created_by as created_3_18_0_, this_.created_at as created_4_18_0_, this_.updated_at as updated_5_18_0_, this_.layout as layout6_18_0_, this_.meta_description as meta_des7_18_0_, this_.meta_keywords as meta_key8_18_0_, this_.name as name9_18_0_, this_.notes as notes10_18_0_, this_.page_order as page_or11_18_0_, this_.publish_at as publish12_18_0_, this_.published as publish13_18_0_, this_.renderer as rendere14_18_0_, this_.site_id as site_id15_18_0_, this_.spud_page_id as spud_pa16_18_0_, this_.template_engine as templat17_18_0_, this_.updated_by as updated18_18_0_, this_.url_name as url_nam19_18_0_, this_.use_custom_url_name as use_cus20_18_0_, this_.visibility as visibil21_18_0_ from spud_pages this_ where this_.url_name=? limit ?
Spud tables are all empty.
Installed Plugins
i18n - 2.4.2
logging - 2.4.2
core - 2.4.2
urlMappings - 2.4.2
dataBinding - 2.4.2
restResponder - 2.4.2
jqueryUi - 1.10.3
coffeeAssetPipeline - 1.7.0
spudPermalinks - 0.5.0
spudCore - 0.5.1
databaseMigration - 1.4.0
famfamfam - 1.0.1
retinaTag - 1.1.0
assetPipeline - 1.8.11
spudCms - 0.5.7
securityBridge - 0.5.4
sitemaps - 1.0.0
jquery - 1.11.1
mail - 1.0.5
garanteasyCore - 0.0.9-SNAPSHOT
webxml - 1.4.1
servlets - 2.4.2
codecs - 2.4.2
dataSource - 2.4.2
controllers - 2.4.2
domainClass - 2.4.2
hibernate4 - 4.3.5.4
controllersAsync - 2.4.2
services - 2.4.2
filters - 2.4.2
converters - 2.4.2
mimeTypes - 2.4.2
validation - 2.4.2
groovyPages - 2.4.2
springSecurityCore - 2.0-RC4
cache - 1.1.7
scaffolding - 2.1.2
springSecurityUi - 1.0-RC2
BTW: meanwhile I've upgraded to spud-cms:0.5.7
So if you point your browser to
http://localhost:8080/garanteasy-application/spud/admin
Nothing comes up? The db will be empty initially. You should get redirected to a setup url
Sent from my iPhone
On Jul 28, 2014, at 9:02 AM, Luca Orlandi notifications@github.com wrote:
I've implemented a bridge interface.
The startup log is: |Running Grails application Configuring Spring Security Core ... ... finished configuring Spring Security Core Configuring Spring Security UI ... ... finished configuring Spring Security UI Server running. Browse to http://localhost:8080/garanteasy-application 2014-07-28 15:55:39,266 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this_.siteid as y0, this_.urlname as y1, this_.destinationurl as y2 from spudpermalinks this where this_.siteid=? 2014-07-28 15:55:39,582 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this.id as id1_180, this_.version as version2_180, this_.created_by as created_3_180, this_.created_at as created_4_180, this_.updated_at as updated_5_180, this_.layout as layout6_180, this_.meta_description as meta_des7_180, this_.meta_keywords as meta_key8_180, this_.name as name9_180, this_.notes as notes10_180, this_.page_order as page_or11_180, this_.publish_at as publish12_180, this_.published as publish13_180, this_.renderer as rendere14_180, this_.site_id as site_id15_180, this_.spud_page_id as spud_pa16_180, this_.template_engine as templat17_180, this_.updated_by as updated18_180, this_.url_name as url_nam19_180, this_.use_custom_url_name as use_cus20_180, this_.visibility as visibil21_180 from spudpages this where this_.url_name=? limit ?
Spud tables are all empty.
Installed Plugins
i18n - 2.4.2 logging - 2.4.2 core - 2.4.2 urlMappings - 2.4.2 dataBinding - 2.4.2 restResponder - 2.4.2 jqueryUi - 1.10.3 coffeeAssetPipeline - 1.7.0 spudPermalinks - 0.5.0 spudCore - 0.5.1 databaseMigration - 1.4.0 famfamfam - 1.0.1 retinaTag - 1.1.0 assetPipeline - 1.8.11 spudCms - 0.5.7 securityBridge - 0.5.4 sitemaps - 1.0.0 jquery - 1.11.1 mail - 1.0.5 garanteasyCore - 0.0.9-SNAPSHOT webxml - 1.4.1 servlets - 2.4.2 codecs - 2.4.2 dataSource - 2.4.2 controllers - 2.4.2 domainClass - 2.4.2 hibernate4 - 4.3.5.4 controllersAsync - 2.4.2 services - 2.4.2 filters - 2.4.2 converters - 2.4.2 mimeTypes - 2.4.2 validation - 2.4.2 groovyPages - 2.4.2 springSecurityCore - 2.0-RC4 cache - 1.1.7 scaffolding - 2.1.2 springSecurityUi - 1.0-RC2 — Reply to this email directly or view it on GitHub.
I receive a 404 as for all the spud's url's Il 28/lug/2014 16:20 "David Estes" notifications@github.com ha scritto:
So if you point your browser to
http://localhost:8080/garanteasy-application/spud/admin
Nothing comes up? The db will be empty initially. You should get redirected to a setup url
Sent from my iPhone
On Jul 28, 2014, at 9:02 AM, Luca Orlandi notifications@github.com wrote:
I've implemented a bridge interface.
The startup log is: |Running Grails application Configuring Spring Security Core ... ... finished configuring Spring Security Core Configuring Spring Security UI ... ... finished configuring Spring Security UI Server running. Browse to http://localhost:8080/garanteasy-application 2014-07-28 15:55:39,266 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this_.siteid as y0, this_.urlname as y1, this_.destinationurl as y2 from spudpermalinks this where this_.siteid=? 2014-07-28 15:55:39,582 [http-bio-8080-exec-4] DEBUG hibernate.SQL - select this.id as id1_180, this_.version as version2_180, this_.created_by as created_3_180, this_.created_at as created_4_180, this_.updated_at as updated_5_180, this_.layout as layout6_180, this_.meta_description as meta_des7_180, this_.meta_keywords as meta_key8_180, this_.name as name9_180, this_.notes as notes10_180, this_.page_order as page_or11_180, this_.publish_at as publish12_180, this_.published as publish13_180, this_.renderer as rendere14_180, this_.site_id as site_id15_180, this_.spud_page_id as spud_pa16_180, this_.template_engine as templat17_180, this_.updated_by as updated18_180, this_.url_name as url_nam19_180, this_.use_custom_url_name as use_cus20_180, this_.visibility as visibil21_180 from spudpages this where this_.url_name=? limit ?
Spud tables are all empty.
Installed Plugins
i18n - 2.4.2 logging - 2.4.2 core - 2.4.2 urlMappings - 2.4.2 dataBinding - 2.4.2 restResponder - 2.4.2 jqueryUi - 1.10.3 coffeeAssetPipeline - 1.7.0 spudPermalinks - 0.5.0 spudCore - 0.5.1 databaseMigration - 1.4.0 famfamfam - 1.0.1 retinaTag - 1.1.0 assetPipeline - 1.8.11 spudCms - 0.5.7 securityBridge - 0.5.4 sitemaps - 1.0.0 jquery - 1.11.1 mail - 1.0.5 garanteasyCore - 0.0.9-SNAPSHOT webxml - 1.4.1 servlets - 2.4.2 codecs - 2.4.2 dataSource - 2.4.2 controllers - 2.4.2 domainClass - 2.4.2 hibernate4 - 4.3.5.4 controllersAsync - 2.4.2 services - 2.4.2 filters - 2.4.2 converters - 2.4.2 mimeTypes - 2.4.2 validation - 2.4.2 groovyPages - 2.4.2 springSecurityCore - 2.0-RC4 cache - 1.1.7 scaffolding - 2.1.2 springSecurityUi - 1.0-RC2 — Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50344244.
I just created a base app and it loaded no problem. So trying to figure this one out. Do you have a sample application I can look at?
Hello, I just created a brand new grails 2.4.2 test app with no additions, added
compile ":spud-cms:0.5.7" compile ":spud-security:0.5.0"
when i run-app this are the controllers recognised by grails:
<li class="controller"><a href="/spud-test/setup/index
view-source:http://localhost:8080/spud-test/setup/index">spud.SetupController
<li class="controller"><a href="/spud-test/menuItems/index
<view-source:http://localhost:8080/spud-test/menuItems/index>">spud.admin.MenuItemsController
<li class="controller"><a href="/spud-test/pages/index
<view-source:http://localhost:8080/spud-test/pages/index>">spud.admin.PagesController
<li class="controller"><a href="/spud-test/snippets/index
<view-source:http://localhost:8080/spud-test/snippets/index>">spud.admin.SnippetsController
<li class="controller"><a href="/spud-test/dashboard/index
<view-source:http://localhost:8080/spud-test/dashboard/index>">spud.core.admin.DashboardController
I really wish to use spud, please don't let me alone with weceem :-)
-Luca http://about.me/lrkwz
On 28 July 2014 16:59, David Estes notifications@github.com wrote:
I just created a base app and it loaded no problem. So trying to figure this one out. Do you have a sample application I can look at?
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50349770.
David Estes
On July 28, 2014 at 1:27:43 PM, Luca Orlandi (notifications@github.com) wrote:
Hello, I just created a brand new grails 2.4.2 test app with no additions, added
compile ":spud-cms:0.5.7" compile ":spud-security:0.5.0"
when i run-app this are the controllers recognised bye grails:
I really wish to use spud, please don't let me alone with weceem :-)
-Luca http://about.me/lrkwz
On 28 July 2014 16:59, David Estes notifications@github.com wrote:
I just created a base app and it loaded no problem. So trying to figure this one out. Do you have a sample application I can look at?
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50349770.
— Reply to this email directly or view it on GitHub.
"Click options in a grails app"? Sorry I cannot understand how to start up your setup Il 28/lug/2014 20:10 "David Estes" notifications@github.com ha scritto:
Ok there is a bug in grails. Do not use the controller list click options in a grails app. They do not properly handle namespaced controllers. There
is actually a grails JIRA for this.
David Estes
On July 28, 2014 at 1:27:43 PM, Luca Orlandi (notifications@github.com) wrote:
Hello, I just created a brand new grails 2.4.2 test app with no additions, added
compile ":spud-cms:0.5.7" compile ":spud-security:0.5.0"
when i run-app this are the controllers recognised bye grails:
spud.SetupController spud.SpudPageController* spud.admin.MenuItemsController spud.admin.MenusController spud.admin.PagesController spud.admin.PermalinksController spud.admin.SnippetsController spud.admin.UserController spud.core.admin.DashboardController
- Note the SpudPageController.
- All the link take to a 404 error with no output on the console
I really wish to use spud, please don't let me alone with weceem :-)
-Luca http://about.me/lrkwz
On 28 July 2014 16:59, David Estes notifications@github.com wrote:
I just created a base app and it loaded no problem. So trying to figure this one out. Do you have a sample application I can look at?
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50349770.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50375759.
Sorry the page that lists the controllers in your app in grails don’t work for namespaced controllers you have to point directly to it
David Estes
On July 28, 2014 at 5:08:47 PM, Luca Orlandi (notifications@github.com) wrote:
"Click options in a grails app"? Sorry I cannot understand how to start up your setup Il 28/lug/2014 20:10 "David Estes" notifications@github.com ha scritto:
Ok there is a bug in grails. Do not use the controller list click options in a grails app. They do not properly handle namespaced controllers. There
is actually a grails JIRA for this.
David Estes
On July 28, 2014 at 1:27:43 PM, Luca Orlandi (notifications@github.com) wrote:
Hello, I just created a brand new grails 2.4.2 test app with no additions, added
compile ":spud-cms:0.5.7" compile ":spud-security:0.5.0"
when i run-app this are the controllers recognised bye grails:
spud.SetupController spud.SpudPageController* spud.admin.MenuItemsController spud.admin.MenusController spud.admin.PagesController spud.admin.PermalinksController spud.admin.SnippetsController spud.admin.UserController spud.core.admin.DashboardController
- Note the SpudPageController.
- All the link take to a 404 error with no output on the console
I really wish to use spud, please don't let me alone with weceem :-)
-Luca http://about.me/lrkwz
On 28 July 2014 16:59, David Estes notifications@github.com wrote:
I just created a base app and it loaded no problem. So trying to figure this one out. Do you have a sample application I can look at?
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50349770.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/spud-grails/spud-cms/issues/3#issuecomment-50375759.
— Reply to this email directly or view it on GitHub.
Ok understood. So I think that you should add it in your documentation referring http://grails.org/doc/latest/guide/theWebLayer.html#namespacedControllers
Add
<g:link controller="dashboard" namespace="spud_admin">Click For Spud Admin</g:link>
If you wish you can use this https://github.com/lrkwz/spud-tutorial
David Estes
On July 29, 2014 at 3:34:35 PM, Luca Orlandi (notifications@github.com) wrote:
If you wish you can use this https://github.com/lrkwz/spud-tutorial
— Reply to this email directly or view it on GitHub.
Hello I've added:
but when i browse to http://localhost:8080//spud/admin I receive an error.
The available controllers list shows a link to / instead of /spud or /spud/admin as I expected.
How can I preceed? What am I doing wrong?