Build and Deploy [message #9087] |
Mon, 21 February 2005 21:59 |
Eclipse User |
|
|
|
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 #9209 is a reply to message #9169] |
Tue, 22 February 2005 21:25 |
Eclipse User |
|
|
|
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 #10641 is a reply to message #10544] |
Thu, 24 February 2005 06:17 |
Scott Rosenbaum 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 #133736 is a reply to message #10544] |
Tue, 21 February 2006 23:27 |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04699 seconds