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

0

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/mysql_master.properties` to `default_master.properties` 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(NamingContext.java:962)
        at org.apache.naming.NamingContext.close(NamingContext.java:762)
        at com.tonbeller.tbutils.res.JNDIResourceProvider.close(JNDIResourceProvider.java:72)
        at com.tonbeller.tbutils.res.CompositeResourceProvider.close(CompositeResourceProvider.java:56)
        at com.tonbeller.tbutils.res.ResourcesFactory.initialize(ResourcesFactory.java:163)
        at com.tonbeller.tbutils.res.ResourcesFactory.<init>(ResourcesFactory.java:92)
        at com.tonbeller.tbutils.res.ResourcesFactory.<clinit>(ResourcesFactory.java:89)
        at com.tonbeller.tbutils.res.ResourcesFactoryContextListener.contextInitialized(ResourcesFactoryContextListener.java:23)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        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:1113)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:724)
 

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: 5 years 11 months ago

2 Answers:

0

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: 5 years 11 months ago
0

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
3123
Joined: Jul 7 2006 - 8:54am
Last seen: 5 years 2 weeks ago
Feedback