starting a new grails eclipse project

View: New views
9 Messages — Rating Filter:   Alert me  

starting a new grails eclipse project

by rtayek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi, tried to start a new grails eclipse project by doing the following:

0. see
http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
install the plugin etc.
1. grails create-app and import into eclipse (copying the files)
2. disable check package matches under groovy properties in eclipse
(for config.groovy)
3. add bin-groovy to compiler output location under groovy properties
in eclipse (even though it's in the preferences)
4. delete all the .class file in the root of the project folder
5. add tools.jar as an external lib to the project to fix: Error
starting Sun's native2asci

trying to run gets the following (full output is below):

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager': Cannot resolve
reference to bean 'sessionFactory' while setting bean property
'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory': Invocation of init method
failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager': Cannot resolve
reference to bean 'sessionFactory' while setting bean property
'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory': Invocation of init method
failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance
is required to use <mapping package="org.grails.bookmarks"/>

thanks

Welcome to Grails 1.0.2 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: i:\grails

Base Directory: I:\ray\workspace\bookmarks
Note: No plugin scripts found
Running script i:\grails\scripts\RunApp.groovy
Environment set to development
   [groovyc] Compiling 1 source file to C:\Documents and
Settings\ray\.grails\1.0.2\projects\bookmarks\classes
2008-05-14 20:43:28.697::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if
your webapp requires one, please configure one.
2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
[file:C:\Documents and
Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties]
2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
WebApplicationContext
2008-05-14 20:43:33.976::WARN:  Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspace\bookmarks/web-app}
Running Grails application..
[0] spring.GrailsWebApplicationContext Refreshing
org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86488:
display name
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86488];
startup date [Wed May 14 20:43:32 PDT 2008]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@15a142f
[0] spring.GrailsWebApplicationContext Bean factory for application
context
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86488]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@12a2259
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager': Cannot resolve
reference to bean 'sessionFactory' while setting bean property
'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory': Invocation of init method
failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>
at java.security.AccessController.doPrivileged(Native Method)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory': Invocation of init
method failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>
at java.security.AccessController.doPrivileged(Native Method)
... 14 more
Caused by: org.hibernate.MappingException: An AnnotationConfiguration
instance is required to use <mapping package="org.grails.bookmarks"/>
... 15 more
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'transactionManager': Cannot resolve
reference to bean 'sessionFactory' while setting bean property
'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory': Invocation of init method
failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance
is required to use <mapping package="org.grails.bookmarks"/>
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
Server running. Browse to http://localhost:8080/bookmarks
2008-05-14 20:43:33.07::INFO:  Started SelectChannelConnector@...:8080



---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: starting a new grails eclipse project

by burtbeckwith :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you're using annotated classes you need to change the Hibernate
configuration class to GrailsAnnotationConfiguration - see this page:
http://grails.org/Hibernate+Integration

Burt

On Wednesday 14 May 2008 11:48:56 pm Ray Tayek wrote:

> hi, tried to start a new grails eclipse project by doing the following:
>
> 0. see
> http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
> install the plugin etc.
> 1. grails create-app and import into eclipse (copying the files)
> 2. disable check package matches under groovy properties in eclipse
> (for config.groovy)
> 3. add bin-groovy to compiler output location under groovy properties
> in eclipse (even though it's in the preferences)
> 4. delete all the .class file in the root of the project folder
> 5. add tools.jar as an external lib to the project to fix: Error
> starting Sun's native2asci
>
> trying to run gets the following (full output is below):
>
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'transactionManager': Cannot resolve
> reference to bean 'sessionFactory' while setting bean property
> 'sessionFactory'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory': Invocation of init method
> failed; nested exception is org.hibernate.MappingException: An
> AnnotationConfiguration instance is required to use <mapping
> package="org.grails.bookmarks"/>
> 2008-05-14 20:43:33.991::WARN:  Nested in
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'transactionManager': Cannot resolve
> reference to bean 'sessionFactory' while setting bean property
> 'sessionFactory'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory': Invocation of init method
> failed; nested exception is org.hibernate.MappingException: An
> AnnotationConfiguration instance is required to use <mapping
> package="org.grails.bookmarks"/>:
> org.hibernate.MappingException: An AnnotationConfiguration instance
> is required to use <mapping package="org.grails.bookmarks"/>
>
> thanks
>
> Welcome to Grails 1.0.2 - http://grails.org/
> Licensed under Apache Standard License 2.0
> Grails home is set to: i:\grails
>
> Base Directory: I:\ray\workspace\bookmarks
> Note: No plugin scripts found
> Running script i:\grails\scripts\RunApp.groovy
> Environment set to development
>    [groovyc] Compiling 1 source file to C:\Documents and
> Settings\ray\.grails\1.0.2\projects\bookmarks\classes
> 2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog 2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
> 2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if
> your webapp requires one, please configure one.
> 2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
> property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
> 2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
> [file:C:\Documents and
> Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties]
> 2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
> WebApplicationContext
> 2008-05-14 20:43:33.976::WARN:  Failed startup of context
> org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspace\
>bookmarks/web-app} Running Grails application..
> [0] spring.GrailsWebApplicationContext Refreshing
> org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a864
>88: display name
> [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86
>488]; startup date [Wed May 14 20:43:32 PDT 2008]; parent:
> org.springframework.web.context.support.XmlWebApplicationContext@15a142f
> [0] spring.GrailsWebApplicationContext Bean factory for application
> context
> [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86
>488]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@12a225
>9 org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'transactionManager': Cannot resolve
> reference to bean 'sessionFactory' while setting bean property
> 'sessionFactory'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory': Invocation of init method
> failed; nested exception is org.hibernate.MappingException: An
> AnnotationConfiguration instance is required to use <mapping
> package="org.grails.bookmarks"/>
> at java.security.AccessController.doPrivileged(Native Method)
> at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
> at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
> at Init_groovy$_run_closure6.doCall(Init_groovy:128)
> at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
> at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
> at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
> at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
> at gant.Gant.dispatch(Gant.groovy:271)
> at gant.Gant.this$2$dispatch(Gant.groovy)
> at gant.Gant.invokeMethod(Gant.groovy)
> at gant.Gant.processTargets(Gant.groovy:436)
> at gant.Gant.processArgs(Gant.groovy:372)
> at
> org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory': Invocation of init method failed;
> nested exception is org.hibernate.MappingException: An
> AnnotationConfiguration instance is required to use <mapping
> package="org.grails.bookmarks"/>
> at java.security.AccessController.doPrivileged(Native Method)
> ... 14 more
> Caused by: org.hibernate.MappingException: An AnnotationConfiguration
> instance is required to use <mapping package="org.grails.bookmarks"/>
> ... 15 more
> 2008-05-14 20:43:33.991::WARN:  Nested in
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'transactionManager': Cannot resolve
> reference to bean 'sessionFactory' while setting bean property
> 'sessionFactory'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory': Invocation of init method
> failed; nested exception is org.hibernate.MappingException: An
> AnnotationConfiguration instance is required to use <mapping
> package="org.grails.bookmarks"/>:
> org.hibernate.MappingException: An AnnotationConfiguration instance
> is required to use <mapping package="org.grails.bookmarks"/>
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.AccessController.doPrivileged(Native Method)
> at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
> at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
> at Init_groovy$_run_closure6.doCall(Init_groovy:128)
> at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
> at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
> at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
> at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
> at gant.Gant.dispatch(Gant.groovy:271)
> at gant.Gant.this$2$dispatch(Gant.groovy)
> at gant.Gant.invokeMethod(Gant.groovy)
> at gant.Gant.processTargets(Gant.groovy:436)
> at gant.Gant.processArgs(Gant.groovy:372)
> at
> org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
> Server running. Browse to http://localhost:8080/bookmarks
> 2008-05-14 20:43:33.07::INFO:  Started SelectChannelConnector@...:8080
>
>
>
> ---
> vice-chair http://ocjug.org/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: starting a new grails eclipse project

by rtayek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At 08:53 PM 5/14/2008, you wrote:
>If you're using annotated classes you need to change the Hibernate
>configuration class to GrailsAnnotationConfiguration - see this page:
>http://grails.org/Hibernate+Integration

afaik, i am not using any annotations. there's only one domain object
with one string field.

also, this has nothing to do with eclipse. i get the same behaviour
when i run from the command line.

thanks




>On Wednesday 14 May 2008 11:48:56 pm Ray Tayek wrote:
> > hi, tried to start a new grails eclipse project by doing the following:
> >
> > 0. see
> > http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
> > install the plugin etc.
> > 1. grails create-app and import into eclipse (copying the files)
> > 2. disable check package matches under groovy properties in eclipse
> > (for config.groovy)
> > 3. add bin-groovy to compiler output location under groovy properties
> > in eclipse (even though it's in the preferences)
> > 4. delete all the .class file in the root of the project folder
> > 5. add tools.jar as an external lib to the project to fix: Error
> > starting Sun's native2asci
> >
> > trying to run gets the following (full output is below):
> >
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'transactionManager': Cannot resolve
> > reference to bean 'sessionFactory' while setting bean property
> > 'sessionFactory'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sessionFactory': Invocation of init method
> > failed; nested exception is org.hibernate.MappingException: An
> > AnnotationConfiguration instance is required to use <mapping
> > package="org.grails.bookmarks"/>
> > 2008-05-14 20:43:33.991::WARN:  Nested in
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'transactionManager': Cannot resolve
> > reference to bean 'sessionFactory' while setting bean property
> > 'sessionFactory'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sessionFactory': Invocation of init method
> > failed; nested exception is org.hibernate.MappingException: An
> > AnnotationConfiguration instance is required to use <mapping
> > package="org.grails.bookmarks"/>:
> > org.hibernate.MappingException: An AnnotationConfiguration instance
> > is required to use <mapping package="org.grails.bookmarks"/>
> >
> > thanks
> >
> > Welcome to Grails 1.0.2 - http://grails.org/
> > Licensed under Apache Standard License 2.0
> > Grails home is set to: i:\grails
> >
> > Base Directory: I:\ray\workspace\bookmarks
> > Note: No plugin scripts found
> > Running script i:\grails\scripts\RunApp.groovy
> > Environment set to development
> >    [groovyc] Compiling 1 source file to C:\Documents and
> > Settings\ray\.grails\1.0.2\projects\bookmarks\classes
> > 2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
> > org.mortbay.log.StdErrLog 2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
> > 2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if
> > your webapp requires one, please configure one.
> > 2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
> > property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
> > 2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
> > [file:C:\Documents and
> > Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties]
> > 2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
> > WebApplicationContext
> > 2008-05-14 20:43:33.976::WARN:  Failed startup of context
> > org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspace\
> >bookmarks/web-app} Running Grails application..
> > [0] spring.GrailsWebApplicationContext Refreshing
> > org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a864
> >88: display name
> > [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86
> >488]; startup date [Wed May 14 20:43:32 PDT 2008]; parent:
> > org.springframework.web.context.support.XmlWebApplicationContext@15a142f
> > [0] spring.GrailsWebApplicationContext Bean factory for application
> > context
> > [org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a86
> >488]:
> > org.springframework.beans.factory.support.DefaultListableBeanFactory@12a225
> >9 org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'transactionManager': Cannot resolve
> > reference to bean 'sessionFactory' while setting bean property
> > 'sessionFactory'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sessionFactory': Invocation of init method
> > failed; nested exception is org.hibernate.MappingException: An
> > AnnotationConfiguration instance is required to use <mapping
> > package="org.grails.bookmarks"/>
> > at java.security.AccessController.doPrivileged(Native Method)
> > at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
> > at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
> > at Init_groovy$_run_closure6.doCall(Init_groovy:128)
> > at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
> > at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
> > at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
> > at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
> > at gant.Gant.dispatch(Gant.groovy:271)
> > at gant.Gant.this$2$dispatch(Gant.groovy)
> > at gant.Gant.invokeMethod(Gant.groovy)
> > at gant.Gant.processTargets(Gant.groovy:436)
> > at gant.Gant.processArgs(Gant.groovy:372)
> > at
> > org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
> > Caused by: org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sessionFactory': Invocation of init method failed;
> > nested exception is org.hibernate.MappingException: An
> > AnnotationConfiguration instance is required to use <mapping
> > package="org.grails.bookmarks"/>
> > at java.security.AccessController.doPrivileged(Native Method)
> > ... 14 more
> > Caused by: org.hibernate.MappingException: An AnnotationConfiguration
> > instance is required to use <mapping package="org.grails.bookmarks"/>
> > ... 15 more
> > 2008-05-14 20:43:33.991::WARN:  Nested in
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'transactionManager': Cannot resolve
> > reference to bean 'sessionFactory' while setting bean property
> > 'sessionFactory'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sessionFactory': Invocation of init method
> > failed; nested exception is org.hibernate.MappingException: An
> > AnnotationConfiguration instance is required to use <mapping
> > package="org.grails.bookmarks"/>:
> > org.hibernate.MappingException: An AnnotationConfiguration instance
> > is required to use <mapping package="org.grails.bookmarks"/>
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
> > at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
> > at Init_groovy$_run_closure6.doCall(Init_groovy:128)
> > at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
> > at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
> > at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
> > at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
> > at gant.Gant.dispatch(Gant.groovy:271)
> > at gant.Gant.this$2$dispatch(Gant.groovy)
> > at gant.Gant.invokeMethod(Gant.groovy)
> > at gant.Gant.processTargets(Gant.groovy:436)
> > at gant.Gant.processArgs(Gant.groovy:372)
> > at
> > org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)
> > Server running. Browse to http://localhost:8080/bookmarks
> > 2008-05-14 20:43:33.07::INFO:  Started SelectChannelConnector@...:8080
> >
> >
> >
> > ---
> > vice-chair http://ocjug.org/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
>
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email

---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: starting a new grails eclipse project

by abraham.menacherry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I too faced the same issue. The way I got it to work was by calling
grails run-app from command line for the project, kill it and then try
again from eclipse.

Also have you enabled "Disable Groovy Compiler Generating Class files"
in the groovy project properties?

And yes, I don't know why it worked...:D

Regards,
Abraham.

-----Original Message-----
From: Ray Tayek [mailto:rtayek@...]
Sent: Thursday, May 15, 2008 9:19 AM
To: user@...
Subject: [grails-user] starting a new grails eclipse project

hi, tried to start a new grails eclipse project by doing the following:

0. see
http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
install the plugin etc.
1. grails create-app and import into eclipse (copying the files) 2.
disable check package matches under groovy properties in eclipse (for
config.groovy) 3. add bin-groovy to compiler output location under
groovy properties in eclipse (even though it's in the preferences) 4.
delete all the .class file in the root of the project folder 5. add
tools.jar as an external lib to the project to fix: Error starting Sun's
native2asci

trying to run gets the following (full output is below):

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance is
required to use <mapping package="org.grails.bookmarks"/>

thanks

Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache
Standard License 2.0 Grails home is set to: i:\grails

Base Directory: I:\ray\workspace\bookmarks
Note: No plugin scripts found
Running script i:\grails\scripts\RunApp.groovy Environment set to
development
   [groovyc] Compiling 1 source file to C:\Documents and
Settings\ray\.grails\1.0.2\projects\bookmarks\classes
2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
[file:C:\Documents and
Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties
]
2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
WebApplicationContext
2008-05-14 20:43:33.976::WARN:  Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspa
ce\bookmarks/web-app}
Running Grails application..
[0] spring.GrailsWebApplicationContext Refreshing
org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a
86488:
display name
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
a86488];
startup date [Wed May 14 20:43:32 PDT 2008]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@15a142f
[0] spring.GrailsWebApplicationContext Bean factory for application
context
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
a86488]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@12a
2259
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) at
RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
1)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory': Invocation of init
method failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) ... 14 more
Caused by: org.hibernate.MappingException: An AnnotationConfiguration
instance is required to use <mapping package="org.grails.bookmarks"/>
... 15 more
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance is
required to use <mapping package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) at
java.security.AccessController.doPrivileged(Native Method) at
RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
1)
Server running. Browse to http://localhost:8080/bookmarks
2008-05-14 20:43:33.07::INFO:  Started
SelectChannelConnector@...:8080



---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: starting a new grails eclipse project

by abraham.menacherry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, my bad. I did not see your second response saying command line
did not work.

-----Original Message-----
From: abraham.menacherry@... [mailto:abraham.menacherry@...]

Sent: Thursday, May 15, 2008 11:27 AM
To: user@...
Subject: RE: [grails-user] starting a new grails eclipse project

I too faced the same issue. The way I got it to work was by calling
grails run-app from command line for the project, kill it and then try
again from eclipse.

Also have you enabled "Disable Groovy Compiler Generating Class files"
in the groovy project properties?

And yes, I don't know why it worked...:D

Regards,
Abraham.

-----Original Message-----
From: Ray Tayek [mailto:rtayek@...]
Sent: Thursday, May 15, 2008 9:19 AM
To: user@...
Subject: [grails-user] starting a new grails eclipse project

hi, tried to start a new grails eclipse project by doing the following:

0. see
http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
install the plugin etc.
1. grails create-app and import into eclipse (copying the files) 2.
disable check package matches under groovy properties in eclipse (for
config.groovy) 3. add bin-groovy to compiler output location under
groovy properties in eclipse (even though it's in the preferences) 4.
delete all the .class file in the root of the project folder 5. add
tools.jar as an external lib to the project to fix: Error starting Sun's
native2asci

trying to run gets the following (full output is below):

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance is
required to use <mapping package="org.grails.bookmarks"/>

thanks

Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache
Standard License 2.0 Grails home is set to: i:\grails

Base Directory: I:\ray\workspace\bookmarks
Note: No plugin scripts found
Running script i:\grails\scripts\RunApp.groovy Environment set to
development
   [groovyc] Compiling 1 source file to C:\Documents and
Settings\ray\.grails\1.0.2\projects\bookmarks\classes
2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
[file:C:\Documents and
Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties
]
2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
WebApplicationContext
2008-05-14 20:43:33.976::WARN:  Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspa
ce\bookmarks/web-app}
Running Grails application..
[0] spring.GrailsWebApplicationContext Refreshing
org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a
86488:
display name
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
a86488];
startup date [Wed May 14 20:43:32 PDT 2008]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@15a142f
[0] spring.GrailsWebApplicationContext Bean factory for application
context
[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
a86488]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@12a
2259
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) at
RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
1)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'sessionFactory': Invocation of init
method failed; nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) ... 14 more
Caused by: org.hibernate.MappingException: An AnnotationConfiguration
instance is required to use <mapping package="org.grails.bookmarks"/>
... 15 more
2008-05-14 20:43:33.991::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'transactionManager': Cannot resolve reference to bean
'sessionFactory' while setting bean property 'sessionFactory'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory': Invocation of init method failed;
nested exception is org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping
package="org.grails.bookmarks"/>:
org.hibernate.MappingException: An AnnotationConfiguration instance is
required to use <mapping package="org.grails.bookmarks"/> at
java.security.AccessController.doPrivileged(Native Method) at
java.security.AccessController.doPrivileged(Native Method) at
RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
at Init_groovy$_run_closure6.doCall(Init_groovy:128)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
at gant.Gant.dispatch(Gant.groovy:271)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:436)
at gant.Gant.processArgs(Gant.groovy:372)
at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
1)
Server running. Browse to http://localhost:8080/bookmarks
2008-05-14 20:43:33.07::INFO:  Started
SelectChannelConnector@...:8080



---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Parent Message unknown RE: starting a new grails eclipse project

by rtayek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At 11:05 PM 5/14/2008, you wrote:
>Sorry, my bad. I did not see your second response saying command line
>did not work.

i went to a virgin machine and put some java and grails on it. no
problem. so it must be my machine. maybe the path (was fooling around
with gridgain, gwt, scala, zero).

interesting that you had the same problem.

thanks

>-----Original Message-----
>From: abraham.menacherry@... [mailto:abraham.menacherry@...]
>
>Sent: Thursday, May 15, 2008 11:27 AM
>To: user@...
>Subject: RE: [grails-user] starting a new grails eclipse project
>
>I too faced the same issue. The way I got it to work was by calling
>grails run-app from command line for the project, kill it and then try
>again from eclipse.
>
>Also have you enabled "Disable Groovy Compiler Generating Class files"
>in the groovy project properties?
>
>And yes, I don't know why it worked...:D
>
>Regards,
>Abraham.
>
>-----Original Message-----
>From: Ray Tayek [mailto:rtayek@...]
>Sent: Thursday, May 15, 2008 9:19 AM
>To: user@...
>Subject: [grails-user] starting a new grails eclipse project
>
>hi, tried to start a new grails eclipse project by doing the following:
>
>0. see
>http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
>install the plugin etc.
>1. grails create-app and import into eclipse (copying the files) 2.
>disable check package matches under groovy properties in eclipse (for
>config.groovy) 3. add bin-groovy to compiler output location under
>groovy properties in eclipse (even though it's in the preferences) 4.
>delete all the .class file in the root of the project folder 5. add
>tools.jar as an external lib to the project to fix: Error starting Sun's
>native2asci
>
>trying to run gets the following (full output is below):
>
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'transactionManager': Cannot resolve reference to bean
>'sessionFactory' while setting bean property 'sessionFactory'; nested
>exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'sessionFactory': Invocation of init method failed;
>nested exception is org.hibernate.MappingException: An
>AnnotationConfiguration instance is required to use <mapping
>package="org.grails.bookmarks"/>
>2008-05-14 20:43:33.991::WARN:  Nested in
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'transactionManager': Cannot resolve reference to bean
>'sessionFactory' while setting bean property 'sessionFactory'; nested
>exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'sessionFactory': Invocation of init method failed;
>nested exception is org.hibernate.MappingException: An
>AnnotationConfiguration instance is required to use <mapping
>package="org.grails.bookmarks"/>:
>org.hibernate.MappingException: An AnnotationConfiguration instance is
>required to use <mapping package="org.grails.bookmarks"/>
>
>thanks
>
>Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache
>Standard License 2.0 Grails home is set to: i:\grails
>
>Base Directory: I:\ray\workspace\bookmarks
>Note: No plugin scripts found
>Running script i:\grails\scripts\RunApp.groovy Environment set to
>development
>    [groovyc] Compiling 1 source file to C:\Documents and
>Settings\ray\.grails\1.0.2\projects\bookmarks\classes
>2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
>org.mortbay.log.StdErrLog
>2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
>2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if your
>webapp requires one, please configure one.
>2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
>property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
>2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
>[file:C:\Documents and
>Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties]
>2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
>WebApplicationContext
>2008-05-14 20:43:33.976::WARN:  Failed startup of context
>org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspa
>ce\bookmarks/web-app}
>Running Grails application..
>[0] spring.GrailsWebApplicationContext Refreshing
>org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a
>86488:
>display name
>[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
>a86488];
>startup date [Wed May 14 20:43:32 PDT 2008]; parent:
>org.springframework.web.context.support.XmlWebApplicationContext@15a142f
>[0] spring.GrailsWebApplicationContext Bean factory for application
>context
>[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
>a86488]:
>org.springframework.beans.factory.support.DefaultListableBeanFactory@12a
>2259
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'transactionManager': Cannot resolve reference to bean
>'sessionFactory' while setting bean property 'sessionFactory'; nested
>exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'sessionFactory': Invocation of init method failed;
>nested exception is org.hibernate.MappingException: An
>AnnotationConfiguration instance is required to use <mapping
>package="org.grails.bookmarks"/> at
>java.security.AccessController.doPrivileged(Native Method) at
>RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
>at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
>at Init_groovy$_run_closure6.doCall(Init_groovy:128)
>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
>at gant.Gant.dispatch(Gant.groovy:271)
>at gant.Gant.this$2$dispatch(Gant.groovy)
>at gant.Gant.invokeMethod(Gant.groovy)
>at gant.Gant.processTargets(Gant.groovy:436)
>at gant.Gant.processArgs(Gant.groovy:372)
>at
>org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
>1)
>Caused by: org.springframework.beans.factory.BeanCreationException:
>Error creating bean with name 'sessionFactory': Invocation of init
>method failed; nested exception is org.hibernate.MappingException: An
>AnnotationConfiguration instance is required to use <mapping
>package="org.grails.bookmarks"/> at
>java.security.AccessController.doPrivileged(Native Method) ... 14 more
>Caused by: org.hibernate.MappingException: An AnnotationConfiguration
>instance is required to use <mapping package="org.grails.bookmarks"/>
>... 15 more
>2008-05-14 20:43:33.991::WARN:  Nested in
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'transactionManager': Cannot resolve reference to bean
>'sessionFactory' while setting bean property 'sessionFactory'; nested
>exception is
>org.springframework.beans.factory.BeanCreationException: Error creating
>bean with name 'sessionFactory': Invocation of init method failed;
>nested exception is org.hibernate.MappingException: An
>AnnotationConfiguration instance is required to use <mapping
>package="org.grails.bookmarks"/>:
>org.hibernate.MappingException: An AnnotationConfiguration instance is
>required to use <mapping package="org.grails.bookmarks"/> at
>java.security.AccessController.doPrivileged(Native Method) at
>java.security.AccessController.doPrivileged(Native Method) at
>RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
>at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
>at Init_groovy$_run_closure6.doCall(Init_groovy:128)
>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
>at gant.Gant.dispatch(Gant.groovy:271)
>at gant.Gant.this$2$dispatch(Gant.groovy)
>at gant.Gant.invokeMethod(Gant.groovy)
>at gant.Gant.processTargets(Gant.groovy:436)
>at gant.Gant.processArgs(Gant.groovy:372)
>at
>org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
>1)
>Server running. Browse to http://localhost:8080/bookmarks
>2008-05-14 20:43:33.07::INFO:  Started
>SelectChannelConnector@...:8080
>
>
>
>---
>vice-chair http://ocjug.org/
>
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>Please do not print this email unless it is absolutely necessary.
>
>The information contained in this electronic message and any attachments
>to this message are intended for the exclusive use of the addressee(s)
>and may contain proprietary, confidential or privileged information. If
>you are not the intended recipient, you should not disseminate,
>distribute or copy this e-mail. Please notify the sender immediately and
>destroy all copies of this message and any attachments.
>
>WARNING: Computer viruses can be transmitted via email. The recipient
>should check this email and any attachments for the presence of viruses.
>The company accepts no liability for any damage caused by any virus
>transmitted by this email.
>
>www.wipro.com
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>Please do not print this email unless it is absolutely necessary.
>The information contained in this electronic message and any
>attachments to this message are intended for the exclusive use of
>the addressee(s) and may contain proprietary, confidential or
>privileged information. If you are not the intended recipient, you
>should not disseminate, distribute or copy this e-mail. Please
>notify the sender immediately and destroy all copies of this message
>and any attachments. WARNING: Computer viruses can be transmitted
>via email. The recipient should check this email and any attachments
>for the presence of viruses. The company accepts no liability for
>any damage caused by any virus transmitted by this email. www.wipro.com
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email

---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Parent Message unknown RE: starting a new grails eclipse project (fixed)

by rtayek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At 09:10 AM 5/15/2008, you wrote:
>At 11:05 PM 5/14/2008, you wrote:
>>Sorry, my bad. I did not see your second response saying command line
>>did not work.
>
>i went to a virgin machine and put some java and grails on it. no
>problem. so it must be my machine. maybe the path (was fooling
>around with gridgain, gwt, scala, zero).
>
>interesting that you had the same problem.

i removed gridgain and gradle from my path and the problem went away.
perhaps gradle had some version incompatibility with the current grails.

thanks


>>-----Original Message-----
>>From: abraham.menacherry@... [mailto:abraham.menacherry@...]
>>
>>Sent: Thursday, May 15, 2008 11:27 AM
>>To: user@...
>>Subject: RE: [grails-user] starting a new grails eclipse project
>>
>>I too faced the same issue. The way I got it to work was by calling
>>grails run-app from command line for the project, kill it and then try
>>again from eclipse.
>>
>>Also have you enabled "Disable Groovy Compiler Generating Class files"
>>in the groovy project properties?
>>
>>And yes, I don't know why it worked...:D
>>
>>Regards,
>>Abraham.
>>
>>-----Original Message-----
>>From: Ray Tayek [mailto:rtayek@...]
>>Sent: Thursday, May 15, 2008 9:19 AM
>>To: user@...
>>Subject: [grails-user] starting a new grails eclipse project
>>
>>hi, tried to start a new grails eclipse project by doing the following:
>>
>>0. see
>>http://docs.codehaus.org/display/GRAILS/Eclipse+IDE+Integration and
>>install the plugin etc.
>>1. grails create-app and import into eclipse (copying the files) 2.
>>disable check package matches under groovy properties in eclipse (for
>>config.groovy) 3. add bin-groovy to compiler output location under
>>groovy properties in eclipse (even though it's in the preferences) 4.
>>delete all the .class file in the root of the project folder 5. add
>>tools.jar as an external lib to the project to fix: Error starting Sun's
>>native2asci
>>
>>trying to run gets the following (full output is below):
>>
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'transactionManager': Cannot resolve reference to bean
>>'sessionFactory' while setting bean property 'sessionFactory'; nested
>>exception is
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'sessionFactory': Invocation of init method failed;
>>nested exception is org.hibernate.MappingException: An
>>AnnotationConfiguration instance is required to use <mapping
>>package="org.grails.bookmarks"/>
>>2008-05-14 20:43:33.991::WARN:  Nested in
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'transactionManager': Cannot resolve reference to bean
>>'sessionFactory' while setting bean property 'sessionFactory'; nested
>>exception is
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'sessionFactory': Invocation of init method failed;
>>nested exception is org.hibernate.MappingException: An
>>AnnotationConfiguration instance is required to use <mapping
>>package="org.grails.bookmarks"/>:
>>org.hibernate.MappingException: An AnnotationConfiguration instance is
>>required to use <mapping package="org.grails.bookmarks"/>
>>
>>thanks
>>
>>Welcome to Grails 1.0.2 - http://grails.org/ Licensed under Apache
>>Standard License 2.0 Grails home is set to: i:\grails
>>
>>Base Directory: I:\ray\workspace\bookmarks
>>Note: No plugin scripts found
>>Running script i:\grails\scripts\RunApp.groovy Environment set to
>>development
>>    [groovyc] Compiling 1 source file to C:\Documents and
>>Settings\ray\.grails\1.0.2\projects\bookmarks\classes
>>2008-05-14 20:43:28.697::INFO:  Logging to STDERR via
>>org.mortbay.log.StdErrLog
>>2008-05-14 20:43:29.837::INFO:  jetty-6.1.4
>>2008-05-14 20:43:29.040::INFO:  No Transaction manager found - if your
>>webapp requires one, please configure one.
>>2008-05-14 20:43:29.400:/bookmarks:INFO:  Set web app root system
>>property: 'bookmarks' = [I:\ray\workspace\bookmarks\web-app\]
>>2008-05-14 20:43:29.400:/bookmarks:INFO:  Initializing Log4J from
>>[file:C:\Documents and
>> >Settings\ray/.grails/1.0.2/projects/bookmarks/resources/log4j.properties]
>>2008-05-14 20:43:29.415:/bookmarks:INFO:  Initializing Spring root
>>WebApplicationContext
>>2008-05-14 20:43:33.976::WARN:  Failed startup of context
>>org.mortbay.jetty.webapp.WebAppContext@172e08e{/bookmarks,I:\ray\workspa
>>ce\bookmarks/web-app}
>>Running Grails application..
>>[0] spring.GrailsWebApplicationContext Refreshing
>>org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1a
>>86488:
>>display name
>>[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
>>a86488];
>>startup date [Wed May 14 20:43:32 PDT 2008]; parent:
>>org.springframework.web.context.support.XmlWebApplicationContext@15a142f
>>[0] spring.GrailsWebApplicationContext Bean factory for application
>>context
>>[org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@1
>>a86488]:
>>org.springframework.beans.factory.support.DefaultListableBeanFactory@12a
>>2259
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'transactionManager': Cannot resolve reference to bean
>>'sessionFactory' while setting bean property 'sessionFactory'; nested
>>exception is
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'sessionFactory': Invocation of init method failed;
>>nested exception is org.hibernate.MappingException: An
>>AnnotationConfiguration instance is required to use <mapping
>>package="org.grails.bookmarks"/> at
>>java.security.AccessController.doPrivileged(Native Method) at
>>RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
>>at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
>>at Init_groovy$_run_closure6.doCall(Init_groovy:128)
>>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
>>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
>>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
>>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
>>at gant.Gant.dispatch(Gant.groovy:271)
>>at gant.Gant.this$2$dispatch(Gant.groovy)
>>at gant.Gant.invokeMethod(Gant.groovy)
>>at gant.Gant.processTargets(Gant.groovy:436)
>>at gant.Gant.processArgs(Gant.groovy:372)
>>at
>>org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
>>1)
>>Caused by: org.springframework.beans.factory.BeanCreationException:
>>Error creating bean with name 'sessionFactory': Invocation of init
>>method failed; nested exception is org.hibernate.MappingException: An
>>AnnotationConfiguration instance is required to use <mapping
>>package="org.grails.bookmarks"/> at
>>java.security.AccessController.doPrivileged(Native Method) ... 14 more
>>Caused by: org.hibernate.MappingException: An AnnotationConfiguration
>>instance is required to use <mapping package="org.grails.bookmarks"/>
>>... 15 more
>>2008-05-14 20:43:33.991::WARN:  Nested in
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'transactionManager': Cannot resolve reference to bean
>>'sessionFactory' while setting bean property 'sessionFactory'; nested
>>exception is
>>org.springframework.beans.factory.BeanCreationException: Error creating
>>bean with name 'sessionFactory': Invocation of init method failed;
>>nested exception is org.hibernate.MappingException: An
>>AnnotationConfiguration instance is required to use <mapping
>>package="org.grails.bookmarks"/>:
>>org.hibernate.MappingException: An AnnotationConfiguration instance is
>>required to use <mapping package="org.grails.bookmarks"/> at
>>java.security.AccessController.doPrivileged(Native Method) at
>>java.security.AccessController.doPrivileged(Native Method) at
>>RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy:68)
>>at RunApp_groovy$_run_closure2_closure7.doCall(RunApp_groovy)
>>at Init_groovy$_run_closure6.doCall(Init_groovy:128)
>>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy:67)
>>at RunApp_groovy$_run_closure2.doCall(RunApp_groovy)
>>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy:59)
>>at RunApp_groovy$_run_closure1.doCall(RunApp_groovy)
>>at gant.Gant.dispatch(Gant.groovy:271)
>>at gant.Gant.this$2$dispatch(Gant.groovy)
>>at gant.Gant.invokeMethod(Gant.groovy)
>>at gant.Gant.processTargets(Gant.groovy:436)
>>at gant.Gant.processArgs(Gant.groovy:372)
>>at
>>org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:10
>>1)
>>Server running. Browse to http://localhost:8080/bookmarks
>>2008-05-14 20:43:33.07::INFO:  Started
>>SelectChannelConnector@...:8080
>>
>>
>>
>>---
>>vice-chair http://ocjug.org/
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>>Please do not print this email unless it is absolutely necessary.
>>
>>The information contained in this electronic message and any attachments
>>to this message are intended for the exclusive use of the addressee(s)
>>and may contain proprietary, confidential or privileged information. If
>>you are not the intended recipient, you should not disseminate,
>>distribute or copy this e-mail. Please notify the sender immediately and
>>destroy all copies of this message and any attachments.
>>
>>WARNING: Computer viruses can be transmitted via email. The recipient
>>should check this email and any attachments for the presence of viruses.
>>The company accepts no liability for any damage caused by any virus
>>transmitted by this email.
>>
>>www.wipro.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>>Please do not print this email unless it is absolutely necessary.
>>The information contained in this electronic message and any
>>attachments to this message are intended for the exclusive use of
>>the addressee(s) and may contain proprietary, confidential or
>>privileged information. If you are not the intended recipient, you
>>should not disseminate, distribute or copy this e-mail. Please
>>notify the sender immediately and destroy all copies of this
>>message and any attachments. WARNING: Computer viruses can be
>>transmitted via email. The recipient should check this email and
>>any attachments for the presence of viruses. The company accepts no
>>liability for any damage caused by any virus transmitted by this
>>email. www.wipro.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>
>---
>vice-chair http://ocjug.org/
>
>
>
>---------------------------------------------------------------------
>To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>

---
vice-chair http://ocjug.org/



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: starting a new grails eclipse project (fixed)

by Daniel Honig :: Rate this Message: