New Install of JasperReports Server - home.html 404

0

Hello

I just set up a new installation of JasperReports Server on SUSE with pre-existing Tomcat 6 and bundled PSQL, and I'm having issues getting the site to load.

After much configuration I got it to this point. It loads up without errors as far as I can see, but the homepage is missing. In webapps/jaspserserver, there are .htm files for blank, errorPage, and index, but I cannot go directly to them with an address like http://myserver:8080/jaspserver/index.html. It seems to be 'running' fine in the tomcat side.

Cleared logs, then rebooted server and started all processes over again to get fresh information on any errors:

postgresql.log is empty

webapps/jasperserver/web-inf/logs/jasperserver.log is empty

catalina.out is listed below, I didn't see any errors but I might have missed something:

2014-11-17 13:00:35 org.apache.catalina.core.AprLifecycleListener
INFO:
The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/lib64/jvm/java-1.7.0-ibm-1.7.0/jre/lib/amd64/compressedrefs:/usr/lib64/jvm/java-1.7.0-ibm-1.7.0/jre/lib/amd64:/usr/lib
2014-11-17 13:00:36 org.apache.coyote.http11.Http11Protocol
INFO: Initializing Coyote HTTP/1.1 on http-8080
2014-11-17 13:00:36 org.apache.catalina.startup.Catalina
INFO: Initialization processed in 1103 ms
2014-11-17 13:00:36 bitronix.tm.integration.tomcat55.BTMLifecycleListener
INFO: Starting Bitronix Transaction Manager
2014-11-17 13:00:36 bitronix.tm.BitronixTransactionManager
INFO: Bitronix Transaction Manager version 2.1.3
2014-11-17 13:00:36 bitronix.tm.Configuration
INFO: JVM unique ID: <bonita-tomcat-btm-node0>
2014-11-17 13:00:36 bitronix.tm.resource.ResourceLoader
INFO: reading resources configuration from /opt/bonita/conf/bitronix-resources.properties
2014-11-17 13:00:37 bitronix.tm.recovery.Recoverer
INFO:
recovery committed 0 dangling transaction(s) and rolled back 0 aborted
transaction(s) on 1 resource(s) [jdbc/bonitaDSXA] (restricted to
serverId 'bonita-tomcat-btm-node0''QuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads.
  Using job-store 'org.bonitasoft.engine.scheduler.impl.BonitaJobStoreCMT' - which supports persistence. and is not clustered.
 
2014-11-17 13:00:57 org.quartz.core.QuartzScheduler
INFO: JobFactory set to: org.bonitasoft.engine.scheduler.impl.TransactionalSimpleJobFactory@17eb01f5
2014-11-17 13:00:57 org.quartz.core.QuartzScheduler
INFO: Scheduler QuartzScheduler_$_NON_CLUSTERED started.
2014-11-17 13:00:57 org.apache.catalina.startup.HostConfig
INFO: Deploying configuration descriptor jasperserver.xml
2014-11-17 13:00:58 org.apache.catalina.startup.HostConfig
INFO: Deploying configuration descriptor host-manager.xml
2014-11-17 13:00:58 org.apache.catalina.startup.HostConfig
INFO: Deploying configuration descriptor manager.xml
2014-11-17 13:00:58 org.apache.catalina.startup.HostConfig
INFO: Deploying web application directory examples
2014-11-17 13:00:58 org.apache.catalina.startup.HostConfig
INFO: Deploying web application directory docs
2014-11-17 13:00:58 org.apache.catalina.startup.HostConfig
INFO: Deploying web application directory ROOT
2014-11-17 13:00:59 org.apache.coyote.http11.Http11Protocol
INFO: Starting Coyote HTTP/1.1 on http-8080
2014-11-17 13:00:59 org.apache.jk.common.ChannelSocket
INFO: JK: ajp13 listening on /0.0.0.0:8009
2014-11-17 13:00:59 org.apache.jk.server.JkMain
INFO: Jk running ID=0 time=0/74  config=null
2014-11-17 13:00:59 org.apache.catalina.startup.Catalina
INFO: Server startup in 22584 ms

The database connections seem fine. I went into postgresql, su postgresql, ./psql foodmart, and had a good connection with no errors to test.

Do you guys have any idea where I can look to find this missing home.html file? Thanks for your help!

lukeh's picture
4
Joined: Nov 3 2014 - 9:02am
Last seen: 4 years 8 months ago

2 Answers:

0

There's no index.html file. It's "index.htm".

Anyways, JasperReports Server actually generates pages. Just go to "http://localhost:8080/jasperserver" or click the link in Tomcat Manager.

You can also try deleting conf/Catalina directory and restarting.

 

 

hozawa's picture
47047
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 2 weeks ago

Alright, that is good to know that it just generates them.

I went to http://myserver:8080/jasperserver, and I get the error from the first screenshot. It automatically redirects to http://myserver:8080jasperserver/home.html. It should be noted that other webapps on this server, such as the tomcat manager and bonita, are working fine.

Deleting the conf/catalina folder breaks tomcat pretty badly. Restarting the services and the server itself, it recreates the folders and some of the files, but it is missing my bonita pages, and the tomcat web app manager pages are broken as well and won't load up.

Thanks for your help so far!

lukeh - 4 years 9 months ago

I had to restore back after deleting the catalina folder to get my tomcat server working again, but jasperserver is still not working.

Here's the current process, just to make sure I'm doing it right:
Start server
Start postgresql - service postgresql start
Start tomcat server - startup.sh
Start jasper processes - ctlscript.sh start
Check tomcat server - http://myserver:8080
On the list of applications in the web app manager, Jasperserver says it is running. Clicking the jasperserver link (http://myserver:8080/jasperserver) redirects me to http://myserver:8080/jasperserver/home.html and shows the message '/jasperserver/home.html' with the description 'The requested resource is not available'.
Catalina.out - No errors
Jasperserver.log - Nothing new written to log
postgresql.log - Nothing new written to log

I am also able to access other apps from the same tomcat server, such as bonita. So the tomcat processes are at least fully functional for those apps.

I tried connecting to postgresql, and had no errors:
su postgres
./psql

Listed databases - \l
Showed I had the databases: Tester, foodmart, jasperserver, postgres, sugarcrm, template0, template1.

Do you have any ideas on how to fix this?

lukeh - 4 years 9 months ago
0

I've got a java error that may pertain to this now from localhost.log. Any idea what this could mean?

 

localhost
 

2014-11-20 08:54:42 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: SessionListener: contextDestroyed()
2014-11-20 08:54:42 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: ContextListener: contextDestroyed()
2014-11-20 08:58:41 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
INFO: Marking servlet controller as unavailable
2014-11-20 08:58:41 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
SEVERE: Error loading WebappClassLoader
  context: /jasperserver
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@486e141d
 com.mycompany.mypackage.ControllerServlet
java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:613)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014-11-20 08:58:41 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
SEVERE: Servlet /jasperserver threw load() exception
java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:613)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014-11-20 08:58:41 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: ContextListener: contextInitialized()
2014-11-20 08:58:41 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: SessionListener: contextInitialized()
2014-11-20 11:33:20 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: SessionListener: contextDestroyed()
2014-11-20 11:33:20 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: ContextListener: contextDestroyed()
2014-11-20 11:33:54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
INFO: Marking servlet controller as unavailable
2014-11-20 11:33:54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
SEVERE: Error loading WebappClassLoader
  context: /jasperserver
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@14dde2c9
 com.mycompany.mypackage.ControllerServlet
java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:613)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014-11-20 11:33:54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jasperserver]
SEVERE: Servlet /jasperserver threw load() exception
java.lang.ClassNotFoundException: com.mycompany.mypackage.ControllerServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:613)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

2014-11-20 11:33:54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: ContextListener: contextInitialized()
2014-11-20 11:33:54 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
INFO: SessionListener: contextInitialized()

lukeh's picture
4
Joined: Nov 3 2014 - 9:02am
Last seen: 4 years 8 months ago
Feedback
randomness