1

我在运行我正在编写的 Jira 插件时遇到了一个奇怪的错误。

该插件编译并运行,我认为无法找到SQLException类型是没有意义的,这在插件中明确重要:

 import java.sql.SQLException;

而且,据我所知,它是 Java 运行时的一部分,所以我不需要包含任何其他 jar。

[INFO] [talledLocalContainer] 2012-11-25 16:00:36,739 http-2990-1 ERROR      [atlassian.plugin.servlet.DefaultServletModuleManager] Unable to create servlet
[INFO] [talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.Error: Unresolved compilation problem: 
[INFO] [talledLocalContainer]   The constructor TestRun(String) refers to the missing type SQLException
[INFO] [talledLocalContainer] 
[INFO] [talledLocalContainer]   at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
[INFO] [talledLocalContainer]   at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)
[INFO] [talledLocalContainer]   at com.atlassian.plugin.servlet.DefaultServletModuleManager.getServlet(DefaultServletModuleManager.java:344)

以下是关于 Jira 如何开始的信息,这对我来说似乎很好:

[INFO] [talledLocalContainer] ___ Java 类路径 _______________________
[信息] [talledLocalContainer]
[信息] [talledLocalContainer] sun.boot.class.path:/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/resources.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/rt.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/sunrsasign.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/jsse.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/jce.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/charsets.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/jfr.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/JObjC.jar:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/classes
[信息] [talledLocalContainer]
[信息] [talledLocalContainer] java.library.path:/Users/sorins/Library/Java/Extensions:
[信息] [talledLocalContainer] /库/Java/扩展:
[信息] [talledLocalContainer] /网络/库/Java/扩展:
[信息] [talledLocalContainer] /系统/库/Java/扩展:
[信息] [talledLocalContainer] /usr/lib/java:
[信息] [talledLocalContainer] 。
[信息] [talledLocalContainer]
[信息] [talledLocalContainer] java.endorsed.dirs:/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/endorsed
[信息] [talledLocalContainer]
[信息] [talledLocalContainer] java.ext.dirs:/Users/sorins/Library/Java/Extensions:
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/jre/lib/ext:
[信息] [talledLocalContainer] /库/Java/扩展:
[信息] [talledLocalContainer] /网络/库/Java/扩展:
[信息] [talledLocalContainer] /系统/库/Java/扩展:
[信息] [talledLocalContainer] /usr/lib/java
[信息] [talledLocalContainer]
[信息] [talledLocalContainer] java.class.path:/Users/sorins/dev/jira/jira-libs.hg/plugins/testrun/target/container/tomcat6x/apache-tomcat-6.0.20/bin/bootstrap.jar :
[信息] [talledLocalContainer] /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/lib/tools.jar
[信息] [talledLocalContainer]
4

0 回答 0