jndi

In Spring/Tomcat, which configuration file do jndi lookups refer to?:

不羁岁月 提交于 2019-12-23 02:44:29
问题 I'm having trouble getting a Spring/Tomcat app to resolve a variable which appears as a property of a JndiFactoryObjectName bean in the application context. Here's the relevant bean entry: When I try to run it on the server, it comes up with this error: Caused by: javax.naming.NameNotFoundException: Name search.url is not bound in this Context This entry in server.xml doesn't seem to help: There's also an entry in (as seen from Eclipse/STS) Tomcat v6.0 Server at localhost Catalina localhost

Error when trying to access my application in JBoss AS 7.1

♀尐吖头ヾ 提交于 2019-12-23 02:19:32
问题 I recently migrated my application from JBoss AS 4.2.1 to JBoss AS 7.1, but I am not being able to access the application vua http request since I am getting the below error: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Unable to instantiate Action, payment.PaymentBean, defined for 'prepayment' in namespace '/payment'javax.naming.NamingException:

Jboss client send message to remote hornetq in Jboss

此生再无相见时 提交于 2019-12-23 01:13:02
问题 I have a client run in JBoss (JB_Client) and it needs to send messages to a remote Jboss server (JB_Server) HornetQ . And Remote jboss server (JB_server) needs to send the response message back to it's HornetQ . So JB_Client MDB is listening to remote HorentQ for the responses. I am using Jboss AS6 for my client and server. This system works perfectly in local environment which is client and server both in same Jboss . But now I need to separate client and server in to two machines. here is

Spring using JNDI with Tomcat… why do I need a META-INF/context.xml in my project

随声附和 提交于 2019-12-23 00:27:43
问题 I am trying to get Spring working with tomcat JNDI resource to access my database. My project works if a META-INF/context.xml in my project with the resource information but once I remove it it stops.. why. 回答1: If you deploy a Web application in Tomcat, in the deployment process, Tomcat will copy the META-INF/context.xml file in $CATALINA_HOME/conf/ so the context will be available for your application. Take in mind, that if you remove context.xml from you application because you dont want

JNDI object creation in standalone application

浪尽此生 提交于 2019-12-22 15:59:13
问题 Is is possible to create JNDI llookup and it's reference in standalone application means without any application server. java:comp/env/jdbc Regards, Chaitu 回答1: JNDI is a service which is provided by Java platform. Refer to below link http://www.javaworld.com/javaworld/jw-04-2002/jw-0419-jndi.html 回答2: You can use the class org.springframework.mock.jndi.SimpleNamingContextBuilder of Spring, either the dependency or the file spring-mock-1.0.2.jar . e.g.: Setup: SimpleNamingContextBuilder

Jetty JNDI error within Maven Jetty Plugin

孤人 提交于 2019-12-22 10:19:47
问题 I am trying to configure a JNDI data source that can be used from an invocation of the Maven Jetty Plugin. I am trying to do this external to the WAR file, so that anyone who might later deploy our webapp with Jetty will not have to edit a configuration file inside the WAR's WEB-INF directory. I created a jetty.xml file as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure

Glassfish application not working with maven library (gf-client)

梦想的初衷 提交于 2019-12-22 10:09:33
问题 For a school assignment I received a Netbeans project using JNDI and JMS with Glassfish (3 open source edition). All the Glassfish libraries this application is using are referenced by absolute path and all the other libraries (in the "lib" folder) are referenced by relative path. Since my group is working with a version control system the "lib" folder is included in the repository. This works fine because it is a small project. However the Glassfish libraries are problematic as I am a Linux

How to specify a different jndi-name than the default for an EJB in JBoss 4.2.2.GA?

試著忘記壹切 提交于 2019-12-22 09:24:53
问题 By default it seems the jndi name of a bean is based on the ear in which it is contained. An EJB named MyBean my-app.ear will have the name "my-app/MyBean/local". How can I change that behavior declaratively? I want the jndi name to be "something-else/MyBean/local". It has to be declarative rather than with an annotation b/c I can't modify the source of MyBean.java; I only have the jar, which I am packaging into an ear for deployment. 回答1: You can provide this in jboss.xml http://docs.jboss

Tomcat with mysql : “ Cannot create JDBC driver of class '' for connect URL 'null' ”

爱⌒轻易说出口 提交于 2019-12-22 08:57:41
问题 This question has been asked and answered multiple times but it still doesn't solve my problem. Host OS is Fedora 17 Tomcat package tomcat-7.0.27-2.fc17.noarch Here is my $CATALINA_HOME/logs/catalina.out [DEBUG]: Failed to establish connection with datastore org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1452) at org.apache.tomcat.dbcp.dbcp

jndi.properties in JBoss

删除回忆录丶 提交于 2019-12-22 06:28:12
问题 Is there any way to configure JNDI so the lookup first checks localhost and if it doesn't find matching name it performs automatic discovery of other jndi servers? 回答1: My understanding of the documentation is that this is the default behavior when using clustering: 16.2.2. Client configuration The JNDI client needs to be aware of the HA-JNDI cluster. You can pass a list of JNDI servers (i.e., the nodes in the HA-JNDI cluster) to the java.naming.provider.url JNDI setting in the jndi