[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: Integrating XMLBeans into an Eclipse plugin
From:       "Cezar Andrei" <cezar () bea ! com>
Date:       2005-07-29 16:33:53
Message-ID: 4B2B4C417991364996F035E1EE39E2E10333C8EC () uskiex01 ! amer ! bea ! com
[Download RAW message or body]

Don and Ajith, is your Eclipse plug-in posted somewhere on the web? Can
we put up a link to it on our website?

 

Cezar

 

  _____  

From: Don Stewart [mailto:Don.Stewart@corizon.com] 
Sent: Friday, July 29, 2005 4:17 AM
To: dev@xmlbeans.apache.org; Ajith Ranabahu
Subject: RE: Integrating XMLBeans into an Eclipse plugin

 

I have a working Eclipse plugin that builds Xmlbeans output using the
internal Java  routines called by scomp.

 

I'm not seeing any class loader issues so if you could send more detail
then maybe we can shed some light on it.

 

Your welcome to the code for the plugin if you think it might help

 

 

Regards

 

Don

 

  _____  

From: Ajith Ranabahu [mailto:ajith.ranabahu@gmail.com] 
Sent: 29 July 2005 05:30
To: dev@xmlbeans.apache.org
Subject: Re: Integrating XMLBeans into an Eclipse plugin

Hi David J,
 I'm a little unfamilair with the terminology here (TCCL ?) but would it
be possible for you to explain what you did in a bit more detail ?. We
have the same problem in the Eclipse plugin and in the ant task  (when
run inside maven). One of the guys here is making an Idea plugin and it
seems to have the same problem !

On 7/20/05, David Jencks <djencks@gluecode.com> wrote: 

I fixed my problems by setting the TCCL to include all the xmlbeans
generated classes I expected to use.  This cl also included xmlbeans 
itself.

thanks
david jencks

On Jul 19, 2005, at 12:36 PM, Radu Preotiuc-Pietro wrote:

> The fact that the same code works fine when invoked from outside
> Eclipse leads me to believe that there is some classloader setup 
> issue. So yeah, probably the TCCL needs to be set up so that xbean.jar
> is accessible. Or at the very least to have _some_ CL with the Schema
> resources in it.
>
> Radu
>
> -----Original Message----- 
> From: David Jencks [mailto:david_jencks@yahoo.com]
> Sent: Tuesday, July 19, 2005 11:59 AM
> To: dev@xmlbeans.apache.org 
> Subject: Re: Integrating XMLBeans into an Eclipse plugin
>
>
>
> On Jul 19, 2005, at 4:13 AM, Ajith Ranabahu wrote:
>
>> Hi all,
>>  I am a developer with the Apache Axis2 project. Some of you might 
>> already know that we are using XMLBeans to do our data binding and
the
>> integration with XMLBeans has been quite successful despite several
>> problems . I am working mostly on the tooling part these days and 
>> would appreciate a pointer/suggestion to some of these issues I've
>> come across when dealing with XMLBeans. After all my expertise is
>> mainly in Web Services :).
>>  Ok here goes 
>>  1. The core tool that has XMLBeans integrated works fine. However
>> when I put the tool as an Eclipse plugin, it seizes to work. in more
>> accurate terms it throws out an Exception saying 'The 0th supplied 
>> input is not a schema document: its type is N='. I've made sure that
a
>> DOM element representing the schema is passed onto XMLBeans. The
funny
>> thing is the code works fine when invoked outside Eclipse. 
>
> I'm struggling with similar problems in geronimo right now.  Does this
> have to do with making sure the appropriate SchemaTypeLoader is
> available from the TCCL?  What is the best way to do this?  Are there 
> any other ways?
>
> thanks
> david jencks
>>  2. Since Axis2 is based on StAX, we have a heavy dependency on the
>> XML Stream reader. However the returned XML Stream reader has it's 
>> initial pointer to START_ELEMENT not START_DOCUMENT. Our builder code
>> expects a START_DOCUMENT event initially. We've overcome the problem
>> with a wrapper but it's not really elegant in terms of code. Was the 
>> placement of the initial pointer done deliberately for a reason ?
>>
>>  Guess thats all for now. Any pointer or a helpful hint is
appreciated
>>
>>  Thanks
>> --
>> Ajith Ranabahu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org 
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org




-- 
Ajith Ranabahu 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Don and Ajith, is your Eclipse plug-in
posted somewhere on the web? Can we put up a link to it on our \
website?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Cezar<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Don Stewart
[mailto:Don.Stewart@corizon.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, July 29, 2005 4:17
AM<br>
<b><span style='font-weight:bold'>To:</span></b> dev@xmlbeans.apache.org; Ajith
Ranabahu<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: Integrating XMLBeans
into an Eclipse plugin</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I have a working Eclipse plugin that
builds Xmlbeans output using the internal&nbsp;Java&nbsp; routines called by
scomp.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>I'm not seeing any class loader issues so
if you could send more detail then maybe we can shed some light on \
it.</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Your welcome to the code for the plugin if
you think it might help</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Regards</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Don</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabIndex=-1>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
 size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Ajith
Ranabahu [mailto:ajith.ranabahu@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 29 July 2005 05:30<br>
<b><span style='font-weight:bold'>To:</span></b> dev@xmlbeans.apache.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Integrating XMLBeans
into an Eclipse plugin</span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi David J,<br>
&nbsp;I'm a little unfamilair with the terminology here (TCCL ?) but would it
be possible for you to explain what you did in a bit more detail ?. We have the
same problem in the Eclipse plugin and in the ant task&nbsp; (when run inside
maven). One of the guys here is making an Idea plugin and it seems to have the
same problem !<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 7/20/05, <b><span style='font-weight:bold'>David
Jencks</span></b> &lt;<a \
                href="mailto:djencks@gluecode.com">djencks@gluecode.com</a>&gt;
wrote: </span></font></span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I fixed my problems by
setting the TCCL to include all the xmlbeans<br>
generated classes I expected to use.&nbsp;&nbsp;This cl also included xmlbeans <br>
itself.<br>
<br>
thanks<br>
david jencks<br>
<br>
On Jul 19, 2005, at 12:36 PM, Radu Preotiuc-Pietro wrote:<br>
<br>
&gt; The fact that the same code works fine when invoked from outside<br>
&gt; Eclipse leads me to believe that there is some classloader setup <br>
&gt; issue. So yeah, probably the TCCL needs to be set up so that xbean.jar<br>
&gt; is accessible. Or at the very least to have _some_ CL with the Schema<br>
&gt; resources in it.<br>
&gt;<br>
&gt; Radu<br>
&gt;<br>
&gt; -----Original Message----- <br>
&gt; From: David Jencks [mailto:<a \
href="mailto:david_jencks@yahoo.com">david_jencks@yahoo.com</a>]<br> &gt; Sent: \
Tuesday, July 19, 2005 11:59 AM<br> &gt; To: <a \
href="mailto:dev@xmlbeans.apache.org">dev@xmlbeans.apache.org </a><br> &gt; Subject: \
Re: Integrating XMLBeans into an Eclipse plugin<br> &gt;<br>
&gt;<br>
&gt;<br>
&gt; On Jul 19, 2005, at 4:13 AM, Ajith Ranabahu wrote:<br>
&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;&nbsp;&nbsp;I am a developer with the Apache Axis2 project. Some of you
might <br>
&gt;&gt; already know that we are using XMLBeans to do our data binding and the<br>
&gt;&gt; integration with XMLBeans has been quite successful despite several<br>
&gt;&gt; problems . I am working mostly on the tooling part these days and <br>
&gt;&gt; would appreciate a pointer/suggestion to some of these issues I've<br>
&gt;&gt; come across when dealing with XMLBeans. After all my expertise is<br>
&gt;&gt; mainly in Web Services :).<br>
&gt;&gt;&nbsp;&nbsp;Ok here goes <br>
&gt;&gt;&nbsp;&nbsp;1. The core tool that has XMLBeans integrated works fine.
However<br>
&gt;&gt; when I put the tool as an Eclipse plugin, it seizes to work. in more<br>
&gt;&gt; accurate terms it throws out an Exception saying 'The 0th supplied <br>
&gt;&gt; input is not a schema document: its type is N='. I've made sure that a<br>
&gt;&gt; DOM element representing the schema is passed onto XMLBeans. The funny<br>
&gt;&gt; thing is the code works fine when invoked outside Eclipse. <br>
&gt;<br>
&gt; I'm struggling with similar problems in geronimo right
now.&nbsp;&nbsp;Does this<br>
&gt; have to do with making sure the appropriate SchemaTypeLoader is<br>
&gt; available from the TCCL?&nbsp;&nbsp;What is the best way to do
this?&nbsp;&nbsp;Are there <br>
&gt; any other ways?<br>
&gt;<br>
&gt; thanks<br>
&gt; david jencks<br>
&gt;&gt;&nbsp;&nbsp;2. Since Axis2 is based on StAX, we have a heavy dependency
on the<br>
&gt;&gt; XML Stream reader. However the returned XML Stream reader has it's <br>
&gt;&gt; initial pointer to START_ELEMENT not START_DOCUMENT. Our builder code<br>
&gt;&gt; expects a START_DOCUMENT event initially. We've overcome the problem<br>
&gt;&gt; with a wrapper but it's not really elegant in terms of code. Was the <br>
&gt;&gt; placement of the initial pointer done deliberately for a reason ?<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;Guess thats all for now. Any pointer or a helpful hint is
appreciated<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;Thanks<br>
&gt;&gt; --<br>
&gt;&gt; Ajith Ranabahu<br>
&gt;<br>
&gt;<br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: <a
href="mailto:dev-unsubscribe@xmlbeans.apache.org">dev-unsubscribe@xmlbeans.apache.org
</a><br>
&gt; For additional commands, e-mail: <a
href="mailto:dev-help@xmlbeans.apache.org">dev-help@xmlbeans.apache.org</a><br>
&gt;<br>
&gt;<br>
&gt; ---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: <a
href="mailto:dev-unsubscribe@xmlbeans.apache.org">dev-unsubscribe@xmlbeans.apache.org</a><br>
 &gt; For additional commands, e-mail: <a
href="mailto:dev-help@xmlbeans.apache.org">dev-help@xmlbeans.apache.org </a><br>
&gt;<br>
<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:dev-unsubscribe@xmlbeans.apache.org">dev-unsubscribe@xmlbeans.apache.org</a><br>
 For additional commands, e-mail: <a \
href="mailto:dev-help@xmlbeans.apache.org">dev-help@xmlbeans.apache.org</a><o:p></o:p></span></font></p>


</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Ajith Ranabahu <o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic