Jump to content
We've recently updated our Privacy Statement, available here ×

jasperserver-pro fail to startup after Webservice Datasource Installation


john.adamopoulos
Go to solution Solved by john.adamopoulos,

Recommended Posts

Hello All,

I have installed Jasper Server Pro version 0617-JSP64-10 from CA Business Intelligence installer.

The Server was functional until I followed the instructions of this article https://community.jaspersoft.com/wiki/installing-webservice-datasource in order to install Webservice Datasource.

Install in TIBCO JasperReports Server

  1. Localize your JasperReports Server web application folder. We'll reference it as [JRS_DIR] from now on
  2. Open the folder [WS_DS_DIR]JRSWEB-INF
  3. Copy all the folder's content
  4. Stop your web server running JasperReports Server
  5. Open the folder [JRS_DIR]WEB-INF
  6. Backup this folder before executing next step!  (this is not mandatory, but recommended)
  7. paste the previously copied files. Please note that it is not supposed to override any existing file.
  8. (This step is required only for Community Edition):
    • open the file [JRS_DIR]WEB-INFapplicationContext-WebServiceDataSource.xml
    • Go to line 49 of the xml file, inside the bean addQueryLanguage change the property beanName from queryLanguagesProto queryLanguagesCe
  9. Start your web server running JRS

When attempted to startup Tomcat Server again, I get the error below in the log localhost_access_log.2018-09-13 in the Apache server

Can someone help me resolve this issue?

Thank you.

13-Sep-2018 15:30:42.059 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath13-Sep-2018 15:30:42.115 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Set web app root system property: 'jasperserver-pro.root' = [C:Program FilesCASCCA Business Intelligenceapache-tomcatwebappsjasperserver-pro]13-Sep-2018 15:30:42.123 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing log4j from [C:Program FilesCASCCA Business Intelligenceapache-tomcatwebappsjasperserver-proWEB-INFlog4j.properties]13-Sep-2018 15:30:42.142 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext13-Sep-2018 15:31:25.308 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'webServiceDataSource'   defined in ServletContext resource [/WEB-INF/applicationContext-WebServiceDataSource.xml]: Instantiation of bean failed; nested exception is   org.springframework.beans.BeanInstantiationException:Could not instantiate bean class   [com.jaspersoft.jrs.data.webservice.WebServiceDataSourceDefinition]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError:   net/sf/jasperreports/data/DataAdapterContributorFactory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1039) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:985) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5221) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1071) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1721) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.jaspersoft.jrs.data.webservice.WebServiceDataSourceDefinition]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/jasperreports/data/DataAdapterContributorFactory at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1032) ... 26 moreCaused by: java.lang.NoClassDefFoundError: net/sf/jasperreports/data/DataAdapterContributorFactory at com.jaspersoft.webservice.data.WebServiceDataAdapterServiceExtensionRegistryFactory.clinit    (WebServiceDataAdapterServiceExtensionRegistryFactory.java:25) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:156) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:114) at net.sf.jasperreports.engine.util.ClassUtils.instantiateClass(ClassUtils.java:55) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:245) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:222) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:164) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:134) at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:106) at net.sf.jasperreports.engine.DefaultJasperReportsContext.getExtensions(DefaultJasperReportsContext.java:268) at com.jaspersoft.webservice.data.enumerations.AuthType.values(AuthType.java:132) at com.jaspersoft.jrs.data.webservice.WebServiceDataSourceDefinition.<init>(WebServiceDataSourceDefinition.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ... 28 moreCaused by: java.lang.ClassNotFoundException: net.sf.jasperreports.data.DataAdapterContributorFactory at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1293) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1145) ... 47 more[/code]
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Hello,



 



I found out that the version that I mentioned 0617-JSP64-10 it was the version of the Guide (HelpàAbout) and not Jasper Server’s Version.



 



I located the version of the Server under installation folder (…apache-tomcatwebappsjasperserver-proversion.txt), and it is 6.3



 



I downloaded the appropriate Version of the Web Service plugin and now it is working.



 



Thank you for your time.


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...