Help coderanch get a
new server
by contributing to the fundraiser

RajHans Kumar

+ Follow
since Apr 20, 2011
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by RajHans Kumar


I have been trying to connect AF from a Wps application .
I have put all the requisite jars on the classpath and have restarted the application as well .
However , I am getting the following error : service SRVE0068E: Uncaught exception created in one of the service methods of the servlet login in application wps. Exception created : java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory

The problem with giving exact classpaths is that while Wps Application tries to get connectivity to AF, it refers to a loggerFactory class available under slf4j-log4j12-1.5.6.jar present under the set of jars specified in AF folder structure.But seems that the classpath is not getting picked up as expected by wps application leading to above errors.

Can anyone help - urgent ?

12 years ago
Is there a site where I can get a sspi(CVS) plugin for eclipse ?
I have tried googling a lot but wasn't able to find any .
Could someone please help ?

Can anyone help me in creating a Project Set in Eclipse ?
I have a requirement of making a .psf file (team project set) but before that I need to export the different Projects into a Project Set ?

Thanks in advance
Hi All

I have a plugin.class in which I am calling methods in another classes.
The other classes need some jars which have added up in the classpath .
Now the problem is whenever I am trying to deploy a plugin in the same instance of eclipse by doing
an File ->Export ->Plug-in Development ->Deployable plug-ins and fragments
And selecting that package I am getting an error which are of type :

" ERROR in D:\WorkSpace\com.example.helloworld\src\com\example\helloworld\view\ (at line 4)
import org.apache.poi.xssf.usermodel.XSSFSheet;
The import org.apache cannot be resolved"
(These errors aren't displayed in the normal editor)

1.Do I need to add all these poi-jars somewhere ?(have already added them in the Build tab of the plugin.xml)
2.Is there anyother way to remove these errors and get the plugin deplyed

Kindly advise .

Hi Sourav

Was able to run the plugin in the same instance of Eclipse so was successful in doing that.

However ,of-late I have a different problem. I tried changing the code in the class given in the Extensions and tried redeploying the plugin .
But ,I am getting an error as
"An error has occurred when activating this view

I have tried cleaning my eclipse and also using a differnt workspace ,but still the same error persists even if I try using a different instance of eclipse to run the plugin.

Could you tell me what the problem might be ?

Thanks mate
I tried making a Jar out of the plugin and keeping it in the Plugin folder of the eclipse installed directory .However I am getting an error now
"Could not create the view: Plug-in com.example.helloworld was unable to load class"
Hi Sourav

Thanks got my problem fixed
One last question though
Can I run a plugin from the same instance of the Eclipse ?


I have also created the class now ,however I am getting an exception on clicking the Hello World button as in the Window-Show-Other menu .

"Could not create the view: com.example.helloworld.view.SampleView cannot be cast to org.eclipse.ui.IViewPart"

Could anyone let me know how to resolve this ?

Hey Sourav

Thanks a lot mate
That worked and I was able to create a simple plugin using the cheatcodes

However,when I tried creating a plug-in extension I faced quite a few problems :
As in the cheatcode:-
"To create a view class, perform the following steps:
Click the "class" hyperlink under "Extension Element Details" to start the "New Java Class" wizard
Accept the default values and click the "Finish" button to exit the wizard "

Now the view and category for the org.eclipse.ui.views weren't coming by default so I changed the plugin.xml as
name="Hello World!"
name="Hello World!">
name="Hello World!"

However,wasn't getting a hyperlink for the class as in:
"To create a view class, perform the following steps:
Click the "class" hyperlink under "Extension Element Details" to start the "New Java Class" wizard
Accept the default values and click the "Finish" button to exit the wizard "

My eclipse version is 3.5.0

Thanks in advance

Hi Sourav

Thanks for the quick reply .
I have made a Plug -in project which has file
The contents of which are as below:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Helloworld
Bundle-SymbolicName: org.eclipse.examples.helloworld;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6

The plugin.xml has some warnings though ,don't know again if thats the cause:

<?xml version="1.0"?>
name="Eclipse Hello World Example"

<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui"/>

<library name="helloworld.jar"/>

<extension point = "org.eclipse.ui.actionSets">
label="Hello World"
description="The action set for the Eclipse Hello World example">
<separator name="samples"/>
<action id="org.eclipse.examples.helloworld.actions.HelloWorldAction"
label="Hello World"
tooltip="Press to see a message"

I am still getting the same exceptions

Is there something wrong in the above two files ??

Hi Sourav

I have a Project named org.eclipse.examples.helloworld inside which I have the src folder and inside that I have the package org.eclipse.examples.helloworld.The Java class HelloWorldAction is inside this package.
Now I dont know how to "Run->Run As->Run-time Workbench " as in the article.
I have tried running the entire package as Run Configuration but I am getting an error

"java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main("

Could you let me know
1.How do I run the WorkBench ?
2.How to deal with this exception ?



I am trying to create a Plugin in eclipse but have been struggling .
The main purpose is to call some functions from some classes using the plugin.
I have been following the below link:
However,wasn't succesful.

Thanks in advance
Any idea about this exception ?
Thanks a lot
That was silly
Now I have updated as per the comments and my classpath is

I am still getting an exception
org.apache.poi.POIXMLException: org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13]
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(
Is there anyother Jar needed ?
Is the classpath correct ?