[jboss-user] [JBoss Tools] - Re: can you use tools birt integration with normal JSF 2?

Snjezana Peco do-not-reply at jboss.com
Wed Oct 19 11:00:54 EDT 2011


Snjezana Peco [http://community.jboss.org/people/snjeza] created the discussion

"Re: can you use tools birt integration with normal JSF 2?"

To view the discussion, visit: http://community.jboss.org/message/632544#632544

--------------------------------------------------------------
> u j wrote:
> 
> Another question: I try to install the Birt runtime as JBoss module in AS 7 to avoid a 50Mb war file.
> I defined a module, put all the jars in it and had to define some dependencies, one on the xml DocumentBuilderFactory. I defined a module javax/xml/parsers with xml-apis.2.0.jar.
> 
> But now I get:
> 
> Failed to install plugin from jar:file:C:%5Cjava%5Cjboss%5Cjboss-as-7.0.1.Final%5Cmodules%5Corg%5Ceclipse%5Cbirt%5Cmain%5Corg.eclipse.birt.runtime_3.7.1.v20110913-1734.jar!/: java.lang.ClassCastException: __redirected.__DocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory
> 
> at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source) [:1.6.0_24]
> at org.eclipse.birt.core.framework.jar.BundleLoader.loadExtensions(BundleLoader.java:147) [org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar:]
> at org.eclipse.birt.core.framework.jar.BundleLoader.load(BundleLoader.java:63) [org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar:]
> at org.eclipse.birt.core.framework.jar.ServicePlatform.installBundle(ServicePlatform.java:57) [org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar:]
> at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(ServiceLauncher.java:71) [org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar:]
> at org.eclipse.birt.core.framework.Platform.startup(Platform.java:75) [org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar:]
> at org.jboss.tools.birt.servlet.BirtEngine.getBirtEngine(BirtEngine.java:56) [jboss-birt-servlet.jar:]
> 
> Any idea of how to solve this? I guess I need to change the dependency, but I can't find a module or jar with __redirected.__DocumentBuilderFactory.
> 
> Thanks

Adding the BIRT runtime as a JBoss AS 7 module is a good idea.
I think you don't need to define the javax/xml/parsers module because JDK already contains XML API.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/632544#632544]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111019/4ad97d93/attachment.html 


More information about the jboss-user mailing list