Jump to content
Changes to the Jaspersoft community edition download ×

jasperserver with AD


aks310

Recommended Posts

Hi

I have installed jasper server and now trying to authenticate users with my AD. I am getting this error, can anybody help me out please.

 

Thanks in advance

 

AMIT

 

 

HTTP Status 500 -

 

--------------------------------------------------------------------------------

 

type Exception report

 

message

 

description The server encountered an internal error () that prevented it from fulfilling this request.

 

exception

 

javax.servlet.ServletException: Servlet.init() for servlet jasperserver threw exception

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

java.lang.Thread.run(Thread.java:595)

 

 

root cause

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsCommContr' defined in ServletContext resource [/WEB-INF/jasperserver-servlet.xml]: Cannot resolve reference to bean 'userLocalesList' while setting bean property 'locales'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userLocalesList' is defined

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:253)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:124)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1019)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:809)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)

org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)

org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:233)

org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandlers(SimpleUrlHandlerMapping.java:125)

org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.initApplicationContext(SimpleUrlHandlerMapping.java:103)

org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)

org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:86)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:302)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1081)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)

org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)

org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)

org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)

org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)

org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)

org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)

org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)

javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

java.lang.Thread.run(Thread.java:595)

 

 

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.

 

 

--------------------------------------------------------------------------------

 

Apache Tomcat/5.5.20:huh:

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

There is a problem with your bean configuration.

 

The userLocalesList is a bean in applicationContext-security.xml which is referred to by a bean in jasperserver-servlet.xml.

 

JasperServer loads bean definitions with names like applictionContext*.xml in WEB-INF. Did you change the applicationContext-security.xml to another name?

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

Without having your AD setup in front of me, I am not going to be able to give you a definitive answer. Here are some things to try.

 

1. Turn on debug logging for the LDAP authentication. org.acegisecurity.providers.ldap is the package.

 

2. Check out the Acegi security documentation at http://acegisecurity.org

 

3. There are a number of AD related posts on the Acegi forum at http://forum.springframework.org/forumdisplay.php?f=33

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

Hi Sherman,

 

Thanks for that , my AD setup is :

AD server is win2003 . IP 10.10.10.10

DC=internal,DC=ros,DC=nsw

there are several ous . but my main users like AD Test (which I am using here to establish connection) is under ou=sft, ou=ros and allmost all users are there .

so it is

10.10.10.10

---- DC=internal,DC=ros,DC=nsw

-------ou=sft

---------ou=ros

----------cn=AD TEST

 

And futher adding to this I have an novell edirectory setup as well which is synced with this AD . we can use either of these services . In case of edirectory

ip is 10.10.10.11 and just o=ros and ou=sft ,ou=ros there is no Dc etc.

Hope you understand the structure.

Kindly help me.

 

 

Regards

Amit

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...