geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Boynes <jer...@coredevelopers.net>
Subject Re: What does this mean?
Date Sun, 29 Feb 2004 06:04:03 GMT
This is working for me:
default:
build:
assemble:
     [copy] Copying 1 file to C:\apache\incubator-geronimo\target\lib
     [copy] Copying 2 files to 
C:\apache\incubator-geronimo\target\repository
     [echo] Bootstrapping service deployer
     [echo] Building system configuration
     [java] Deployer location : src/plan/system-plan.xml
     [echo] Building server configuration
     [java] Deployer location : src/plan/j2ee-server-plan.xml
     [echo] Building debug tool configuration
     [java] Deployer location : 
C:\apache\incubator-geronimo/applications/jmxdebug/target/geronimo-jmxdebug.war
BUILD SUCCESSFUL
Total time: 22 seconds
Finished at: Sat Feb 28 21:58:08 PST 2004

(with allowances for line wraps).

The file exists for me so the URI.resolve is not used so I would not see 
the problem. We do need to trap the case where the URI cannot be 
resolved and I will check in a fix that, but it does not explain why the 
war is not getting built for you.

Are there any other errors earlier in the build?
Can you confirm if the war file exists or not?

Thanks
--
Jeremy

Bryce Alcock wrote:

> 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

>>
>>
> 


Mime
View raw message