English 中文(简体)
在与Tomcat 7.0.27和Atomikos 3.7.1自动出版之后,没有发现JNDI资源。
原标题:No JNDI resources found after automatic publish with Tomcat 7.0.27 and Atomikos 3.7.1

I am building a web application using Spring, Tomcat 7.0.27 and Atomikos 3.7.1. I followed the integration guidelines from Atomikos: Tomcat7Integration35. Everything works except two listeners which don t exist anymore in Tomcat 7.0.27. So I did not include these two listeners in my server.xml file.

/ & gt; /\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

当我第一次启动 Tomcat 时, 一切都有效。 当我做一些代码修改, 并且 Tomcat 尝试自动发布应用程序时, 找不到上下文中定义的 JNDI 资源 。 xml ( 例外: javax. nameing. name notFoundException) 。 我需要停止服务器并重新开始它。 这样, 应用程序就可以成功发布 。

有人经历过这个吗?

最佳回答

Fortunately, this problem is solved. I explained the solution in detail here: Tomcat 7.0.27 Integration with Atomikos 3.7.1

问题回答

暂无回答




相关问题
Webspehere 6.1 and JNDI for something other than a Datasource

I was wondering: how does one go about configuring WAS if they want to store some confidential information that is not datasource, JMS or Mail related? I m looking more for an adhoc JNDI resource (a ...

JBoss JNDI Binding Manager - maximum length of value?

I m using the technique described here to register string values on the JNDI tree via an XML file deployed to JBoss. This is working fine for my system constants (URLs and the like). However I am ...

How to configure JPA to use JNDI?

I have a working persistence definition that works on java level tests. Now I want to incorporate that into a web application which defines the database connection as JNDI in the context.xml. What do ...

Jetty JNDI Java Mail

I am using Jetty 7 with JBoss Seam and have 2 Java Mail Sessions configured, one for support notifications and another for general notifications. The problem I am having appears to be from JBoss Seam ...

Using JNDI for Database connections

This might sound like a noob question but this is the first time I m treading into Database territory. From here I got the info that The most efficient way to implement communication between the ...

JNDI Names -- Is Prefix "jdbc/" needed?

What s up with JNDI names? I m trying to get a javax.sql.DataSource using the new annotations feature of Java 5. It s not working for me, so I want to ask... I have a in my web.xml, inside of it is ...

热门标签