Questions tagged [initial-context]
74 questions
0
votes
1 answer
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory
I'm deploying an application making use of EJB. I'have wrote an EJB and a java standalone client to connect to. Everything works correctly in Netbeans, but when i try to start in command line I got exceptions.
The JavaFX Application contains the…

Thomas Y
- 1
- 5
0
votes
1 answer
Failure to obtain JNDI administered objects MQ in IIB application Windows server
I am working on my local windows IIB/MQ server. What I am trying to do is place a message on JMSOutput queue.
For that, I have created JMS Administered Object by creating an initial context factory and within it I have created Destination Queue and…

jonathan white
- 33
- 4
- 15
0
votes
1 answer
NoInitialContextException in CXF Local Transport for testing the JAX-RS
I am following this tutorial: https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRS+Testing
But I get this error:
javax.naming.NoInitialContextException:Need to specify class name in environment or system property, or as an applet parameter, or…

Manuel
- 205
- 1
- 4
- 17
0
votes
1 answer
Inauthentic client error while connecting to ESB using java
I am trying to connect to ESB broker using java code as below. I have verified that the username and password we are using are correct. Still I am receiving this error. What could be the cause for this error?
Caused by: [2101]…

V Joe
- 271
- 1
- 5
- 23
0
votes
1 answer
OpenJMS : impossible to set the INITIAL_CONTEXT_FACTORY
I wrote the below code to set my Context :
Properties properties = new Properties();
properties.put(Context.PROVIDER_URL, "tcp://localhost:3035");
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.exolab.jms.jndi.InitialContextFactory");
Context…

JarsOfJam-Scheduler
- 2,809
- 3
- 31
- 70
0
votes
0 answers
Maven install ejb
i have a big problem.
I implement Maven in a project, but when i run the option maven install appears in the console the next problem...
javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.NamingContextFactory [Root…

hide
- 92
- 3
0
votes
2 answers
How to get the initial context factory from Weblogic Server?
I am trying to create a java program which will just receive the name of initial context factory in Weblogic Server.
You may find below the java source code that i am trying to execute :
import java.io.IOException;
import java.io.Serializable;…

NickName
- 313
- 2
- 9
- 25
0
votes
1 answer
Error:javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable
I have below JSP.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@page…

user3607647
- 51
- 2
- 14
0
votes
1 answer
Google Engine App - InitialContext is a restricted class
I am using Eclipse with Google Engine app to public my server and I have the error :
java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more details.
at…

Vinicius Martin
- 189
- 1
- 3
- 15
0
votes
3 answers
EJB 3.2 - Can't configure the remote client correctly
I'm new to EJB and I've wrote a very small ejb component for demonstration purposes. All It's supposed to do is print "hello ". Currently struggling to configure the InitialContext of the remote client correctly. The container I use is JBoss 7.0. I…

MaxG
- 1,079
- 2
- 13
- 26
0
votes
1 answer
JBoss EJB Client handler missing argument
I am trying to set a new InitialContext in the following manner (which is pretty standard I believe):
private static InitialContext getInitialContext() throws NamingException {
InitialContext context = null;
try {
Properties…

Tanvir
- 1,453
- 2
- 16
- 32
0
votes
1 answer
When does new InitialContext() throw a NamingException?
Can anyone explain in what case does new InitialContext() throw NamingException.
I read java docs and it us mentioned that this exception is thrown when a naming exception is encountered. But I don't understand why will a naming exception occur…

Krishna Chaitanya
- 2,533
- 4
- 40
- 74
0
votes
1 answer
EJB fails to lookup JDBC DataSource res-ref from code
I have an auto-start EJB tested with jBoss EAP 6.[3,4] and it fails to lookup JDBC resource ref defined in deployment descriptor with exception;
Caused by: javax.ejb.EJBException: java.lang.RuntimeException: javax.naming.NameNotFoundException:…

SJunejo
- 1,316
- 4
- 23
- 39
0
votes
0 answers
JavaEE Application Client Remote Injection problems
Every time I deploy the client app after deploying the ejb I at random get @EJB injection errors, sometimes it's with ShipFacade, sometimes it's something else, either an injection before or after this one, it seems like it's more or less at…

Dusan Milosavljevic
- 11
- 2
0
votes
1 answer
NullPointer on new InitialContext()
we are using JBoss EAP 6.2.4 and within a stateless session bean we send JMS messages to an WMQ-queuemanager.
our code is als follows:
@Stateless
@LocalBean
public class MessageSenderBean {
private static ConnectionFactory connectionFactory;
…

Jörg
- 13
- 3