English 中文(简体)
Tomcat 7start-up wrong from Eclipse - Unable to process JNDI URL
原标题:Tomcat 7 start-up errors from Eclipse - Unable to process JNDI URL

如果我在Eclipse中建立了动态的网络应用,而背景根 root与WAR的名称相匹配,那么我就在开始使用相关的Tomcat 7服务器时遇到错误。

SEVERE: Unable to process JNDI URL [jndi:/localhost/tests/example1/WEB-INF/classes] for annotations
java.io.FileNotFoundException: jndi:/localhost/tests/example1/WEB-INF/classes
    at org.apache.naming.resources.DirContextURLConnection.list(DirContextURLConnection.java:452)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsJndi(ContextConfig.java:1843)
    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1770)

等等

服务器(我认为)的相关部分是,

<Context docBase="MyExample" path="/tests/example1" reloadable="true" source="org.eclipse.jst.jee.server:MyExample"/>

如我所期望的那样,可通过<代码>/测试/Example1查询申请,但保留说明没有工作,错误本身导致服务器的开端时间超过其应有的时间。 如果环境根基与世界反贪局的名称相匹配,它就会奏效,但对我来说,这将是一个问题。

我如何能够围绕这一点开展工作的想法?

最新资料:我发现,只有经过修改的背景根基包含一个<条码>/>。 如果我把背景变为“测试-实例1”,它就发挥了作用。

问题回答

I had the same problem with Tomcat 7.0.16 but it works with Tomcat 7.0.22.

We had such problem with Tomcat 6.0.36. We found the solution while editing the Spring configuration. We changed

<xconf:properties href="${...}/..." prefix="..." />

to

<xconf:properties file="${...}/...." prefix="..." />

and set all relative paths to fixed ones where needed.

Maybe, some paths were changed in your application, but you have forgot to update app configs. So, I think, you should check your application configs first. Search for example1 in Spring configs, etc.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签