Help with new installation of JasperServer 5.2.0 with MySQL - almost there!

I had existing Tomcat and MySQL installs, so I chose to use the WAR distribution and I'm having a bit of trouble. I can login to JasperServer via the web interface, but it appears that I can't actually do anything -- like upload a new report, for instance.

Linux x86-64, Oracle Java 6, JasperServer Community Edition 5.2.0, MySQL 5.5, Tomcat 7.0.42.

I used buildomatic:

  1. Copied `sample_conf/` to `` and customized as appropriate
  2. Ran `./js-ant create-js-db`
  3. Ran `./js-ant init-js-db-ce`
  4. Ran `./js-ant import-minimal-ce`
  5. Ran `./js-ant deploy-webapp-ce`

There was one snag during this procedure: buildomatic really wants to have root privileges, so I used root/[password] for the create-js-db part, then changed the `dbUsername` and `dbPassword` to something else because I don't want to use root for everything -- like from the webapp. I did a `GRANT ALL PRIVILEGES` on the `jasperserver` database and then performed steps 3, 4, and 5 using the alternative credentials.

When launching Tomcat, I get this error:

2013-09-04 14:05:11,777 ERROR JNDIResourceProvider,localhost-startStop-1:75 - error closing context
javax.naming.OperationNotSupportedException: Context is read only
        at org.apache.naming.NamingContext.checkWritable(
        at org.apache.naming.NamingContext.close(
        at com.tonbeller.tbutils.res.JNDIResourceProvider.close(
        at com.tonbeller.tbutils.res.CompositeResourceProvider.close(
        at com.tonbeller.tbutils.res.ResourcesFactory.initialize(
        at com.tonbeller.tbutils.res.ResourcesFactory.<init>(
        at com.tonbeller.tbutils.res.ResourcesFactory.<clinit>(
        at com.tonbeller.tbutils.res.ResourcesFactoryContextListener.contextInitialized(
        at org.apache.catalina.core.StandardContext.listenerStart(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployDirectory(
        at org.apache.catalina.startup.HostConfig$
        at java.util.concurrent.Executors$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

I am able to login to JasperServer, but everything is ... empty. The "home" link takes me to the repository which contains "System Properties" and "Themes". The "Library" is completely empty with no obvious way to add something to it -- like a report. I can't even figure out how to create a data source. About a year ago, I used the "real" installer on a Windows XP virtual machine and was up and running pretty quickly, so I must have missed something critical, here.

Any suggestions?

schultcd's picture
Joined: Aug 2 2007 - 6:09am
Last seen: 9 years 3 days ago

2 Answers:

The problem was gross user error: I didn't realize that I had to right-click in the resource tree and "Add Resource", then upload a report.

The brief setup video I watched on the JasperSoft help site seemed to show a "home" screen with large "Get Started" buttons with things liks "Add Report", etc. on them. I don't see that kind of screen anywhere, so, being a newbie, I was a bit lost.

schultcd's picture
Joined: Aug 2 2007 - 6:09am
Last seen: 9 years 3 days ago

I think everything is running fine. Although you will need to keep an eye on the start up error to make sure that is not an issue. But if you can Login and then navigate around then I think everything is probably OK.

What you have is a "production style" installation regarding the default resources that are in place. When you run "js-ant import-minimal-ce", this puts the minimum resources (we also call these "core" resources) in place that are required to run JasperReports Server.

You can run an additional command to get the sample resources in place - then what you see after you login will be more normal because you will see sample reports which you can execute.

Also, the additional buildomatic command can be run while JRS is still running (don't need a re-start):

  ./js-ant import-sample-data-ce

Hopefully, that does it for you.



tkavanagh's picture
Joined: Jul 7 2006 - 8:54am
Last seen: 8 years 1 month ago