Click here to Skip to main content
12,632,715 members (32,916 online)
   

Java

 
GeneralRe: OpenOffice and GUI (Integration) Pin
Thomas Grapel25-Mar-13 3:05
memberThomas Grapel25-Mar-13 3:05 
GeneralRe: OpenOffice and GUI (Integration) Pin
Richard MacCutchan25-Mar-13 3:21
mvpRichard MacCutchan25-Mar-13 3:21 
GeneralRe: OpenOffice and GUI (Integration) Pin
Thomas Grapel25-Mar-13 3:27
memberThomas Grapel25-Mar-13 3:27 
GeneralRe: OpenOffice and GUI (Integration) Pin
Richard MacCutchan25-Mar-13 3:44
mvpRichard MacCutchan25-Mar-13 3:44 
GeneralRe: OpenOffice and GUI (Integration) Pin
Thomas Grapel25-Mar-13 3:50
memberThomas Grapel25-Mar-13 3:50 
Questionhow to use tmx map in my code Pin
java_beginer24-Mar-13 12:22
memberjava_beginer24-Mar-13 12:22 
AnswerRe: how to use tmx map in my code Pin
Richard MacCutchan25-Mar-13 0:43
mvpRichard MacCutchan25-Mar-13 0:43 
Questioncan anyone help me with my final project Pin
java_beginer24-Mar-13 9:18
memberjava_beginer24-Mar-13 9:18 
AnswerRe: can anyone help me with my final project Pin
Marco Bertschi24-Mar-13 12:00
memberMarco Bertschi24-Mar-13 12:00 
GeneralRe: can anyone help me with my final project Pin
java_beginer24-Mar-13 12:12
memberjava_beginer24-Mar-13 12:12 
GeneralRe: can anyone help me with my final project Pin
Richard MacCutchan25-Mar-13 0:42
mvpRichard MacCutchan25-Mar-13 0:42 
GeneralRe: can anyone help me with my final project Pin
ajp5527-Mar-13 1:30
memberajp5527-Mar-13 1:30 
GeneralRe: can anyone help me with my final project Pin
konate30-Apr-13 23:14
memberkonate30-Apr-13 23:14 
Questionexception : javax.naming.NoInitialContextException: Pin
swarjava23-Mar-13 18:41
memberswarjava23-Mar-13 18:41 
Hi,
I have written a simple ejb application(stateless session bean) in eclipse. When iam running the client program getting the below exception on console:
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

My client program is as below:
import javax.naming.InitialContext;

import example.ExampleSessionBeanRemote;

public class Main {
public void runTest() throws Exception {
InitialContext ctx = new InitialContext();
ExampleSessionBeanRemote bean =
(ExampleSessionBeanRemote) ctx
.lookup("ejb/ExampleSessionBean");
int result = bean.multiply(3, 4);
System.out.println(result);
}

public static void main(String[] args) {
Main cli = new Main();
try {
cli.runTest();
} catch (Exception e) {
e.printStackTrace();
}
}
}

How to solve the above exception, do i need to include something in websphere, i have just include the jar file of the session bean i have written in eclipse.

Thanks.
AnswerRe: exception : javax.naming.NoInitialContextException: Pin
Prasad Khandekar26-Apr-13 1:30
memberPrasad Khandekar26-Apr-13 1:30 
QuestionOnlick POPUP the Calender month based on dropdownlist Pin
siddiqali md21-Mar-13 3:17
membersiddiqali md21-Mar-13 3:17 
AnswerRe: Onlick POPUP the Calender month based on dropdownlist Pin
Richard MacCutchan21-Mar-13 4:32
mvpRichard MacCutchan21-Mar-13 4:32 
QuestionHow to import file and compare the file with other file in j2se platform Pin
Member 824369315-Mar-13 10:47
memberMember 824369315-Mar-13 10:47 
AnswerRe: How to import file and compare the file with other file in j2se platform Pin
Richard MacCutchan16-Mar-13 0:11
mvpRichard MacCutchan16-Mar-13 0:11 
AnswerRe: How to import file and compare the file with other file in j2se platform Pin
Prasad Khandekar26-Apr-13 1:36
memberPrasad Khandekar26-Apr-13 1:36 
GeneralGame Development using Android Platform Pin
Celmar Galindez14-Mar-13 4:31
memberCelmar Galindez14-Mar-13 4:31 
GeneralRe: Game Development using Android Platform Pin
Richard MacCutchan14-Mar-13 5:55
mvpRichard MacCutchan14-Mar-13 5:55 
QuestionQueue implementation in java Pin
KishoreT14-Mar-13 3:15
memberKishoreT14-Mar-13 3:15 
AnswerRe: Queue implementation in java Pin
Richard MacCutchan14-Mar-13 4:02
mvpRichard MacCutchan14-Mar-13 4:02 
AnswerRe: Queue implementation in java Pin
Amarnath S4-May-13 6:48
memberAmarnath S4-May-13 6:48 
QuestionHelps, Rijndael on java swing Pin
code99014-Mar-13 0:20
membercode99014-Mar-13 0:20 
AnswerRe: Helps, Rijndael on java swing Pin
Nagy Vilmos14-Mar-13 2:07
memberNagy Vilmos14-Mar-13 2:07 
GeneralRe: Helps, Rijndael on java swing Pin
code99015-Mar-13 1:15
membercode99015-Mar-13 1:15 
QuestionThread implementation in Eclipse Plug-in Pin
KishoreT13-Mar-13 7:19
memberKishoreT13-Mar-13 7:19 
QuestionRegarding K-means Text Clustering Pin
sunny funny12-Mar-13 22:43
membersunny funny12-Mar-13 22:43 
AnswerCross posted from C# forum Pin
Pete O'Hanlon12-Mar-13 23:05
protectorPete O'Hanlon12-Mar-13 23:05 
Questionwhat is the difference between sendRedirect() and forward()? Pin
venky002811-Mar-13 20:38
membervenky002811-Mar-13 20:38 
AnswerRe: what is the difference between sendRedirect() and forward()? Pin
Sandeep Mewara11-Mar-13 21:44
mvpSandeep Mewara11-Mar-13 21:44 
AnswerRe: what is the difference between sendRedirect() and forward()? Pin
vkscool24-Mar-13 22:01
membervkscool24-Mar-13 22:01 
QuestionHow to use time picker in jsp? Pin
Phyo Thinzar Aung11-Mar-13 0:26
memberPhyo Thinzar Aung11-Mar-13 0:26 
AnswerRe: How to use time picker in jsp? Pin
Richard MacCutchan11-Mar-13 0:39
mvpRichard MacCutchan11-Mar-13 0:39 
AnswerRe: How to use time picker in jsp? Pin
Shubhashish_Mandal14-Mar-13 1:26
memberShubhashish_Mandal14-Mar-13 1:26 
QuestionHelp For Creating JSP invoice Pin
eMaM1519879-Mar-13 0:37
membereMaM1519879-Mar-13 0:37 
AnswerRe: Help For Creating JSP invoice Pin
Richard MacCutchan11-Mar-13 0:37
mvpRichard MacCutchan11-Mar-13 0:37 
QuestionAudio Sample Playback Pin
dusty_dex7-Mar-13 16:46
memberdusty_dex7-Mar-13 16:46 
AnswerRe: Audio Sample Playback Pin
Richard MacCutchan7-Mar-13 22:58
mvpRichard MacCutchan7-Mar-13 22:58 
Questionjtds connection problem.... SQL Server 2012 Express Pin
MacRaider47-Mar-13 4:22
memberMacRaider47-Mar-13 4:22 
AnswerRe: jtds connection problem.... SQL Server 2012 Express Pin
MacRaider47-Mar-13 8:03
memberMacRaider47-Mar-13 8:03 
AnswerHibernate Data base connection lost Pin
kvsravindrareddy12-Mar-13 22:04
memberkvsravindrareddy12-Mar-13 22:04 
SuggestionRe: jtds connection problem.... SQL Server 2012 Express Pin
Prasad Khandekar2-May-13 21:12
professionalPrasad Khandekar2-May-13 21:12 
QuestionRetails invoice Pin
eMaM1519877-Mar-13 1:39
membereMaM1519877-Mar-13 1:39 
AnswerRe: Retails invoice Pin
Sandeep Mewara7-Mar-13 2:24
mvpSandeep Mewara7-Mar-13 2:24 
Questionjava help Pin
okedi5-Mar-13 23:15
memberokedi5-Mar-13 23:15 
AnswerRe: java help Pin
Richard MacCutchan5-Mar-13 23:22
mvpRichard MacCutchan5-Mar-13 23:22 
Questiondemende help Pin
لحن الأماني5-Mar-13 10:50
memberلحن الأماني5-Mar-13 10:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 5 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid