Page 1 of 1

HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Wed Sep 26, 2012 1:53 pm
by surajmundada
Hi,

I have DemoSite 2.0.0-RC1-1.

After lot of Maven issues, I am successful at building and deploying the demo site. But when I hit http://localhost:8080,

I get this exception:

Code: Select all

[artifact:mvn] [INFO] Started Jetty Server
[artifact:mvn] 2012-09-27 00:01:00.251:WARN:oejs.ServletHandler:/
[artifact:mvn] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'blCategoryController' is defined
[artifact:mvn]    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
[artifact:mvn]    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
[artifact:mvn]    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
[artifact:mvn]    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)


Have I missed anything in configuration?

Regards,
Suraj

Re: HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Thu Sep 27, 2012 3:41 am
by surajmundada
Any thoughts on this issue?

Re: HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Thu Sep 27, 2012 7:40 am
by Valdus
I have to ask have you ran maven install before attempting to run the jetty server?

Re: HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Mon Oct 01, 2012 7:59 am
by surajmundada
yes ... i ran Maven Install and it built with success.

When I run Jetty Demo ant task, server throws following errors before starting up

[artifact:mvn] [ WARN] 18:18:49 AnnotationAttributesReadingVisitor - Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
[artifact:mvn] java.lang.ClassNotFoundException: Controller
[artifact:mvn] at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
[artifact:mvn] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)


[artifact:mvn] [ WARN] 18:18:49 AnnotationAttributesReadingVisitor - Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
[artifact:mvn] java.lang.ClassNotFoundException: ResponseBody
[artifact:mvn] at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
[artifact:mvn] at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)

Re: HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Mon Oct 01, 2012 9:17 am
by Valdus
One more question, I really should have asked this with the first part. Are you trying to run the administration section. Because if so the errors are due to the fact that the front end of the website must be started with jetty in order for it to proper functionally. Secondly is it possible for me to get the entire log file?

Re: HTTP ERROR 500 : No bean named 'blCategoryController' is def

Posted: Mon Oct 01, 2012 10:30 am
by surajmundada
Hi Valdus,

Thanks for your replies. I am trying to just install and run the demo site.

However, my issue is resolved.

My earlier configuration was Eclipse Indigo + Maven 3.0.1. I might have setup the workspace wrongly because I was not able to see the project structure as given in documentation.

Now, i re-installed everything with JBoss Dev Studio 5 + Maven 3.0.4 and re-setup workspace. With this, I was able to see the projects in package explorer as per the Getting Started documentation and it worked exactly as per the documentation. I can see the HeatClinic home page at localhost:8080.

I guess that incorrect workspace setup and older maven might have been the issue initially.

Still there is a minor issue. I am getting following exception in workset > My Broadleaf site > admin and workset > My Broadleaf site > site.

javax.servlet.jsp.JspException cannot be resolved to a type changePassword.jsp /admin/src/main/webapp/blcadmin line 11 JSP Problem

Am I missing any library here?

Thanks again for your replies.

Cheers,
Suraj