Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0
Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #870731] Wed, 09 May 2012 13:33 Go to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
Hi,

I've deployed successfully BIRT Viewer 3.7.1 into a web application using Glassfish Server 3.1.2. I used the JSP taglib with a JSF 2.0 dynamic web project (v2.5).
Now I'm trying to switch from Glassfish to Tomcat 7.0 Server because I'm having many display problems with Glassfish but when I execute the web page containing the JSP taglib I get this error:

The requested resource (/birt/frameset) is not available.

I think the problem is related to the deployment of BIRT Viewer into Tomcat. I'm getting this error in this two cases:
- I copied the war file (birt.war) into the Tomcat's Webapps folder and I deployed it from the Tomcat manager.
- I tried also to copy the WebViewerExample folder into Tomcat's Webapps folder.

For the Glassfish deployment I deployed the war file from the manager and it worked without problem.
So How can I deploy successfully BIRT viewer into a Tomcat Server???
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #870833 is a reply to message #870731] Wed, 09 May 2012 19:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you copy this folder :WebViewerExample to the tomcat webapps
directory it should work fine. Have you tried to directly access it
instead of using the tag lib as a test?

Jason

On 5/9/2012 9:34 AM, Claude B wrote:
> Hi,
>
> I've deployed successfully BIRT Viewer 3.7.1 into a web application
> using Glassfish Server 3.1.2. I used the JSP taglib with a JSF 2.0
> dynamic web project (v2.5).
> Now I'm trying to switch from Glassfish to Tomcat 7.0 Server because I'm
> having many display problems with Glassfish but when I execute the web
> page containing the JSP taglib I get this error:
>
> The requested resource (/birt/frameset) is not available.
>
> I think the problem is related to the deployment of BIRT Viewer into
> Tomcat. I'm getting this error in this two cases:
> - I copied the war file (birt.war) into the Tomcat's Webapps folder and
> I deployed it from the Tomcat manager.
> - I tried also to copy the WebViewerExample folder into Tomcat's Webapps
> folder.
>
> For the Glassfish deployment I deployed the war file from the manager
> and it worked without problem.
> So How can I deploy successfully BIRT viewer into a Tomcat Server???
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #870936 is a reply to message #870833] Thu, 10 May 2012 09:54 Go to previous messageGo to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
Yes I tried direct access and it worked fine. Can you give me other suggestions.
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871077 is a reply to message #870936] Thu, 10 May 2012 17:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If that worked fine then BIRT is deployed correctly. Add the attached
report design and jsp file to the birt viewer top directory and then
access the jsp like:

http://localhost:8080/viewer/ViewerTag.jsp

Jason

On 5/10/2012 5:54 AM, Claude B wrote:
> Yes I tried direct access and it worked fine. Can you give me other
> suggestions.


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/birt.tld" prefix="birt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<body onload="resizeFrame(document)" bgcolor="#cccccc">


</head>
<body>

<birt:viewer id="birttViewer"
reportDesign="TopNPercent.rptdesign"
format="html"
scrolling="true"
height="700"
width="950"
pattern="frameset"
isHostPage="false">
</birt:viewer>


</body>
</html>
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871166 is a reply to message #871077] Fri, 11 May 2012 08:44 Go to previous messageGo to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
Thank you Jason for this solution, I tested and it has worked. But this is not exactly what I want because in my JSP page I have many other elements in addition to the viewer tag like JSF tags and some managed beans and I think this kind of solution will make my project more complicated. What I need exactly is to deploy Tomcat the same way I deployed GlassFish and I saw in many forums that this worked for many people but till now I don't understand why this is not working for me.
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871259 is a reply to message #871166] Fri, 11 May 2012 16:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you give some details on how you have it deployed on Glassfish?

Jason


On 5/11/2012 4:44 AM, Claude B wrote:
> Thank you Jason for this solution, I tested and it has worked. But this
> is not exactly what I want because in my JSP page I have many other
> elements in addition to the viewer tag like JSF tags and some managed
> beans and I think this kind of solution will make my project more
> complicated. What I need exactly is to deploy Tomcat the same way I
> deployed GlassFish and I saw in many forums that this worked for many
> people but till now I don't understand why this is not working for me.
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871276 is a reply to message #871259] Fri, 11 May 2012 17:52 Go to previous messageGo to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
First I run GlassFish server and I opened the administration console from browser (IE) using this address localhost:4848/common/index.jsf
I selected the Application tab at the left and I clicked on the deploy button, then I selected browse button and I set the location of my birt.war file. Finally I validated with ok button.

I tried to deploy Tomcat the same way as GlassFish:
I lunched the Tomcat server and I visited the manager console at localhost:8080/ manager/html
At the end of the page I clicked the browse button and I set the war file's path and I get the message application successfully deployed

What I'm I messing here???
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871444 is a reply to message #870731] Sun, 13 May 2012 19:32 Go to previous messageGo to next message
Debarshi Dasgupta is currently offline Debarshi Dasgupta
Messages: 25
Registered: April 2012
Junior Member
Hi Claude,

I tried to use birt reports with jsf4birt, it works fine with tomcat server.

Download demo app from

exadel.org/system/files/private/jsf4birt/builds/release/exadel-jsf4birt-demo.war


Please refer to the last post of www.eclipse.org/forums/index.php/t/334010/.


Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871496 is a reply to message #871444] Mon, 14 May 2012 08:48 Go to previous messageGo to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
Thank you Debarshi for your replay, I'll try it and I hope it will work
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #871677 is a reply to message #871276] Mon, 14 May 2012 17:03 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Are you using the default birt.war or do you have a modified one?

Jason

On 5/11/2012 1:52 PM, Claude B wrote:
> First I run GlassFish server and I opened the administration console
> from browser (IE) using this address localhost:4848/common/index.jsf
> I selected the Application tab at the left and I clicked on the deploy
> button, then I selected browse button and I set the location of my
> birt.war file. Finally I validated with ok button.
>
> I tried to deploy Tomcat the same way as GlassFish:
> I lunched the Tomcat server and I visited the manager console at
> localhost:8080/ manager/html
> At the end of the page I clicked the browse button and I set the war
> file's path and I get the message application successfully deployed
>
> What I'm I messing here???
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #872189 is a reply to message #871677] Tue, 15 May 2012 16:05 Go to previous messageGo to next message
Claude B is currently offline Claude B
Messages: 32
Registered: February 2012
Member
Hi Jason, yes I'm using the default birt.war
BTW, Can you give me an example of a working web.xml configuration
Re: Deploy BIRT Viewer 3.7.1 into Tomcat Server 7.0 [message #872283 is a reply to message #872189] Tue, 15 May 2012 20:35 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you look at the runtime download the WebViewerExample directory is
the exploded version of the birt.war. You could try to re-war it and
deploy it. There is a web.xml in the web-inf directory of this app.

I just tried deploying to 7.0.27 with the manager url and it worked for me.


Jason

On 5/15/2012 12:05 PM, Claude B wrote:
> Hi Jason, yes I'm using the default birt.war
> BTW, Can you give me an example of a working web.xml configuration
Previous Topic:Adding text in master page (header and footer) problem
Next Topic:How to embed birt viewer and engine in web application by maven
Goto Forum:
  


Current Time: Wed Oct 22 15:41:35 GMT 2014

Powered by FUDForum. Page generated in 0.14417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software