intellij tomcat部署问题

intellij tomcat部署问题,tomcat,intellij-idea,Tomcat,Intellij Idea,当试图从intellij ultimate部署到tomcat7时,收到这个奇怪的消息。您将在信息行中注意到路径完全错误。它是从哪里来的?我如何修复它 Apr 03, 2013 12:38:26 PM org.apache.naming.resources.WARDirContext doLookup INFO: The name [/WEB-INF/classes/C:\dev\apps\admin\newjdbcprops/xvdev.oracle.properties\] is no

当试图从intellij ultimate部署到tomcat7时,收到这个奇怪的消息。您将在信息行中注意到路径完全错误。它是从哪里来的?我如何修复它

Apr 03, 2013 12:38:26 PM org.apache.naming.resources.WARDirContext doLookup
    INFO: The name [/WEB-INF/classes/C:\dev\apps\admin\newjdbcprops/xvdev.oracle.properties\] is not valid
    javax.naming.InvalidNameException: /WEB-INF/classes/C:\dev\apps\admin\newjdbcprops/xvdev.oracle.properties\: unescaped \ at end of component
        at javax.naming.NameImpl.extractComp(NameImpl.java:161)
        at javax.naming.NameImpl.<init>(NameImpl.java:284)
    ...

好的,看起来java常量池的大小恰好是005c

There are 10 basic sections to the Java Class File structure:
Magic Number: 0xCAFEBABE
Version of Class File Format: the minor and major versions of the class file
Constant Pool: Pool of constants for the class
Access Flags: for example whether the class is abstract, static, etc.
This Class: The name of the current class
Super Class: The name of the super class
Interfaces: Any interfaces in the class
Fields: Any fields in the class
Methods: Any methods in the class
Attributes: Any attributes of the class (for example the name of the sourcefile, etc.)
所以实际上你的固定池大小是5c。 我建议您添加一个常量,就像

 private String avoidInvalidNameException = "unescaped \\ at end of component";
然后您的池大小可能会更改。
祝你好运

我也面临过这个问题。
请检查mapper文件中是否有空白文件。

我也遇到了这个问题,我解决了这个问题,主要是web应用程序工件损坏或配置不正确。通过两个SETP进行检查:

检查项目结构->模块,如果模块名称与pom.xml文件不同,您可以删除该模块,然后它将自动生成配置。如果您不知道正确的配置,您可以参考计算机中的其他项目

确保你的作品,你必须选择战争爆发,而不仅仅是战争


想法版本?看起来您的web应用程序工件已损坏或配置不正确。尝试设置一个新的工件。如果没有帮助,请在上提交一个bug,并附带一个示例项目,以便最新复制.intellij 12。您可能会想,但是使用Spring Tools Suite eclipse和它提供的内置Tomcat,项目运行得很好。当然,它在外部运行,问题在于IDEA工件配置。我理解。在哪里可以找到该配置?