useher
-
Posts
6 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by useher
-
-
In META-INF/context.xml you have to replace
factory="com.jaspersoft.jasperserver.tomcat.jndi.JSBasicDataSourceFactory"[/code]
in the resource definition with
factory="org.apache.commons.dbcp.BasicDataSourceFactory"[/code]
I placed the above mentioned tomcat-dbcp-7.0.30.jar in /usr/share/java, but i do not know if this was neccessary.
Thank you for your help
-
Thank you for your answers. The popup had its clue in a typo. After correcting, it doesnt appear again. No error is logged during installation. For the second i have no clues at the moment.
-
Hi!
I like to run JasperServer 5.6 under an existing tomcat. When i start the installer, the error message below is shown after ~50 sec.).
After the installation the application is shown in the manger-console, but if i try to start the application the messages below are shown. The database is created correct (i think so...). Trying to google the error message the WEB-INF/web.xml file is mentioned, but i dont know where to search inside. Other applications which use the same database (geoserver) ant the same tomcat work correct. So please, can some tell me how to solve this problem.
Thank you in advance
Uwe Seher
Tomcat manager console:
FAIL - Application at context path /jasperserver could not be startedFAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [standardEngine[Catalina].StandardHost[localhost].StandardContext[/jasperserver]]
Tomcat-log shows:
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [standardEngine[Catalina].StandardHost[localhost].StandardContext[/jasperserver]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/dbcp/dbcp/BasicDataSourceFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2904)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:82)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
at org.apache.naming.NamingContext.lookup(NamingContext.java:843)
at org.apache.naming.NamingContext.lookup(NamingContext.java:154)
at org.apache.naming.NamingContext.lookup(NamingContext.java:831)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1093)
at org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:672)
at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:271)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 30 more
Aug 18, 2014 4:05:46 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /srv/tomcat/webapps/jasperserver
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [standardEngine[Catalina].StandardHost[localhost].StandardContext[/jasperserver]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)Tomcat/Java-Version:
Apache Tomcat/7.0.35 1.7.0_51-b00 Oracle Corporation Linux 3.7.10-1.28-desktop amd64 Postgres-Version is 9.3, System is OpenSuse 12.3
-
oesina
Wrote:Hi Uwe,
that is definitely non-supported configuration but JDBC looks like a minor issue that we could overcome to test a step further.
Make sure you have only single postgres jdbc jar file within your Tomcat installation - including the jasperserverWEB-INFlib etc. just search for the file and make sure it's only one version.
You could also check some security configurations for Postgres DB.
Hope you'll find the traitor.
Kind regards,
OlgaThere was no postgres jar in jasperserver/WEB-INF/lib, so i copied the one from /srv/tomcat6/lib. An old one resided in the geoserver-application, which i changed to the same one. But no effect on jasperserver.
What do you mean with security configuration? At the momet it runs on a testing db on localhost with no restrictions.
Thank you
Uwe
-
Hi all!
As this is my first post in this forum, first a little introducion: I am a geologist specialized in geoinformatics. I am managing a spatial data infrastructure an like to use jasperserver in this context as a reporting tool. At the moment i am prettry new to jasper and not a really crack in running tomcat. Our database is a postgresql 9.1 running on an opensuse 12.1 server.
What i try to do:
I like running jasperserver on an existing tomcat6. For this i downloaded the war-distribution and installed it according to the documentation with buildomatic. This part worked really good, the database and examples has been created and filled. But when i try to start the application in tomcat6 it doesnt run, because of not finding the postgres-driver. The driver (postgresql-9.0-801.jdbc3.jar) is located in /srv/tomcat6/lib which is the original tomcat6-path on opensuse, afair buildomatic put the driver there by itself.
What i have done to solve the Problem:
I had changed the postgresql-driver to newer one(postgresql-9.1-902.jdbc[3|4].jar), because i wasn't sure if the given one is working correct with 9.1. This had no effect, and it seemed that the original driver is ok, because the created databases seem to be correct (and can be used with iReports).
By reading some information i found that the sun-jre is recommended for jasperserer, because of 'known issues' with openjdk. But opensuse doesnt provide the sun engine anymore in their repositories because of oracle-licence issues. So before i do lots of work to get the sun-jre up and running i'd like to ask, if this can be the issue for not running jasperserver in this context. Other applications (geoserver) are running correct on the same tomcat, The jasperserver.log ist attached to this post.
So, please give me some hints to get this thing done. If you need some more information please tell me, i try to provide them as fast as i can.
Thanks in advance
Uwe
Reload loop after login
in Products
Posted
Hello!
With a system-upgrade (openSuse 42.2 ->42.3->15) my tomcat-server is upgraded to version 9, the underlying JRE switsched from oracle to OpenJDK. The jasperserver-ce-app starts fine, but after login a reload-loop starts, which cannot be stopped, so the app is unusable. The directory is shown, but no folder can be opened. Other apps work like before. The logfile do not show anything i can handle. Some lines are attached below, more can be delivered if needed.
So how can i stop this behavior.
Thank you in advance
Uwe Seher
catalina.log, excerpts with 'jasper'
jasperserver.log, excerpts with 'error'