Ok,
I got down to a root cause.  here you go:

[java] Deployer location : C:\apache\incubator-geronimo/applications/jmxdebug/target/geronimo-jmxdebug.war

Therefore:
return new File(".").toURI().resolve(location).toURL();
will cause an exception.
I am not sure how to solve this because apperently on unix, the location url is relative,
and on Windows it is absolute. Or maybe because my ant exists in e: and my geronimo in c:
well anyway, This is definately an issue that need to be fixed in the code.


I will try to look at it somemore tomorrow. Any Ideas, that would make for an slick solution?

Here is the root cause code from
org/apache/geronimo/deployment/Deployer.java
(I added the System.out.println just before the suspect line 212)

private static URL getURL(String location) throws MalformedURLException {
File f = new File(location);
if (f.exists() && f.canRead()) {
return f.toURI().toURL();
}
System.out.println("Deployer location : " + location);
return new File(".").toURI().resolve(location).toURL();
}



The exact error is indicating that:
java.lang.IllegalArgumentException
at java.net.URI.create(URI.java:838)
at java.net.URI.resolve(URI.java:1024)
at org.apache.geronimo.deployment.Deployer.getURL(Deployer.java:212)
at org.apache.geronimo.deployment.Deployer.parseArgs(Deployer.java:195)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:69)
at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<gener






Reply via email to