English 中文(简体)
辅助性 j瓦茨任务可以进入班级
原标题:Ant javac task can t access class
  • 时间:2012-01-13 10:52:21
  •  标签:
  • java
  • ant

在管理我的ant建档案时,我收到以下信息:

-build-middleware-securitymanager:
     [echo] -> httpbean.securitymanager
     [echo] -> httpbean.securitymanager.config
     [echo] -> httpbean.securitymanager.context
     [echo] -> httpbean.securitymanager.login
     [echo] -> C:eclipsecurrentRunImported
    [javac] Compiling 4 source files to C:eclipsecurrent
ewclasses
    [javac] C:eclipsecurrenthttpbeansecuritymanagerloginintegrationellsouthLoginUserWS.java:192: cannot access ServiceException
    [javac] file ServiceException.class not found
    [javac]             final LoginInfo info = _login.login(user, clrpasswd, _token);
    [javac]                                                ^

在检查了我的建筑档案之后,它提到了以下章节:

    <echo message="-> httpbean.securitymanager.login" />
    <echo message="-> ${run-imported}" />
    <javac  includeantruntime="${ant8compat}" debug="${debug}" srcdir="${src}" destdir="${classes}" includes="httpbean/securitymanager/login/**/*.java" encoding="UTF-8">
        <exclude name="**/*_UnitTest.java" />
        <classpath>
            <path refid="Axis" />
            <path refid="commons-logging" />
            <path refid="shark-1.1" />
            <path refid="log4j" />
        </classpath>
    </javac>

服务外观类是 j瓦x.xml.rpc包的一部分,在鲨鱼-1.1目录中的jaxrpc.jar中,鲨鱼-1.1参考。

  <path id="shark-1.1">
    <fileset dir="${run-imported}/shark-1.1">
      <include name="*.jar" />
    </fileset>
  </path>

核对了<代码>{-进口}/shark-1.1 我可以清楚地看到,在那里坐着正确的jar档案!

我曾试图在支尔瓦茨任务中的那一部分中增加一条路标,直接点到失踪人员阶级生活的杰尔档案中,但这也无所作为。

EDIT:

进口

import javax.xml.rpc.ServiceException;

而监狱的结构也一样,突出了服务外观。

JAR directory structure

问题回答

Are you sure ServiceException is in the default package? Unlikely. It should be something like "com.acme.bfo.cyberdyne.ServiceException". Use

jar tf shark-1.1.jar | find "ServiceException"

参看一揽子计划。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签