Jetty Server无法启动

时间:2013-11-06 20:31:38

标签: java eclipse apache jetty wicket

我在运行jetty服务器时遇到问题。

>>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
[main] INFO org.apache.wicket.velocity.Initializer - Initialized Velocity successfully
[main] WARN org.apache.wicket.protocol.http.WicketFilter - initialization failed, destroying now
[main] INFO org.apache.wicket.Application - [wicket.project] destroy: Wicket core library initializer
[main] INFO org.apache.wicket.Application - [wicket.project] destroy: DevUtils DebugBar Initializer
[main] INFO org.apache.wicket.Application - [wicket.project] destroy: Wicket extensions initializer
[main] INFO org.apache.wicket.Application - [wicket.project] destroy: Wicket JMX initializer
[main] INFO org.apache.wicket.Application - [wicket.project] destroy: org.apache.wicket.velocity.Initializer@1453a1c7
[main] WARN org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED wicket.project: javax.servlet.ServletException: java.lang.UnsupportedOperationException: path to '/C:/Users/F%c4%b1rat/Desktop/2/src/itudb1323.db': 'C:\Users\F%c4%b1rat' does not exist
javax.servlet.ServletException: java.lang.UnsupportedOperationException: path to '/C:/Users/F%c4%b1rat/Desktop/2/src/itudb1323.db': 'C:\Users\F%c4%b1rat' does not exist
    at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:449)

问题似乎是C:/Users/F%c4%b1rat/Desktop/2/src/itudb1323.db': 'C:\Users\F%c4%b1rat' does not exist 该路径应为C:/Users/Fırat/Desktop/2/src/itudb1323.db,但它会尝试查找F%c4%b1rat

2 个答案:

答案 0 :(得分:3)

ı被Java解释为......

U+0131 LATIN SMALL LETTER DOTLESS I character (ı)

这是从Windows-1252代码页翻译为十六进制0xC4 0xB1的UTF-8,因此是路径的F%c4%b1rat部分。需要对URLClassLoader进行URL编码。

听起来你在URLClassloader中遇到了unicode和/或windows codepage支持的JVM错误。鼓励您不要在这些路径上进行部署,或者升级JVM以查看以后的JVM是否更好地支持它。

答案 1 :(得分:1)

您可以尝试将工作区放入不包含Windows-1254字符集的目录中(示例:在C:/下)。这是一个临时解决方案,但它可以解决您的问题。