gpt4 book ai didi

tomcat - intellij tomcat部署问题

转载 作者:行者123 更新时间:2023-11-28 22:33:54 26 4
gpt4 key购买 nike

尝试从 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)
...

最佳答案

好的。这似乎是 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";

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

关于tomcat - intellij tomcat部署问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15795599/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com