Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » plug-in project with ejb project
plug-in project with ejb project [message #894355] Sun, 08 July 2012 15:58 Go to next message
csaba toth is currently offline csaba tothFriend
Messages: 4
Registered: March 2011
Junior Member
1. I created an EJB project - four projects was generated (Client, EJB, ...)

Question: Is it possible to use the Client project as a plug-in project?
Re: plug-in project with ejb project [message #894694 is a reply to message #894355] Tue, 10 July 2012 07:44 Go to previous message
csaba toth is currently offline csaba tothFriend
Messages: 4
Registered: March 2011
Junior Member
1. finally I copied every necessary files from the client project into the Plug-in project.
2. I run a NOT plug-in program in the Plug-in project

context = JNDILookupClass.getInitialContext();
String lookupName = JNDILookupClass.getLookupName(beanClass, beanInterface);


and it worked FINE

3. I put the same code into the Plug-in program (for example into the Activator.java) and then I got the following error message in the second sentence:

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
...



Can anybody tell me how to fix it?
Previous Topic:Made a Project, then deleted it, now I get build errors in another project
Next Topic:how to extend main menu bar action of eclipse-run-time
Goto Forum:
  


Current Time: Thu Apr 25 07:49:52 GMT 2024

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

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

Back to the top