Home » Archived » BIRT » Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0)
Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #120086] |
Mon, 30 January 2006 12:12  |
Eclipse User |
|
|
|
Originally posted by: nicolas._no.spam_legrain.fr
hi,
I 've updated my installation from birt v1.0.1 to v2.0.
At the beginning, I've got an "HTTP internal error 500" when I launch the
preview from eclipse. Then, I restart Eclipse with the -clean option and now
the preview works well from eclipse.
But, I launch my RCP application, if I open the preview (from my application), I
always got this error : internal error 500
HTTP Status 500 -
>
> ------------------------------------------------------------ --------------------
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
I've got the third party jars, I've make the -clean and it works in eclipse but
not in my application. I really don't understand.
The only thing that I haven't done yet is suppressing all the folders of the
v1.0.1 of birt in my eclipse directory. (But if it works in eclipse, ...)
Thanks for your help.
|
|
|
Re: Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #120202 is a reply to message #120086] |
Mon, 30 January 2006 15:04   |
Eclipse User |
|
|
|
The RCP also requires the same additional third-party libraries that BIRT
Report Designer does.
If you've already loaded these, you can also start the RCP Report Designer
using the -clean option. This should solve your problem.
"nm" <nicolas@_no.spam_legrain.fr> wrote in message
news:drlhg5$poc$1@utils.eclipse.org...
> hi,
> I 've updated my installation from birt v1.0.1 to v2.0.
> At the beginning, I've got an "HTTP internal error 500" when I launch the
> preview from eclipse. Then, I restart Eclipse with the -clean option and
> now
> the preview works well from eclipse.
> But, I launch my RCP application, if I open the preview (from my
> application), I
> always got this error : internal error 500
>
> HTTP Status 500 -
> >
> > ------------------------------------------------------------ --------------------
> >
> > type Exception report
> >
> > message
> >
> > description The server encountered an internal error () that prevented
> > it
> > from fulfilling this request.
>
> I've got the third party jars, I've make the -clean and it works in
> eclipse but not in my application. I really don't understand.
> The only thing that I haven't done yet is suppressing all the folders of
> the v1.0.1 of birt in my eclipse directory. (But if it works in eclipse,
> ...)
>
> Thanks for your help.
|
|
|
Re: Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #120688 is a reply to message #120202] |
Tue, 31 January 2006 03:34   |
Eclipse User |
|
|
|
Originally posted by: nicolas._no.spam_legrain.fr
Thank you for your answer.
The problem is that I am talking about my own RCP application (which embed birt)
not the "RCP Report Designer". I don't use the "RCP Report Designer".
I've made a simple test .rptdesign with eclipse (not RCP Report Designer).
In eclipse, the preview works but when I call the preview from my RCP
application it fails.
When I run my application from eclipse, I think it use the Birt's plugin from my
eclipse directory with the third-party libraries, no?
If I run the application out of eclipse (after exporting it) I have the problem.
I've also tried to use -clean option when I launch my application.
Paul Reeves a écrit :
> The RCP also requires the same additional third-party libraries that BIRT
> Report Designer does.
>
> If you've already loaded these, you can also start the RCP Report Designer
> using the -clean option. This should solve your problem.
>
>
> "nm" <nicolas@_no.spam_legrain.fr> wrote in message
> news:drlhg5$poc$1@utils.eclipse.org...
>> hi,
>> I 've updated my installation from birt v1.0.1 to v2.0.
>> At the beginning, I've got an "HTTP internal error 500" when I launch the
>> preview from eclipse. Then, I restart Eclipse with the -clean option and
>> now
>> the preview works well from eclipse.
>> But, I launch my RCP application, if I open the preview (from my
>> application), I
>> always got this error : internal error 500
>>
>> HTTP Status 500 -
>>> ------------------------------------------------------------ --------------------
>>>
>>> type Exception report
>>>
>>> message
>>>
>>> description The server encountered an internal error () that prevented
>>> it
>>> from fulfilling this request.
>> I've got the third party jars, I've make the -clean and it works in
>> eclipse but not in my application. I really don't understand.
>> The only thing that I haven't done yet is suppressing all the folders of
>> the v1.0.1 of birt in my eclipse directory. (But if it works in eclipse,
>> ...)
>>
>> Thanks for your help.
>
>
|
|
|
Re: Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #120748 is a reply to message #120688] |
Tue, 31 January 2006 05:14   |
Eclipse User |
|
|
|
Originally posted by: nicolas._no.spam_legrain.fr
Application server stack trace :
exception
javax.servlet.ServletException: L''exécution de la servlet a lancé une exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
cause mère
java.lang.LinkageError: Class javax/servlet/ServletContext violates loader
constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:68)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
at
org.eclipse.birt.core.framework.PlatformServletContext.getFi leList(PlatformServletContext.java:58)
at
org.eclipse.birt.core.framework.server.ServerPlatform.<init >(ServerPlatform.java:55)
at org.eclipse.birt.core.framework.Platform.initialize(Platform .java:85)
at org.eclipse.birt.report.engine.api.ReportEngine.<init>(ReportEngine.java:80)
at
org.eclipse.birt.report.services.ReportEngineService.setEngi neContext(Unknown
Source)
at org.eclipse.birt.report.viewer.servlet.ViewerServlet.doGet(U nknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
nm a écrit :
> Thank you for your answer.
> The problem is that I am talking about my own RCP application (which
> embed birt)
> not the "RCP Report Designer". I don't use the "RCP Report Designer".
> I've made a simple test .rptdesign with eclipse (not RCP Report Designer).
> In eclipse, the preview works but when I call the preview from my RCP
> application it fails.
> When I run my application from eclipse, I think it use the Birt's plugin
> from my eclipse directory with the third-party libraries, no?
> If I run the application out of eclipse (after exporting it) I have the
> problem.
> I've also tried to use -clean option when I launch my application.
>
> Paul Reeves a écrit :
>> The RCP also requires the same additional third-party libraries that
>> BIRT Report Designer does.
>>
>> If you've already loaded these, you can also start the RCP Report
>> Designer using the -clean option. This should solve your problem.
>>
>>
>> "nm" <nicolas@_no.spam_legrain.fr> wrote in message
>> news:drlhg5$poc$1@utils.eclipse.org...
>>> hi,
>>> I 've updated my installation from birt v1.0.1 to v2.0.
>>> At the beginning, I've got an "HTTP internal error 500" when I launch
>>> the preview from eclipse. Then, I restart Eclipse with the -clean
>>> option and now
>>> the preview works well from eclipse.
>>> But, I launch my RCP application, if I open the preview (from my
>>> application), I
>>> always got this error : internal error 500
>>>
>>> HTTP Status 500 -
>>>> ------------------------------------------------------------ --------------------
>>>>
>>>>
>>>> type Exception report
>>>>
>>>> message
>>>>
>>>> description The server encountered an internal error () that
>>>> prevented it
>>>> from fulfilling this request.
>>> I've got the third party jars, I've make the -clean and it works in
>>> eclipse but not in my application. I really don't understand.
>>> The only thing that I haven't done yet is suppressing all the folders
>>> of the v1.0.1 of birt in my eclipse directory. (But if it works in
>>> eclipse, ...)
>>>
>>> Thanks for your help.
>>
>>
|
|
|
Re: Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #121613 is a reply to message #120688] |
Tue, 31 January 2006 10:05   |
Eclipse User |
|
|
|
Originally posted by: nicolas._no.spam_legrain.fr
I think I've found the origin of my problem.
I don't launch the "birt viewer" webapp well in the embedded tomcat.
But I don't know how to do this.
Here is the code I use :
//This fails (but works with birt 1.0.1)
WebappManager.start("birt" , "org.eclipse.birt.report.viewer", new
Path("/birt"));
String url =
"http://"+WebappManager.getHost()+":"+WebappManager.getPort()+ "/birt/";
url+="run?__report=C:/myproject/new_report.rptdesign";
org.eclipse.birt.report.viewer.browsers.BrowserManager.getIn stance().createBrowser(false).displayURL(url);
If I don't start the webapp myself and I use this code:
WebViewer.display("C:/myproject/new_report.rptdesign", WebViewer.HTML);
I can view the report (but I've oda problems if i use jdbc).
So I think the method I use to start the viewer webapp isn't good.
What should I do?
nm a écrit :
> Thank you for your answer.
> The problem is that I am talking about my own RCP application (which
> embed birt)
> not the "RCP Report Designer". I don't use the "RCP Report Designer".
> I've made a simple test .rptdesign with eclipse (not RCP Report Designer).
> In eclipse, the preview works but when I call the preview from my RCP
> application it fails.
> When I run my application from eclipse, I think it use the Birt's plugin
> from my eclipse directory with the third-party libraries, no?
> If I run the application out of eclipse (after exporting it) I have the
> problem.
> I've also tried to use -clean option when I launch my application.
>
> Paul Reeves a écrit :
>> The RCP also requires the same additional third-party libraries that
>> BIRT Report Designer does.
>>
>> If you've already loaded these, you can also start the RCP Report
>> Designer using the -clean option. This should solve your problem.
>>
>>
>> "nm" <nicolas@_no.spam_legrain.fr> wrote in message
>> news:drlhg5$poc$1@utils.eclipse.org...
>>> hi,
>>> I 've updated my installation from birt v1.0.1 to v2.0.
>>> At the beginning, I've got an "HTTP internal error 500" when I launch
>>> the preview from eclipse. Then, I restart Eclipse with the -clean
>>> option and now
>>> the preview works well from eclipse.
>>> But, I launch my RCP application, if I open the preview (from my
>>> application), I
>>> always got this error : internal error 500
>>>
>>> HTTP Status 500 -
>>>> ------------------------------------------------------------ --------------------
>>>>
>>>>
>>>> type Exception report
>>>>
>>>> message
>>>>
>>>> description The server encountered an internal error () that
>>>> prevented it
>>>> from fulfilling this request.
>>> I've got the third party jars, I've make the -clean and it works in
>>> eclipse but not in my application. I really don't understand.
>>> The only thing that I haven't done yet is suppressing all the folders
>>> of the v1.0.1 of birt in my eclipse directory. (But if it works in
>>> eclipse, ...)
>>>
>>> Thanks for your help.
>>
>>
|
|
| |
Re: Error in viewer when calling it from RCP but not from eclipse (with Birt 2.0) [message #122126 is a reply to message #122021] |
Tue, 31 January 2006 16:49  |
Eclipse User |
|
|
|
Originally posted by: nicolas._no.spam_legrain.fr
If I launch the webapp with
WebappManager.start("birt" , "org.eclipse.birt.report.viewer", new
Path("/birt"));
it doesn't work => http error 500
but if I use
WebappAccessor.start("birt" , "org.eclipse.birt.report.viewer", new
>> Path("/"));
it works.
Jason Weathersby a écrit :
> One of the things that changed between 1.0.1 and 2.0 is that the viewer
> plugin doesnt have the plugins folder any longer.
> If you are deploying it without all the other BIRT Plugins, you will need to
> create the older style plugins directory beneath the the
> Viewer plugin or just add the required ones directly to the Eclipse/plugins
> folder.
>
> Jason
>
> "nm" <nicolas@_no.spam_legrain.fr> wrote in message
> news:drnub3$rm3$1@utils.eclipse.org...
>> I think I've found the origin of my problem.
>> I don't launch the "birt viewer" webapp well in the embedded tomcat.
>> But I don't know how to do this.
>> Here is the code I use :
>>
>> //This fails (but works with birt 1.0.1)
>> WebappManager.start("birt" , "org.eclipse.birt.report.viewer", new
>> Path("/birt"));
>> String url =
>> "http://"+WebappManager.getHost()+":"+WebappManager.getPort()+ "/birt/";
>> url+="run?__report=C:/myproject/new_report.rptdesign";
>> org.eclipse.birt.report.viewer.browsers.BrowserManager.getIn stance().createBrowser(false).displayURL(url);
>>
>>
>> If I don't start the webapp myself and I use this code:
>> WebViewer.display("C:/myproject/new_report.rptdesign", WebViewer.HTML); I
>> can view the report (but I've oda problems if i use jdbc).
>>
>> So I think the method I use to start the viewer webapp isn't good.
>> What should I do?
>>
>> nm a écrit :
>>> Thank you for your answer.
>>> The problem is that I am talking about my own RCP application (which
>>> embed birt)
>>> not the "RCP Report Designer". I don't use the "RCP Report Designer".
>>> I've made a simple test .rptdesign with eclipse (not RCP Report
>>> Designer).
>>> In eclipse, the preview works but when I call the preview from my RCP
>>> application it fails.
>>> When I run my application from eclipse, I think it use the Birt's plugin
>>> from my eclipse directory with the third-party libraries, no?
>>> If I run the application out of eclipse (after exporting it) I have the
>>> problem.
>>> I've also tried to use -clean option when I launch my application.
>>>
>>> Paul Reeves a écrit :
>>>> The RCP also requires the same additional third-party libraries that
>>>> BIRT Report Designer does.
>>>>
>>>> If you've already loaded these, you can also start the RCP Report
>>>> Designer using the -clean option. This should solve your problem.
>>>>
>>>>
>>>> "nm" <nicolas@_no.spam_legrain.fr> wrote in message
>>>> news:drlhg5$poc$1@utils.eclipse.org...
>>>>> hi,
>>>>> I 've updated my installation from birt v1.0.1 to v2.0.
>>>>> At the beginning, I've got an "HTTP internal error 500" when I launch
>>>>> the preview from eclipse. Then, I restart Eclipse with the -clean
>>>>> option and now
>>>>> the preview works well from eclipse.
>>>>> But, I launch my RCP application, if I open the preview (from my
>>>>> application), I
>>>>> always got this error : internal error 500
>>>>>
>>>>> HTTP Status 500 -
>>>>>> ------------------------------------------------------------ --------------------
>>>>>>
>>>>>>
>>>>>> type Exception report
>>>>>>
>>>>>> message
>>>>>>
>>>>>> description The server encountered an internal error () that prevented
>>>>>> it
>>>>>> from fulfilling this request.
>>>>> I've got the third party jars, I've make the -clean and it works in
>>>>> eclipse but not in my application. I really don't understand.
>>>>> The only thing that I haven't done yet is suppressing all the folders
>>>>> of the v1.0.1 of birt in my eclipse directory. (But if it works in
>>>>> eclipse, ...)
>>>>>
>>>>> Thanks for your help.
>>>>
>
>
|
|
|
Goto Forum:
Current Time: Wed Apr 30 09:12:51 EDT 2025
Powered by FUDForum. Page generated in 0.04844 seconds
|