#1 2012-12-23 09:44:14

Pierre Bev
Member
Registered: 2012-12-23

ConfigFileNotFoundException

Hi all,

Fisrt of all, thanks a lot for this nice application !

I just have one issue : every time a user log in (or in some other times), I have this error. Could you please help me? thanks !

com.google.inject.ProvisionException: Guice provision errors:

1) Error in custom provider, net.datenwerke.rs.utils.config.ConfigFileNotFoundException: Could not find config for datasources/datasources.cf
  at net.datenwerke.rs.core.service.datasourcemanager.DatasourceModule.provideConfig(DatasourceModule.java:56)
  while locating org.apache.commons.configuration.Configuration annotated with @net.datenwerke.rs.core.service.datasourcemanager.annotations.DatasourceModuleProperties()
  at net.datenwerke.rs.core.service.datasourcemanager.DatasourceModule.provideDefaultDatasourceId(DatasourceModule.java:61)
  while locating java.lang.String annotated with @net.datenwerke.rs.core.service.datasourcemanager.annotations.DefaultDatasource()

1 error
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
    at net.datenwerke.rs.core.service.datasourcemanager.DatasourceServiceImpl.getDefaultDatasourceId(DatasourceServiceImpl.java:72)
    at net.datenwerke.rs.core.service.datasourcemanager.DatasourceServiceImpl.getDefaultDatasource(DatasourceServiceImpl.java:78)
    at net.datenwerke.rs.core.server.datasources.DatasourceManagerTreeHandlerRpcServiceImpl.getDefaultDatasource(DatasourceManagerTreeHandlerRpcServiceImpl.java:56)
    at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66)
    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:106)
    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:106)
    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:35)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:106)
    at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:35)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89)
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: net.datenwerke.rs.utils.config.ConfigFileNotFoundException: Could not find config for datasources/datasources.cf
    at net.datenwerke.rs.configservice.service.configservice.ConfigServiceImpl.getConfig(ConfigServiceImpl.java:40)
    at net.datenwerke.rs.core.service.datasourcemanager.DatasourceModule.provideConfig(DatasourceModule.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
    at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
    at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:98)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
    ... 45 more

Offline

#2 2012-12-23 11:15:17

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: ConfigFileNotFoundException

Hi Pierre,

the warning messages that you see result from a missing configuration file. ReportServer is trying to load the "default datasource"
that for administrators allows to easily select a particular datasource when creating reports/parameters (which can be selected
when configuring a datasource by clicking on the "down arrow" icon next to the datasource field). The configuration file that
is missing is datasources.cf located in ReportServer's internal fileserver at

etc/datasources/datasources.cf

The file should look like

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <datasource>
      <defaultDatasourceName>Demodaten</defaultDatasourceName>
   </datasource>
</configuration>

where "defaultDatasourceName" should point to a datasource (referenced via its name). A good
start to get an overview on the various coniguration files is to install the demo data and have
a look at the "etc" directory.

I hope this helps. If you have any further questions, please don't hesitate to ask.

Kind regards
Arno

Offline

#3 2012-12-23 11:59:58

Pierre Bev
Member
Registered: 2012-12-23

Re: ConfigFileNotFoundException

Thank you for your quick answer !
I'll have a look on this.

Alos, do you know where we can find a documentation of all configuration file please?

Offline

#4 2012-12-23 13:01:07

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: ConfigFileNotFoundException

We are currently working hard on the final release of ReportServer 2.0. We have just released a first beta
on SourceForge and plan to have the final release out at the end of January. With it we'll release an english
translation of the user guide. The next big project is the administrator's manual which we plan to finish
around march/april. This will naturally contain documentation of all the configuration files. Until then, the
easiest is to have a look at the configuration files provided with the demo data and to simply ask whenever
something is not clear. We'll do our best to answer any question as quickly as possible.

Kind Regards
Arno

Offline

Board footer

Powered by FluxBB