Plug-in not working in deployment [message #289978] |
Tue, 16 August 2005 09:19  |
Eclipse User |
|
|
|
Originally posted by: parsuram.panigrahi.wipro.com
I have developed a plug in for eclipse for my project. It is adding
some fields to an XML file. It has a view. The view has some editable
components, where user can edit it and click on add. Once user click
on add button, the values user has enetered will be added to an XML
file after being formated.
It is working fine during the development/test mode. After that I have
exported the files to a zip file, and unziped it and put it in
$ECLIPSE_HOME\plugin folder. Now it is not working as expected.
When I open the prospective it opens the views. When I click on add
button it validates the fields. However if all fields are valid it
does not add it.
What is wrong with deploying the plug-in?
I have done some more debuging. It seems the code fails at a the
following line
org.apache.xml.serialize.OutputFormat format = new OutputFormat();
|
|
|
|
|
Re: Plug-in not working in deployment [message #290022 is a reply to message #290010] |
Wed, 17 August 2005 10:19   |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
When deployed, by default, there is no console to write to, so that is
why sysout didn't work.
To get a console you need to start eclipse from a command line window,
and you need to use the option -consoleLog That should stop the
squelching of the system out.
AS for the error, what was you catch block catching? The error could of
been a java.lang.Error instead of a RuntimeException.
Parsuram Panigrahi wrote:
> Rich Kulp wrote:
>
>> What's the failure?
>
>
>>>
>>> I have done some more debuging. It seems the code fails at a the
>>> following line
>>>
>>> org.apache.xml.serialize.OutputFormat format = new OutputFormat();
>>>
>>>
>
> I have 2 problems. 1) Whatever I want to print on the console, I used
> System.out.printLn("test"); to print test to console while developing.
> However samething don't print to console after deploying.
>
> However MessageDialog.openConfirm(shell, String, String) works after
> deploying it. So I used it for debuging. It opened confirm message till
> I have org.apache.xml.serialize.OutputFormat format = new
> OutputFormat(); and did not open it after that. It did not open that of
> the catch block also. So I don't know what the problem is.
--
Thanks,
Rich Kulp
|
|
|
|
|
Re: Plug-in not working in deployment [message #290065 is a reply to message #290050] |
Thu, 18 August 2005 06:52   |
Eclipse User |
|
|
|
Originally posted by: parsuram.panigrahi.wipro.com
Parsuram Panigrahi wrote:
> Rich Kulp wrote:
>> When deployed, by default, there is no console to write to, so that is
>> why sysout didn't work.
>> To get a console you need to start eclipse from a command line window,
>> and you need to use the option -consoleLog That should stop the
>> squelching of the system out.
>> AS for the error, what was you catch block catching? The error could of
>> been a java.lang.Error instead of a RuntimeException.
> Hi Rich Kulp,
> Thanks for your help. I tried -consolelog option. I am ble to see the
> output. It is giving ClassDefNotFoundError. So I added Xerec.jar in the
> plugins/myPlugin directory. Now it is able to find the classes. However I
> need to print the messages to the same console. So I created a console by
> <import plugin="org.eclipse.ui.console"/>
> and created a MessageConsole and put all my messages in
> MessageConsoleStream. It worked fine in development mode. When deployed I
> am getting ClassDefNotFoundError for org.eclipse.ui.console.IConsole. I
> put the console.jar in plugns/myPlugin directory. Still I am getting the
> same error. What do I need to do for the plugin to get console.jar after
> deployment?
I have seen the plug in dependancey there is a jar file called
console.jar is there in the plugin dependancey
($ECLIPSE_PLUGIN/org.eclipse.osgi_3.0.0 directory), I am adding one more
console.jar ($ECLIPSE_PLUGIN/org.eclipse.ui.console_3.0.0 directory). Is
this causing the problem? If not, then what may be the problem? If yes,
what do I need to do get out of the problem?
|
|
|
|
Re: Plug-in not working in deployment [message #290162 is a reply to message #290090] |
Fri, 19 August 2005 01:03  |
Eclipse User |
|
|
|
Originally posted by: parsuram.panigrahi.wipro.com
Rich Kulp wrote:
> If you are an RCP (or an Eclipse plugin) you should not be adding jars
> to your classpath. You should be updating your plugin.xml/MANAFEST.MF.
> You need to add the appropriate plugin requirements, not jars. As for
> your problem, I don't know how to use the consoles.
My requirement is like the tomcat plugin. When I will uae the plug in, I
need to log my output to the console. I will do reverse engineering of the
tomcat source code and find it out.
|
|
|
Powered by
FUDForum. Page generated in 0.06842 seconds