Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Build and Deploy
Build and Deploy [message #9087] Mon, 21 February 2005 21:59 Go to next message
Eclipse UserFriend
Originally posted by: mbatchelor.no_s_p_a_m.pentaho.com

Hey all,

I've been fussing with the head source, and have been unable to get anything
working within eclipse.

Has someone else had success with this, and can you point me to the light?

I have managed to get the ui.jar built (although with many modifications to
the ant build script to enable assertions and other things) and I do get a
"Business Intelligence and Reporting Tools" entry in the Eclipse plugins
"new" wizard. But, attempting to create a new Report or Report Project
results in a slew of exceptions in the Eclipse Error Log.

java.lang.NoClassDefFoundError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:2 74)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExte
nsion(ConfigurationElement.java:141)
....

and

java.lang.IllegalArgumentException:
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java :58)
at org.eclipse.core.internal.runtime.Assert.isLegal(Assert.java :42)
at org.eclipse.core.runtime.Status.setPlugin(Status.java:184)
at org.eclipse.core.runtime.Status.<init>(Status.java:79)
at
org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.handle Exception(Workbe
nchWizardNode.java:121)
at
org.eclipse.core.internal.runtime.InternalPlatform.handleExc eption(InternalP
latform.java:350)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:620)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
....snip...
Re: Build and Deploy [message #9110 is a reply to message #9087] Tue, 22 February 2005 01:34 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
Hi

I have posted a request to the BIRT news group too.

It seems that no one else have the same problem.....
.....there is no response to my posting ;-(

I think a "little" HowTo for extract/build/deploy
should be possible to create.....or?


greetings

Andreas
Re: Build and Deploy [message #9130 is a reply to message #9110] Tue, 22 February 2005 06:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
FreeGroup wrote:
> Hi
>
> I have posted a request to the BIRT news group too.
>
> It seems that no one else have the same problem.....
> ....there is no response to my posting ;-(
>
> I think a "little" HowTo for extract/build/deploy
> should be possible to create.....or?
>
>
> greetings
>
> Andreas
>
>
I would also like to take a look at the whole project but I'm not able
to build it :-(.
Re: Build and Deploy [message #9169 is a reply to message #9087] Tue, 22 February 2005 18:37 Go to previous messageGo to next message
Andreas Voss is currently offline Andreas VossFriend
Messages: 51
Registered: July 2009
Member
I had no problems to build. Here is what I did:

From CVS repository perspective I opened the top level directories
org.eclipse.birt.chart, org.eclipse.birt.core etc. Then I checked out
the subdirectories as new projects. Everything went fine, no manual
intervention required.

To run the report designer I had to put a current xerces to the endorsed
dirs, e.g. I start eclipse with -vmargs
-Djava.endorsed.dirs=c:\java\eclipse\endorsed

Andreas
Re: Build and Deploy [message #9209 is a reply to message #9169] Tue, 22 February 2005 21:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mbatchelor.no_s_p_a_m.pentaho.com

> From CVS repository perspective I opened the top level directories
> org.eclipse.birt.chart, org.eclipse.birt.core etc. Then I checked out
> the subdirectories as new projects. Everything went fine, no manual
> intervention required.
>
> To run the report designer I had to put a current xerces to the endorsed
> dirs, e.g. I start eclipse with -vmargs
> -Djava.endorsed.dirs=c:\java\eclipse\endorsed

Hmmm...

Ok, here's what I did.

a- I downloaded all sub-projects as you stated in a previously defined
workspace.

b- For the classes to compile, I had to configure workspace settings, go to
the "Compliance and Classfiles", and set the generated .class files
compatibility and source compatibility to 1.4. Without doing this, most of
the projects failed to compile due to asserts being throughout the code.
Now, everything compiles within eclipse.

c- I then copied all the directories to the plugins directory under eclipse.

d- I set the vmargs as you suggested, pointing to my Tomcat\common\endorsed
directory which has an xercesImpl.jar.

Choosing the Business Intelligence and Reporting Tools results in the
following exception:

java.lang.ClassNotFoundException:
org.eclipse.birt.report.designer.internal.ui.wizards.NewRepo rtProjectWizard
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader
..java:404)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(Abstra
ctClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
....snip...


That's when I figured that I needed to work through making the ant scripts
work. The ant scripts fail with similar issues with regards to the asserts
though. Once I finally made the ant scripts work (handling paths,
eclipse.home, and the -source and -target parameters), but those suffer from
other issues.

If in fact I've missed a step in this deployment, could you clue me in? Bear
in mind that I'm fairly new to the eclipse having been a JBuilder user for
years - so please go easy on me.

Thanks for any guidance you can provide.

Marc
Re: Build and Deploy [message #10385 is a reply to message #9130] Wed, 23 February 2005 03:06 Go to previous messageGo to next message
Wenfeng Li is currently offline Wenfeng LiFriend
Messages: 25
Registered: July 2009
Junior Member
Thanks for the feedback. We will publish such a HowTo when we refresh our
project web site at Eclipse.org next week.

Wenfeng

"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:cvej77$tuc$1@www.eclipse.org...
> FreeGroup wrote:
> > Hi
> >
> > I have posted a request to the BIRT news group too.
> >
> > It seems that no one else have the same problem.....
> > ....there is no response to my posting ;-(
> >
> > I think a "little" HowTo for extract/build/deploy
> > should be possible to create.....or?
> >
> >
> > greetings
> >
> > Andreas
> >
> >
> I would also like to take a look at the whole project but I'm not able
> to build it :-(.
Re: Build and Deploy [message #10448 is a reply to message #10385] Wed, 23 February 2005 10:57 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
*uff* ;-)

create!!


greetings

Andreas
Re: Build and Deploy [message #10479 is a reply to message #9209] Wed, 23 February 2005 13:03 Go to previous messageGo to next message
Andreas Voss is currently offline Andreas VossFriend
Messages: 51
Registered: July 2009
Member
Marc Batchelor wrote:

> c- I then copied all the directories to the plugins directory under eclipse.

Instead of that I started the plugins directly via Run-time Workbench.
Re: Build and Deploy [message #10544 is a reply to message #10479] Wed, 23 February 2005 23:54 Go to previous messageGo to next message
Wenbin He is currently offline Wenbin HeFriend
Messages: 35
Registered: July 2009
Member
Hi, Marc:

For build BIRT project issue, please refer to the following link:
http://www.eclipse.org/birt/attachments/birtbuild.html

For the deployment issue, can you elaborate a little bit more?

thanks,
wenbin



"Andreas Voss" <eclipse@a-voss.de> wrote in message
news:cvhuvu$d4h$1@www.eclipse.org...
> Marc Batchelor wrote:
>
> > c- I then copied all the directories to the plugins directory under
eclipse.
>
> Instead of that I started the plugins directly via Run-time Workbench.
Re: Build and Deploy [message #10641 is a reply to message #10544] Thu, 24 February 2005 06:17 Go to previous messageGo to next message
Scott Rosenbaum is currently offline Scott RosenbaumFriend
Messages: 425
Registered: July 2009
Senior Member
Wenbin,

Thanks for the build instructions, they were really easy to follow. I think
the deployment question comes from how do we take the jar files built during
the build process and either:

a) copy the files into our Eclipse plugin dir so that they are accessible
when running Eclipse natively or
b) run Eclipse in Run-time workbench so that we can test out / use the
freshly built jar file

I am not an expert on how to deploy and run plugins, actually I am your
basic newbie.

What I have found is that if I go to any build.properties file, I normally
use org.eclipse.birt.report.designer.core right click and select run, then
choose run Run-Time Workbench, then a new Eclipse runs and it appears that I
am using the new code that I brought down from the CVS server. I am unsure
if this is the correct way to run the workbench, but it seems to work.

I think if the build process doc was extended a little further to describe
how to run BIRT in a Run-time Workbench everything would be fine. For some
people, it may be useful to have a ant task that builds the plug-in
directories so that they can copy them to the Eclipse/Plugins dir and run
their Eclipse instance with the a build and not have to use a Run-time
version.

Scott Rosenbaum

"Wenbin He" <whe@actuate.com> wrote in message
news:cvj53a$hp8$1@www.eclipse.org...
> Hi, Marc:
>
> For build BIRT project issue, please refer to the following link:
> http://www.eclipse.org/birt/attachments/birtbuild.html
>
> For the deployment issue, can you elaborate a little bit more?
>
> thanks,
> wenbin
>
>
>
> "Andreas Voss" <eclipse@a-voss.de> wrote in message
> news:cvhuvu$d4h$1@www.eclipse.org...
> > Marc Batchelor wrote:
> >
> > > c- I then copied all the directories to the plugins directory under
> eclipse.
> >
> > Instead of that I started the plugins directly via Run-time Workbench.
>
>
Re: Build and Deploy [message #10671 is a reply to message #9087] Thu, 24 February 2005 16:30 Go to previous messageGo to next message
Francois-Xavier Le Louarn is currently offline Francois-Xavier Le LouarnFriend
Messages: 8
Registered: July 2009
Junior Member
Hi all,

Just wanted to share the minor modifs I had to make to get things going
after following the steps of the excellent build doc referred to by Wenbin:

a) In build.xml files, from various projects: I had to change the
"java_encoding" ant variables to something else than "gb2312" as it is
sometimes set (I have put "utf-8" since gb2312 was unavailable to my jdk);

b) In "org.eclipse.birt.report.viewer/build.xml", I have inserted a line
(l. 226) to make the "viewservlets" target work:

<pathelement path="${build.result.folder}/viewer/WEB-INF/lib/core.jar"/ >

Hope this helps,
FX.
Re: Build and Deploy [message #10736 is a reply to message #10671] Thu, 24 February 2005 18:59 Go to previous messageGo to next message
Mike Boyersmith is currently offline Mike BoyersmithFriend
Messages: 143
Registered: July 2009
Senior Member
François-Xavier Le Louarn wrote:
> Hi all,
>
> Just wanted to share the minor modifs I had to make to get things going
> after following the steps of the excellent build doc referred to by Wenbin:
>
> a) In build.xml files, from various projects: I had to change the
> "java_encoding" ant variables to something else than "gb2312" as it is
> sometimes set (I have put "utf-8" since gb2312 was unavailable to my jdk);
>
> b) In "org.eclipse.birt.report.viewer/build.xml", I have inserted a line
> (l. 226) to make the "viewservlets" target work:
>
> <pathelement path="${build.result.folder}/viewer/WEB-INF/lib/core.jar"/ >
>
> Hope this helps,
> FX.


yup I had to add that pathelement to my viewer build.xml, once I did
that, it resolved an internal compiler error I was getting. weird....
Re: Build and Deploy [message #133736 is a reply to message #10544] Tue, 21 February 2006 23:27 Go to previous message
Eclipse UserFriend
Originally posted by: cknight.mail.arc.nasa.gov

Wenbin, et. al.,

I would like to ask that the BIRT team identify which version of the DTP
code to check out. It seems that the DTP project is moving forward
quickly and (occasionally) breaking the code in their HEAD and/or
causing incompatibility issues with BIRT.

Preferably, could you tag the versions of code that have been released
in both the BIRT projects and the DTP projects so that it's easy to grab
the released versions of everything?

Wenbin He wrote:
> Hi, Marc:
>
> For build BIRT project issue, please refer to the following link:
> http://www.eclipse.org/birt/attachments/birtbuild.html
>
> For the deployment issue, can you elaborate a little bit more?
>
> thanks,
> wenbin
>
>
>
> "Andreas Voss" <eclipse@a-voss.de> wrote in message
> news:cvhuvu$d4h$1@www.eclipse.org...
>> Marc Batchelor wrote:
>>
>>> c- I then copied all the directories to the plugins directory under
> eclipse.
>> Instead of that I started the plugins directly via Run-time Workbench.
>
>
Previous Topic:FireFox & ViewerServlet.
Next Topic:Problems with params in drilldown reports
Goto Forum:
  


Current Time: Thu Dec 26 15:35:34 GMT 2024

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

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

Back to the top