intellij tomcat部署问题

时间:2013-04-03 18:51:05

标签: tomcat intellij-idea

尝试从intellij ultimate部署到tomcat7时得到这个奇怪的消息。您将在INFO行上注意到路径完全错误。从哪里得到这个以及如何解决它?

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)
    ...

3 个答案:

答案 0 :(得分:0)

好的。这似乎是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。 我建议你添加一个const就像

 private String avoidInvalidNameException = "unescaped \\ at end of component";

然后您的泳池大小可能会改变。 祝你好运!

答案 1 :(得分:0)

我也遇到过这个问题。 请检查映射器文件中是否有空白文件。

答案 2 :(得分:-1)

我也遇到了这个问题,我解决了这个问题,主要是Web应用程序工件被破坏或配置错误。通过两个setps检查:

  • 检查Project Structure-->Modules,如果模块名称与pom.xml文件不同,你可以删除模块,然后它会自动生成一个配置(如果你不知道正确的配置,您可以参考计算机中的另一个项目)

  • 确保你的文物,你必须选择战争爆炸,而不是战争。