Max*_*pan 7 java ant spring tomcat
仍然试图做出无可救药的过时官方春季教程的正面或反面.
这一次,这是主题中的错误:
c:\Users\mkumpan\Projects\Spring testing\build.xml:152: java.lang.NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64
<stack trace dump omitted>
Run Code Online (Sandbox Code Playgroud)
这个类实际上包含在tomcat-util.jar中:
bash-3.1$ pwd
/c/Program Files/Tomcat/lib
bash-3.1$ jar -tf ./tomcat-util.jar | grep Base64
org/apache/tomcat/util/codec/binary/Base64.class
Run Code Online (Sandbox Code Playgroud)
而且我非常确定我将它包含在build.xml中:
<fileset dir="${appserver.home}/bin">
<include name="*.jar"/>
</fileset>
Run Code Online (Sandbox Code Playgroud)
我甚至试图更明确:
<fileset dir="C:\Program Files\Tomcat\lib\" includes="tomcat-util.jar">
Run Code Online (Sandbox Code Playgroud)
什么都行不通,每次我尝试运行任何与tomcat相关的目标时,我仍然会收到该消息.也许某人可以提出一系列调查建议吗?
谷歌似乎没有提供任何相关的东西.
更新: 下面提供的完整的主类路径引用.
<path id="master-classpath">
<fileset dir="${web.dir}/WEB-INF/lib">
<include name="*/*.jar"/>
</fileset>
<fileset dir="${appserver.lib}">
<include name="*.jar"/>
</fileset>
<fileset dir="${appserver.home}/bin">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7622 次 |
| 最近记录: |