Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plug-in not working in deployment
Plug-in not working in deployment [message #289978] Tue, 16 August 2005 13:19 Go to next message
Eclipse UserFriend
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 #289983 is a reply to message #289978] Tue, 16 August 2005 13:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

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();
>
>

--
Thanks,
Rich Kulp
Re: Plug-in not working in deployment [message #290010 is a reply to message #289983] Wed, 17 August 2005 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: parsuram.panigrahi.wipro.com

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.
Re: Plug-in not working in deployment [message #290022 is a reply to message #290010] Wed, 17 August 2005 14:19 Go to previous messageGo to next message
Eclipse UserFriend
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 #290044 is a reply to message #290022] Thu, 18 August 2005 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: parsuram.panigrahi.wipro.com

Rich Kulp,
Thanks for the help. Now I am able to see the system.out in the new
console by using -console log option. My requirement is to see the logs in
the same eclipse console. So I added a console to my application by doing
a following steps.

1) Added <import plugin="org.eclipse.ui.console"/> to the plugin.xml.
2) Wrote a class ConsoleAdapater which will give me the "runtime console".
If it is not present then it will create one for me.

I am getting java.lanag.NoClassDefFoundError after that. Application is
not able to find org.eclipse.ui.console.IConsole and
org.apache.xml.serialize.outputformat

What do I need to do so that the application will get the classes during
the deployment?
Re: Plug-in not working in deployment [message #290050 is a reply to message #290022] Thu, 18 August 2005 06:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: parsuram.panigrahi.wipro.com

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?
Re: Plug-in not working in deployment [message #290065 is a reply to message #290050] Thu, 18 August 2005 10:52 Go to previous messageGo to next message
Eclipse UserFriend
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 #290090 is a reply to message #290065] Thu, 18 August 2005 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

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.

--
Thanks,
Rich Kulp
Re: Plug-in not working in deployment [message #290162 is a reply to message #290090] Fri, 19 August 2005 05:03 Go to previous message
Eclipse UserFriend
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.
Previous Topic:CellEditors don't show up in table
Next Topic:How to toggle "insert" edition mode on a keyboard without "insert" key (eg. Mac
Goto Forum:
  


Current Time: Fri Apr 26 03:23:18 GMT 2024

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

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

Back to the top