Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359679 - Birt web viewer 3.7.1 on JBoss 6.1.0 (jdk1.6.0_21) throws exception: org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory
Summary: Birt web viewer 3.7.1 on JBoss 6.1.0 (jdk1.6.0_21) throws exception: org.apac...
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Windows XP
: P3 critical with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact: weiming tang CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 04:21 EDT by Uffe CLA
Modified: 2013-06-26 15:44 EDT (History)
4 users (show)

See Also:


Attachments
Stack trace (4.07 KB, text/plain)
2011-10-03 04:21 EDT, Uffe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uffe CLA 2011-10-03 04:21:33 EDT
Created attachment 204436 [details]
Stack trace

I've installed the 3.7.1 webviewer on JBoss 6.1.0. However when I access the application it throws the following exception:

org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory

I'm in a windows XP environment, 32 bit.

I have done the following:

- Installed jdk1.6.0_21
- Installed JBoss 6.1.0
- Copied the WebViewerExample folder from the 3.7.1 birt runtime to server/default/deploy and renamed the fodler to birt.war.

When I enter the application it fails with the above example. 

I have tried to copy a log4j.jar to WEB-INF/lib and server/default/lib, no luck

I have managed to solve the problem by removing the following file: 

C:\jboss-6.1.0.Final\common\lib\jcl-over-slf4j.jar

However I'm not sure if this is the correct thing to do.
Comment 1 Xiaoying Gu CLA 2011-10-27 04:23:09 EDT
(In reply to comment #0)
> Created attachment 204436 [details]
> Stack trace
> 
> I've installed the 3.7.1 webviewer on JBoss 6.1.0. However when I access the
> application it throws the following exception:
> 
> org.apache.commons.discovery.DiscoveryException: Class
> org.apache.commons.logging.impl.SLF4JLogFactory does not implement
> org.apache.commons.logging.LogFactory
> 
> I'm in a windows XP environment, 32 bit.
> 
> I have done the following:
> 
> - Installed jdk1.6.0_21
> - Installed JBoss 6.1.0
> - Copied the WebViewerExample folder from the 3.7.1 birt runtime to
> server/default/deploy and renamed the fodler to birt.war.
> 
> When I enter the application it fails with the above example. 
> 
> I have tried to copy a log4j.jar to WEB-INF/lib and server/default/lib, no luck
> 
> I have managed to solve the problem by removing the following file: 
> 
> C:\jboss-6.1.0.Final\common\lib\jcl-over-slf4j.jar
> 
> However I'm not sure if this is the correct thing to do.

This is because your environment config, not the problem of birt webviewer. 
Please see http://www.birt-exchange.org/org/wiki/index.php?title=BIRT:Deployment
Comment 2 Naveen Sydney CLA 2011-11-01 20:47:37 EDT
I am experiencing the same problems. 

Environment:

Jboss 6.1 Final
BIRT 3.7.1

I followed the instruction:

Q: How do I install BIRT in JBoss? 
Take the viewer deployment from the BIRT designer (as described for Tomcat), and copy it to your JBoss deploy directory as viewer.war. 

However, BIRT uses an older version of the Rhino scripting engine, and this causes a conflict with the version installed with JBoss. To work around this temporarily, put BIRT's js.jar in JBoss's server/default/lib. 

AND 

Also followed the instruction here

http://www.eclipse.org/birt/phoenix/build/#j2ee
(
Deploying to Java EE Server
Please see Setting up the BIRT Viewer
)

http://www.eclipse.org/birt/phoenix/deploy/viewerSetup.php#jboss

If you are deploying the BIRT Viewer version 3.7 or later to JBoss use the directions supplied on the following link:
BIRT POJO Viewer JBoss Deployment 

http://wiki.eclipse.org/BirtPOJO_Viewer_JBOSS_Deployment

BIRT POJO Viewer JBOSS Deployment
Install and Deploy Steps 

1. Download the BIRT Runtime and extract the contents.
2. Remove org.apache.xerces from the birt-runtime-version\WebViewerExample\WEB-INF\lib folder.
3. Copy the WebViewerExample directory to jboss-version\server\default\deploy directory.
4. Rename WebViewerExample to birt.war.
5. Start JBOSS Server

Could you please eloborate on why you thought this was a configuration issue?

cheers,
Naveen Sydney
Comment 3 Uffe CLA 2011-11-02 06:28:45 EDT
Dear Xiaoying Gu

Please don't close this bug since it is not resolved. We have followed all the guide lines....no luck.

Br, Uffe
Comment 4 Naveen Sydney CLA 2011-12-15 18:09:07 EST
Any status updates on this bug?
Comment 5 Jeff Sexton CLA 2013-06-26 15:44:50 EDT
This problem still occurs on BIRT viewer 4.3 with a fresh install of jBoss 1.6 final.  Deleting jBoss's jcl-over-slf4j.jar seems to allow the viewer to work.

Is there a better fix?