Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports JBoss Portal Error


2004 IR Help

Recommended Posts

By: CrazyEngineer - larrym789

JasperReports JBoss Portal Error

2005-11-30 17:39

Anyone else having trouble running the default installation of the jasperreports portal?

 

I follow the directions and get everything installed in my jboss portal, but when I try to access it

 

/portal/jasperreports-portal I get a big servlet exception. I feel like its a config problem in the war and I'm probably not seeing it since I'm new to the Jboss Portal config.

 

javax.servlet.ServletException

org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:95)

org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)

javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

 

 

Root Cause:

 

java.lang.NullPointerException

org.jboss.portal.core.theme.strategy.StrategyFactory.createStrategyContext(StrategyFactory.java:55)

org.jboss.portal.core.invocation.StrategyInterceptor.invoke(StrategyInterceptor.java:141)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)

org.jboss.portal.core.invocation.ViewInterceptor.invoke(ViewInterceptor.java:118)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)

org.jboss.portal.server.invocation.portal.TargetInterceptor.invoke(TargetInterceptor.java:153)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)

org.jboss.portal.core.invocation.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:117)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)

org.jboss.portal.core.invocation.UserContextInterceptor.invoke(UserContextInterceptor.java:92)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:213)

org.jboss.portal.server.impl.invocation.InvocationImpl.invokeNext(InvocationImpl.java:238)

org.jboss.portal.server.PortalServer.invoke(PortalServer.java:186)

org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:78)

org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)

javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.portal.core.servlet.TransactionFilter.doFilter(TransactionFilter.java:79)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

 

 

 

 

 

 

 

 

By: Sherman Wood - sgwood

RE: JasperReports JBoss Portal Error

2005-12-01 05:00

 

The instructions are a missing a few things.

 

As part of the distribution, there is a directory jasperreports-layout.war. This contains a portal theme which needs to be in the the JBoss depploy directory. Just copy the whole directory and its contents over.

 

Currently the reports you run in the portal environment expect to be connected to a data source named 'java:/comp/env/jdbc/mysql'. You will need to set up this data source in JBoss. There is an example in the db directory of the distribution. We should put some example reports out there, too.

 

Once you have deployed the 2 WARs and started JBoss, you can load up your JRXMLs into the portal via 'Maintain Reports' /portal/jasperreports-portal/back, and then run them via 'View Reports' /portal/jasperreports-portal/front.

 

 

Hope this helps,

 

 

Sherman

JasperSoft

 

 

 

 

 

 

By: jessica - zhou527

RE: JasperReports JBoss Portal Error

2006-02-09 14:34

I followed these instructions and I deployed these two war files. The jrxml files can be uploaded, but I have the problem of viewing the report: nothing shows up to the report viewer. I checked my report file, which does contain a few page data.

 

JBOSS runs fine except the warn such as

 

2006-02-09 17:15:26,796 WARN [org.jboss.portal.core.invocation.StrategyInterceptor] No strategy name found, using 'default'

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] looking for strategy with name: default

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] found strategy to use: org.jboss.portal.core.theme.strategy.impl.DefaultStrategyImpl

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] adding region: center

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] adding region: left

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.StrategyFactory] creating portlet context for: ReportDisplayPortletWindow

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.StrategyFactory] creating portlet context for: ReportListPortletWindow

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.StrategyFactory] creating portlet context for: ReportListPortletWindow

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.StrategyFactory] creating strategy context for: 2ColumnLayout jasperreports-portal front

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.impl.DefaultStrategyImpl] evaluating strategy for: org.jboss.portal.core.theme.impl.PortalLayoutImpl@11cbec9

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.impl.DefaultStrategyImpl] evaluating portlet: ReportDisplayPortlet

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.theme.strategy.impl.DefaultStrategyImpl] evaluating portlet: ReportListPortlet

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] setting layout URI: /layouts/twoColumns.jsp

2006-02-09 17:15:26,796 DEBUG [org.jboss.portal.core.invocation.StrategyInterceptor] done analyzing layout strategy

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.servlet.CoreServlet] requesting theme: null

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.servlet.CoreServlet] using layout returned from the strategy: 2ColumnLayout uri: /layouts/twoColumns.jsp

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.servlet.CoreServlet] got layout to use [2ColumnLayout] in app [/jasperreports-layout] uri [/layouts/twoColumns.jsp]

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.server.theme.LayoutDispatcher] got request dispatcher for layout resource: true

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] rendering theme ...

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] got theme to render: null

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] requested theme not found. Is there a theme attribute in the tag ? jasperreports

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.server.impl.ThemeServerImpl] get theme jasperreports

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.server.impl.ThemeServerImpl] found theme jasperreports

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] Found valid theme to render: null

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.impl.ThemeLinkImpl] get link ...

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.impl.ThemeLinkImpl] returning: <link rel='stylesheet' type='text/css' href='/jasperreports-layout/jasperreports.css' media='screen' />

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] writing theme link: <link rel='stylesheet' type='text/css' href='/jasperreports-layout/jasperreports.css' media='screen' />

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.impl.ThemeLinkImpl] get link ...

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.impl.ThemeLinkImpl] returning: <link rel='stylesheet' type='text/css' href='/jasperreports-layout/jasperreports.css' media='screen' />

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.ThemeTagHandler] done rendering theme

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.RegionTagHandler] rendering left [vertical]

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.RegionTagHandler] done rendering page region

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.RegionTagHandler] rendering center [vertical]

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.core.theme.tag.RegionTagHandler] done rendering page region

2006-02-09 17:15:26,828 DEBUG [org.jboss.portal.server.theme.LayoutDispatcher] done with the layout

2006-02-09 17:18:20,015 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

2006-02-09 17:25:50,015 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

 

Could you please help me out?

 

Thanks!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...