I have now to a full test run on windows on the 3.2.2 branch.

Can somone apply my patch when they get a chance.

https://issues.apache.org/activemq/browse/SM-1263

thanks, Edell.


On 3/6/08, Edell Nolan <[EMAIL PROTECTED]> wrote:
>
> Another solution is to change the
>
> getFilePrefix()
> in DeploySupport and set the prefix to "///" if the os name is windows and
> then in AutoDeployService class create a URI and pass this over to the
> creation of the File.
>
> This is probably a better solution ??
>
>
>  On 3/6/08, Edell Nolan <[EMAIL PROTECTED]> wrote:
> >
> > I tracked this down to the AutoDeployment Service Class - method
> > unpackLocaion.
> >
> > Here it is creating a File based on the url location passed in. When you
> > do this it will be OS dependent and this fails on windows.
> > So I removed "file://" in the unpackLocation method and all works well.
> >
> > The file:// prefix is originally set up in  DeploySupport Class
> > **
> > *protected* String getFilePrefix() {
> >
> > *return* isFileUrlFormat() ? "file://" : "";
> >
> > }
> >
> > On windows when it attempts to create the file with file://blah it
> > leaves this in and when you attempt to see if this file exists it fails.
> >
> > If this seems like a reasonable fix - I will submit a patch.
> >
> > Edell.
> >
> >
> >
> >
> >
> >
> > On 3/6/08, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> > >
> > > I suppose you are on windows and that the exception comes from a bad
> > > url like
> > >   c:\xxx
> > > and for an unkown reason, c is considered as a host instead of the
> > > file system ?
> > >
> > > On Thu, Mar 6, 2008 at 1:22 PM, Edell Nolan <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hi,
> > > >
> > > >  I am still getting the
> > > >  org.apache.servicemix.lwcontainer.LwContainerComponentTest to Fail
> > > with the
> > > >  error below.
> > > >  I have ulhas changes.
> > > >
> > > >  Has anyone else seen this ?
> > > >
> > > >  thanks, Edell.
> > > >
> > > >
> > > >
> > > >  <stack-trace><![CDATA[javax.jbi.management.DeploymentException:
> > > >  java.net.UnknownHostException: c
> > > >
> > > >   at
> > > org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation
> > > >  (AutoDeploymentService.java:595)
> > > >
> > > >   at org.apache.servicemix.jbi.framework.InstallationService.install
> > > (
> > > >  InstallationService.java:276)
> > > >
> > > >   at
> > > >
> > > org.apache.servicemix.jbi.framework.AdminCommandsService.installComponent
> > > (
> > > >  AdminCommandsService.java:62)
> > > >
> > > >   at org.apache.servicemix.jbi.container.InstallComponent.doDeploy(
> > > >  InstallComponent.java:66)
> > > >
> > > >   at org.apache.servicemix.jbi.container.DeploySupport.deploy(
> > > >  DeploySupport.java:58)
> > > >
> > > >   at
> > > org.apache.servicemix.lwcontainer.LwContainerComponentTest.testEndpoints
> > > >  (LwContainerComponentTest.java:123)
> > > >
> > > >  Caused by: java.net.UnknownHostException: c
> > > >
> > > >   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
> > > >
> > > >   at java.net.Socket.connect(Socket.java:507)
> > > >
> > > >   at java.net.Socket.connect(Socket.java:457)
> > > >
> > > >   at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> > > >
> > > >   at sun.net.NetworkClient.openServer(NetworkClient.java:118)
> > > >
> > > >   at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
> > > >
> > > >   at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
> > > >
> > > >   at sun.net.www.protocol.ftp.FtpURLConnection.connect(
> > > FtpURLConnection.java
> > > >  :270)
> > > >
> > > >   at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(
> > > >  FtpURLConnection.java:352)
> > > >
> > > >   at java.net.URL.openStream(URL.java:1007)
> > > >
> > > >   at org.apache.servicemix.jbi.util.FileUtil.unpackArchive(
> > > FileUtil.java:154)
> > > >
> > > >   at
> > > org.apache.servicemix.jbi.framework.AutoDeploymentService.unpackLocation
> > > >  (AutoDeploymentService.java:582)
> > > >
> > > >   ... 31 more
> > > >
> > >
> > >
> > >
> > > --
> > > Cheers,
> > > Guillaume Nodet
> > > ------------------------
> > > Blog: http://gnodet.blogspot.com/
> > >
> >
> >
>

Reply via email to