大家好,我用maven建立了一个多模块工程。
再web工程上跑jetty的时候报错
com.opensymphony.xwork2.util.classloader.FileResourceStore.debug:61 - Unable to read file [java/lang/Exception.class]
java.io.FileNotFoundException: G:\java\dropbox\My Dropbox\haiqiang\toto\target\classes\java\lang\Exception.class (系统找不到指定的路径。)
怎么会这样的?
它没有自动去classpath扫描jar包么?怎么只在target/classes目录下找?

解决方案 »

  1.   

    <plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>6.1.10</version>
    <configuration>
    <scanIntervalSeconds>10</scanIntervalSeconds>
    <stopKey>foo</stopKey>
    <stopPort>9999</stopPort>
    </configuration>
    <executions>
    <execution>
    <id>start-jetty</id>
    <phase>pre-integration-test</phase>
    <goals>
    <goal>run</goal>
    </goals>
    <configuration>
    <scanIntervalSeconds>0</scanIntervalSeconds>
    <daemon>true</daemon>
    </configuration>
    </execution>
    <execution>
    <id>stop-jetty</id>
    <phase>post-integration-test</phase>
    <goals>
    <goal>stop</goal>
    </goals>
    </execution>
    </executions>
    </plugin>有环境变量classpath和maven_home吗
      

  2.   

    maven_home有的,但是classpath,它不会自动找到war包里面的web-inf么?系统变量java_home有设置的啊