jsp编译异常

fnx2tebb  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(274)

我们已经将jboss从4.3升级到7.3,java从1.6升级到1.8。在我们的项目中有一个模块没有编译。有人能告诉我在哪里修理这个吗?
这是堆栈跟踪:

  1. java.lang.IllegalStateException: No Java compiler available
  2. at org.apache.jasper.JspCompilationContext.cTrace
  3. org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
  4. at org.apache.jasper.JspC.processFile(JspC.java:1040)
  5. at org.apache.jasper.JspC.execute(JspC.java:1156)
  6. at org.codehaus.mojo.jspc.compiler.tomcat6.JreateCompiler(JspCompilationContext.java:229)
  7. at org.apache.jasper.JspC.processFile(JspC.java:996)
  8. at org.apache.jasper.JspCspCompilerImpl.compile(JspCompilerImpl.java:111)
  9. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  10. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  11. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega.execute(JspC.java:1156)
  12. at org.codehaus.mojo.jspc.compiler.tomcat6.JspCompilerImpl.compile(JspCompilerImpl.java:111)
  13. at suntingMethodAccessorImpl.java:43)
  14. at java.lang.reflect.Method.invoke(Method.java:498)
  15. at org.codehaus.groovy.reflection.Cached.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImMethod.invoke(CachedMethod.java:86)
  17. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
  18. at groovy.lang.MetaClassImpl.java:62)
  19. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  20. at java.lang.reflect.Mepl.invokeMethod(MetaClassImpl.java:912)
  21. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  22. at org.codehaus.grthod.invoke(Method.java:498)
  23. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
  24. at groovy.lang.Metaoovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
  25. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(Method.doMethodInvoke(MetaMethod.java:230)
  26. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
  27. at groovy.lang.InvokerHelper.java:754)
  28. at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  29. aMetaClassImpl.invokeMethod(MetaClassImpl.java:756)
  30. at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelpert org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198)
  31. at org.codehaus.mojo.jspc.Co.java:766)
  32. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
  33. at org.codehaus.groovy.runtime.mpilationMojoSupport.execute(CompilationMojoSupport.groovy:333)
  34. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DeScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
  35. at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokfaultPluginManager.java:490)
  36. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.javaeMethod0(ScriptBytecodeAdapter.java:198)
  37. at org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groov:694)
  38. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
  39. at y:333)
  40. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
  41. at org.apache.maven.lifecyorg.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
  42. at org.apache.maven.lifecyccle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
  43. at org.apache.maven.lifecycle.DefaultLifecycleExele.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
  44. at org.apache.maven.lifecycle.Defacutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
  45. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execuultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
  46. at org.apache.maven.lifecycle.DefaultLifecycleExecteGoal(DefaultLifecycleExecutor.java:535)
  47. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(utor.execute(DefaultLifecycleExecutor.java:180)
  48. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
  49. at org.apaDefaultLifecycleExecutor.java:387)
  50. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleche.maven.DefaultMaven.execute(DefaultMaven.java:138)
  51. at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
  52. at org.apacheExecutor.java:348)
  53. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
  54. at org..maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
  55. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  56. apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
  57. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
  58. a at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  59. at sun.reflect.DelegatingMethodAccessorImpl.t org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
  60. at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.javainvoke(DelegatingMethodAccessorImpl.java:43)
  61. at java.lang.reflect.Method.invoke(Method.java:498)
  62. at org.codehaus.classworlds:60)
  63. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  64. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  65. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  66. at java.la.Launcher.launchEnhanced(Launcher.java:315)
  67. at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  68. at org.codehaus.cng.reflect.Method.invoke(Method.java:498)
  69. at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  70. at org.codelassworlds.Launcher.mainWithExitCode(Launcher.java:430)
  71. at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  72. Caused bhaus.classworlds.Launcher.launch(Launcher.java:255)
  73. at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  74. y: java.lang.IllegalStateException: No Java compiler available
  75. at org.apache.jasper.JspCompilationContext.createCompiler(JspCo at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  76. mpilationContext.java:229)
  77. at org.apache.jasper.JspC.processFile(JspC.java:996)
  78. ... 34 more

我不知道是jasper模块出了问题,还是iti根本找不到slf4j(我们确实从项目中删除了slf4j)。也许jasper模块调用slf4j代码,但它不再存在了?
为什么它说没有可用的java编译器?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题