Fedora 11 - HTTP Status 500 after install

0

Hi,

 I've installed JasperReports on Centos5 in a QEMU virtual machine with 1.5GB RAM, unfortunately i don't have VT but i am running kqemu. It was not quick enough to be useful as a test unfortunately but it did work and install went fine. I mention this to show that I have been successful in installing JasperServer today on Centos.

So i decided to give it extra speed by installing Jasper on the real machine instead of in a VM - I'm running Fedora 11, 2GB ram, 

The install completed without any errors. I installed as root. I used my own existing mysqld instead of jaspers, but otherwise i went with the default settings.

/tmp/bitrock_installer_xxxx.log shows:

BUILD SUCCESSFUL
Total time: 30 seconds

Script stderr:


Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 07/20/2009 at 13:27:23
Executing /opt/jasperserver-pro-3.5.1/jasperctl.sh
Script exit code: 0

Script output:


Script stderr:


Launching http://localhost:8080/jasperserver-pro/

 

 

... so it appears to have worked, tomcat is running fine, i log into jasper with jasperadmin:jasperadmin exactly as i did with my Centos install version and i get the following error:

 

<i>org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.ExceptionInInitializerError<br />      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:860)<br />  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)<br />   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)<br />        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br />      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />      com.jaspersoft.jasperserver.war.common.UploadMultipartFilter.doFilter(UploadMultipartFilter.java:86)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)<br />    org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:335)<br />  org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)<br />      org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)<br />     org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)<br />     org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.ji.license.JILicenseFilter.doFilter(JILicenseFilter.java:107)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:142)<br />       org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:97)<br />  org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.multipleTenancy.MTBasicProcessingFilter.doFilter(MTBasicProcessingFilter.java:182)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:178)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)<br /> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:178)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)<br />       org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)<br />      com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)<br />    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)<br /></i>

root cause

<i>java.lang.ExceptionInInitializerError<br />  org.springframework.webflow.util.RandomGuidUidGenerator.generateUid(RandomGuidUidGenerator.java:51)<br />       org.springframework.webflow.conversation.impl.SessionBindingConversationManager.beginConversation(SessionBindingConversationManager.java:97)<br />      org.springframework.webflow.execution.repository.support.AbstractConversationFlowExecutionRepository.generateKey(AbstractConversationFlowExecutionRepository.java:96)<br />     org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:209)<br />   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />       sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />     java.lang.reflect.Method.invoke(Method.java:585)<br />  org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)<br />        org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)<br /> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)<br /> org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)<br />        org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)<br /> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)<br />  $Proxy22.launch(Unknown Source)<br />   org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:131)<br />    org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:170)<br />    org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br /> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)<br /> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)<br />  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)<br />   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)<br />        org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br />      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />      com.jaspersoft.jasperserver.war.common.UploadMultipartFilter.doFilter(UploadMultipartFilter.java:86)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)<br />    org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:335)<br />  org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)<br />      org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)<br />     org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)<br />     org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.ji.license.JILicenseFilter.doFilter(JILicenseFilter.java:107)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:142)<br />       org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.util.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:97)<br />  org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.multipleTenancy.MTBasicProcessingFilter.doFilter(MTBasicProcessingFilter.java:182)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:178)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)<br /> org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    com.jaspersoft.jasperserver.war.UserPreferencesFilter.doFilter(UserPreferencesFilter.java:178)<br />    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)<br />      org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)<br />       org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)<br />      com.jaspersoft.jasperserver.war.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)<br />    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)<br /></i>

 

I read from earlier posts in the forum this could be to do with the JRE thats running,

There is 3 program that provides 'java'.

  Selection    Command
-----------------------------------------------
*  1           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
   2           /usr/lib/jvm/jre-1.5.0-gcj/bin/java
 + 3           /opt/jdk1.6.0_14/bin/java

Enter to keep the current selection[+], or type selection number:


I've tried all 3 settings, as follows:

./jasperctl.sh stop

alternatives --config java

[1]

./jasperctl.sh start

 

etc etc, repeated for each jdk option i have (2/3).

I noticed when it starts:

Enter to keep the current selection[+], or type selection number:
Using CATALINA_BASE:   /opt/jasperserver-pro-3.5.1/apache-tomcat
Using CATALINA_HOME:   /opt/jasperserver-pro-3.5.1/apache-tomcat
Using CATALINA_TMPDIR: /opt/jasperserver-pro-3.5.1/apache-tomcat/temp
Using JRE_HOME:       /opt/jasperserver-pro-3.5.1/java

 

so i tried hard coding JDK_HOME to be /opt/jdk1.6.0_14/ (/bin/java)

and JRE_HOME then did show /opt/jdk.... so i was hoping that would work,

that didn't work either, same error again.

 

So i'm out of ideas what to try.

 

java -version currently outputs:

java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)

 

 

and this is what i've used JasperReports with to build a custom application that generates reports so i wasn't expecting to have any trouble.

 

Can anyone advise what the problem might be with FC11 ? As you can see, I've googled a lot for an answer, tried a lot of things, and still I can't get it to work.

 

Thanks a lot

 

 

 

 

 

asking4's picture
11
Joined: Jul 20 2009 - 6:05am
Last seen: 4 years 9 months ago

5 Answers:

0

I have tested out the installer on Fedora 8, 9, & 10. But not 11 yet! (Looks like it came out last month).

 

The installation worked fine on 10. There was a graphical mode problem when running on 9 (but if you set to xwindow mode instead of default gtk - then it worked). Under Fedora 8, there was definitely a conflict with the Fedora bundled java which was the IcedTea java. Once Fedora switched to the OpenJDK, all the java problems went away.

 

So, I'm surprised to see a problem with Fedora 11. I'll have to give it a try myself and see what happens.

 

One thing that you can do is follow the installation steps from Section 5 of the Install Guide. This is the installation from the War File Distribution zip. There are a set of ant scripts (called buildomatic) that will handle all of the App Server and DB config for you. It supports tomcat, glassfish, jboss, mysql & postgresql.

 

So, since you have a MySQL in place already this might be a good choice. Just need to get a Tomcat installed.

 

I will give Fedora 11 a try and see what happens. Oh, and by the way ;-) Can you write a bug on this? - helps get these types of issues toward the top of the queue. Look for the menu item "Tracker" on the jasperserver project page. I'm helping to get the bugs re-organized and assigned this week. A lot of our bugs are fixed but the Trackers not been updated with resolutions :-( WIll fix this. Anyway, just an FYI ;-)

 

Thanks,

-Tony

 

 

 

tkavanagh's picture
1002
Joined: Jul 7 2006 - 8:54am
Last seen: 1 day 5 hours ago
0
Thanks for the suggestion, I was going down the same route actually and had started to install tomcat last night, i\'ll give that method a go this morning. I\'ll file a bug report today when I get chance. - hopefully after I get it going in the Fedora tomcat Thanks for your time and ideas
asking4's picture
11
Joined: Jul 20 2009 - 6:05am
Last seen: 4 years 9 months ago
0

I've deployed it via fedora 11's tomcat, and followed the jasperserver 3.5 install guide from section 5 as advised. The js-ant script didn't work, as I have no servlet-api.jar, so it couldn't identify tomcat. FC does have a similarly named: tomcat6-servlet-2.5-api-6.0.18.jar in /usr/share/tomcat6/lib/ so I added an extra check to setup.xml as follows:

 

<!-- FEDORA 11 tomcat 6 -->


    <if>


        <available file="${appServerDir}/lib/tomcat6-servlet-2.5-api-6.0.18.jar"/>


        <then>


            <var name="appServerType" unset="true"/>


            <var name="appServerJdbcDir" unset="true"/>


            <var name="appServerWorkDir" unset="true"/>



            <property name="appServerType" value="tomcat"/>


            <property name="appServerJdbcDir" value="${appServerDir}/lib"/>


            <property name="appServerWorkDir" value="${appServerDir}/work/Catalina/localhost"/>


        </then>



The build scripts then went ahead fine and did deploy it correctly and I can start tomcat6 and access it via http://localhost:8080/jasperserver/ as intended. I get a login screen. Unfortunately, when I log in, I'm getting the same error as I got before. I also tried copying the servlet-api.jar file into /usr/share/tomcat6/lib/ from the jasperserver bundled tomcat directory, incase this was the problem, but it made no difference.

I then tried symlinking the FC11 file above to be named servlet-api.jar but that also made no difference. each time i stopped and started tomcat6. There is also no setclasspath.sh or setenv.sh on my system anywhere although the example webapps that come with tomcat are working as expected. I therefore tried adding the JAVACMD_OPTS (AND JAVA_OPTS - i set both) in /etc/java/java.conf and once again bouncing tomcat6 again. Still same errors.

I then tried editing JAVA_HOME in /etc/java/java.conf, and rebuilding with js-ant (i did the clean-config && then gen-config first, left the db as it was, did the deploy-webapp-ce again. all went ok, again, it shows me the first page, as soon as i log in, i get the original errors.

 

So, I'm totally out of ideas. I'll file a bug report, And I guess I'll have to set up Centos or something somewhere to host this. Thanks for your time, and any further suggestions.

 

 



Post Edited by asking4 at 07/21/2009 10:20
asking4's picture
11
Joined: Jul 20 2009 - 6:05am
Last seen: 4 years 9 months ago
0

Nice work getting the buildomatic scripts to work. I have an outstanding bug to fix this exact issue - where the App Server validation/discovery is hard coded to a value that is not valid for all App Server deployments. I think I'm going to fix by adding an "override" property - to that you can say "I have the directory path correct ... just do the deploy". Sorry you got stuck on this.

 

I'm not sure exactly what is going on here. But this is what I would start looking at if it's my own system (I'm probably telling you things you've already tried). If JasperServer/App Server is giving a 500 error there's got to be a reason.. Try stopping tomcat, clearing out the work directory <tomcat>/work/*, clear out the logs dir <tomcat>/logs/* log, *.out. Then restart. Do you see anything in the catalina.out (or whatever the largest of the log files is)? Can you post the log to this thread so I can take a look.

 

 

tkavanagh's picture
1002
Joined: Jul 7 2006 - 8:54am
Last seen: 1 day 5 hours ago
0

Hi, i stopped tomcat6, cleared out the logs and work directories and started it up again,

then tried to log in. catalina.out has the following:

 

29-Jul-2009 10:01:46 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
29-Jul-2009 10:01:46 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
29-Jul-2009 10:01:46 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1726 ms
29-Jul-2009 10:01:46 org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on directory
29-Jul-2009 10:01:46 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
29-Jul-2009 10:01:46 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /usr/share/tomcat6/webapps/jasperserver/WEB-INF/l
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:207)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
<snip>

       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29-Jul-2009 10:02:10 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
29-Jul-2009 10:02:10 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
29-Jul-2009 10:02:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/188  config=null
29-Jul-2009 10:02:11 org.apache.catalina.startup.Catalina start
INFO: Server startup in 24537 ms
10:03:20,724  WARN LoggerListener,http-8080-2:55 - Authentication event Authenti
10:03:20,725  WARN LoggerListener,http-8080-2:55 - Authentication event Interact
 

 

to get to this point, i attempted to log in to /jasperserver/ with the default jasperadmin user.

 

Thanks for your help.

 

asking4's picture
11
Joined: Jul 20 2009 - 6:05am
Last seen: 4 years 9 months ago
Feedback
randomness