Skip to main content



      Home
Home » Archived » BIRT » Birt2.1.1 problem with Xerces in Weblogic
Birt2.1.1 problem with Xerces in Weblogic [message #210553] Wed, 10 January 2007 20:33 Go to next message
Eclipse UserFriend
The Birt example app WebViewerExample can run correctly in Weblogic8.1.5
and Weblogic9.2.
But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
WebViewerExample\WEB-INF\lib directory, Birt show me
"java.lang.ClassCastException" message. Even i use the same version as
"WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the same
error occured.

How to resolve this problem, for my web application need Xerces jars at
\WEB-INF\lib directory.

There's no this problem in Tomcat.
Re: Birt2.1.1 problem with Xerces in Weblogic [message #210658 is a reply to message #210553] Thu, 11 January 2007 10:58 Go to previous messageGo to next message
Eclipse UserFriend
In fact, BIRT also use Xerces, so adding one more lib in web-inf is going
to cause some problems. BIRT is using the OSGi classloading to load Xerces,
so I would suggest you copy the xerces jar lib from the platform/plugins
dir in the WEB-INF/lib. Normally it should work. Let me know if you still
have problems.

Thanks,

David

> The Birt example app WebViewerExample can run correctly in
> Weblogic8.1.5
> and Weblogic9.2.
> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
> WebViewerExample\WEB-INF\lib directory, Birt show me
> "java.lang.ClassCastException" message. Even i use the same version as
> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the same
> error occured.
> How to resolve this problem, for my web application need Xerces jars
> at \WEB-INF\lib directory.
>
> There's no this problem in Tomcat.
>
Re: Birt2.1.1 problem with Xerces in Weblogic [message #211006 is a reply to message #210658] Thu, 11 January 2007 20:39 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your help.

I've tried as you say, but it has the same error.

In fact, if I delete the platform/plugins/org.apache.xerces, the same
error occured; and if I delete platform/plugins/org.apache.xerces
directory and delete Xerces lib from WEB-INF/lib also, Birt works correctly.

I surmise that some function cann't use Xerces lib from WEB-INF/lib,it's
some problem about ClassLoader. But I cann't know more about this
problem. How can I resolve this problem? Is it a bug of Birt(or Xerces,
or digester, or other component)?

David Michonneau :
> In fact, BIRT also use Xerces, so adding one more lib in web-inf is
> going to cause some problems. BIRT is using the OSGi classloading to
> load Xerces, so I would suggest you copy the xerces jar lib from the
> platform/plugins dir in the WEB-INF/lib. Normally it should work. Let me
> know if you still have problems.
>
> Thanks,
>
> David
>
>> The Birt example app WebViewerExample can run correctly in
>> Weblogic8.1.5
>> and Weblogic9.2.
>> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
>> WebViewerExample\WEB-INF\lib directory, Birt show me
>> "java.lang.ClassCastException" message. Even i use the same version as
>> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the same
>> error occured.
>> How to resolve this problem, for my web application need Xerces jars
>> at \WEB-INF\lib directory.
>>
>> There's no this problem in Tomcat.
>>
>
>
Re: Birt2.1.1 problem with Xerces in Weblogic [message #211168 is a reply to message #211006] Fri, 12 January 2007 07:23 Go to previous messageGo to next message
Eclipse UserFriend
Are you using the weblogic.xml from the runtime package? It looks like it's
loading classes from weblogic internal libraries, which conflict with the
BIRT ones. The normal fix is to have prefer-web-inf-classes set to true in
weblogic.xml of the web app.

Thanks,

David

> Thanks for your help.
>
> I've tried as you say, but it has the same error.
>
> In fact, if I delete the platform/plugins/org.apache.xerces, the same
> error occured; and if I delete platform/plugins/org.apache.xerces
> directory and delete Xerces lib from WEB-INF/lib also, Birt works
> correctly.
>
> I surmise that some function cann't use Xerces lib from
> WEB-INF/lib,it's some problem about ClassLoader. But I cann't know
> more about this problem. How can I resolve this problem? Is it a bug
> of Birt(or Xerces, or digester, or other component)?
>
> David Michonneau :
>
>> In fact, BIRT also use Xerces, so adding one more lib in web-inf is
>> going to cause some problems. BIRT is using the OSGi classloading to
>> load Xerces, so I would suggest you copy the xerces jar lib from the
>> platform/plugins dir in the WEB-INF/lib. Normally it should work. Let
>> me know if you still have problems.
>>
>> Thanks,
>>
>> David
>>
>>> The Birt example app WebViewerExample can run correctly in
>>> Weblogic8.1.5
>>> and Weblogic9.2.
>>> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
>>> WebViewerExample\WEB-INF\lib directory, Birt show me
>>> "java.lang.ClassCastException" message. Even i use the same version
>>> as
>>> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the
>>> same
>>> error occured.
>>> How to resolve this problem, for my web application need Xerces jars
>>> at \WEB-INF\lib directory.
>>> There's no this problem in Tomcat.
>>>
Re: Birt2.1.1 problem with Xerces in Weblogic [message #211222 is a reply to message #210553] Fri, 12 January 2007 09:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

We are trying to get BIRT211 running with weblogic 8.1.5 and have not
been able to do so. If possible, please share any special customization
or configuration that was required to get it working?

Thanks,
shweta

perseusli wrote:
> The Birt example app WebViewerExample can run correctly in Weblogic8.1.5
> and Weblogic9.2.
> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
> WebViewerExample\WEB-INF\lib directory, Birt show me
> "java.lang.ClassCastException" message. Even i use the same version as
> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the same
> error occured.
>
> How to resolve this problem, for my web application need Xerces jars at
> \WEB-INF\lib directory.
>
> There's no this problem in Tomcat.
Re: Birt2.1.1 problem with Xerces in Weblogic [message #211499 is a reply to message #211168] Mon, 15 January 2007 01:10 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your fervor.

The WebViewerExample is a well defined application. The
prefer-web-inf-classes parameter is already exist in the sample.

I think this is a bug, and I've submit a bug report to Birt project.
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=170299

David Michonneau :
> Are you using the weblogic.xml from the runtime package? It looks like
> it's loading classes from weblogic internal libraries, which conflict
> with the BIRT ones. The normal fix is to have prefer-web-inf-classes set
> to true in weblogic.xml of the web app.
>
> Thanks,
>
> David
>
>> Thanks for your help.
>>
>> I've tried as you say, but it has the same error.
>>
>> In fact, if I delete the platform/plugins/org.apache.xerces, the same
>> error occured; and if I delete platform/plugins/org.apache.xerces
>> directory and delete Xerces lib from WEB-INF/lib also, Birt works
>> correctly.
>>
>> I surmise that some function cann't use Xerces lib from
>> WEB-INF/lib,it's some problem about ClassLoader. But I cann't know
>> more about this problem. How can I resolve this problem? Is it a bug
>> of Birt(or Xerces, or digester, or other component)?
>>
>> David Michonneau :
>>
>>> In fact, BIRT also use Xerces, so adding one more lib in web-inf is
>>> going to cause some problems. BIRT is using the OSGi classloading to
>>> load Xerces, so I would suggest you copy the xerces jar lib from the
>>> platform/plugins dir in the WEB-INF/lib. Normally it should work. Let
>>> me know if you still have problems.
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>> The Birt example app WebViewerExample can run correctly in
>>>> Weblogic8.1.5
>>>> and Weblogic9.2.
>>>> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
>>>> WebViewerExample\WEB-INF\lib directory, Birt show me
>>>> "java.lang.ClassCastException" message. Even i use the same version
>>>> as
>>>> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the
>>>> same
>>>> error occured.
>>>> How to resolve this problem, for my web application need Xerces jars
>>>> at \WEB-INF\lib directory.
>>>> There's no this problem in Tomcat.
>>>>
>
>
Re: Birt2.1.1 problem with Xerces in Weblogic [message #211507 is a reply to message #211222] Mon, 15 January 2007 05:18 Go to previous message
Eclipse UserFriend
The WebViewerExample can run with weblogic 8.1.5 without any modify. You
can try it.

shweta kautia :
> Hi,
>
> We are trying to get BIRT211 running with weblogic 8.1.5 and have not
> been able to do so. If possible, please share any special customization
> or configuration that was required to get it working?
>
> Thanks,
> shweta
>
> perseusli wrote:
>> The Birt example app WebViewerExample can run correctly in Weblogic8.1.5
>> and Weblogic9.2.
>> But if I put Xerces(xml-apis.jar,xercesImpl.jar) into
>> WebViewerExample\WEB-INF\lib directory, Birt show me
>> "java.lang.ClassCastException" message. Even i use the same version as
>> "WebViewerExample\WEB-INF\platform\plugins\org.apache.xerces ",the same
>> error occured.
>>
>> How to resolve this problem, for my web application need Xerces jars at
>> \WEB-INF\lib directory.
>>
>> There's no this problem in Tomcat.
Previous Topic:Inserting data into text using <value-of>
Next Topic:Deployed WebViewer in SWING Application
Goto Forum:
  


Current Time: Tue Jul 22 23:55:11 EDT 2025

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

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

Back to the top