Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Problem with jetty to pick up the files with .exe extension(on windows)

Hello,

I am using jetty to replace a existing Apache webserver in my project.
My project is supported on windows and Linux platforms. I am using
jetty.xml files to configure my webserver.
This works fine on Linux.

But on windows after starting the jetty server ( jetty server starts
without any error), when I am trying to access the URL through
http://<ip address>:<port>. I am getting a error like "http 404" not
found.

The resource files(executable) which need to be executed to serve this
page or in a PATH on windows like C:\Program Files\Project\bin\*.exe.
All the files have .exe extension on windows.

below is o/p from jetty on screen logs:

2010-06-03 11:51:04.834:DBUG::started HandlerCollection@2a15cd
2010-06-03 11:51:04.835:DBUG::starting Server@14c1103
2010-06-03 11:51:04.872:DBUG::started
org.mortbay.jetty.nio.SelectChannelConnector$1@1e2ca7
2010-06-03 11:51:04.875:INFO::Started SelectChannelConnector@0.0.0.0:8123
2010-06-03 11:51:04.875:DBUG::started SelectChannelConnector@0.0.0.0:8123
2010-06-03 11:51:04.876:DBUG::started Server@14c1103
2010-06-03 11:51:32.196:DBUG::REQUEST /dfm/ on
org.mortbay.jetty.HttpConnection@11bed71
2010-06-03 11:51:32.363:DBUG::servlet=org.mortbay.servlet.CGI-17901443
2010-06-03 11:51:32.363:DBUG::chain=null
2010-06-03 11:51:32.364:DBUG::servlet holder=org.mortbay.servlet.CGI-17901443
2010-06-03 11:51:32.370:DBUG::CGI: ContextPath :
2010-06-03 11:51:32.371:DBUG::CGI: ServletPath : /dfm
2010-06-03 11:51:32.371:DBUG::CGI: PathInfo    : /
2010-06-03 11:51:32.371:DBUG::CGI: _docRoot    : C:\Program Files
(x86)\NetApp\DataFabric Manager\DFM\bin
2010-06-03 11:51:32.371:DBUG::CGI: _path       : null
2010-06-03 11:51:32.372:DBUG::CGI: _ignoreExitState: false
2010-06-03 11:51:32.386:DBUG::RESPONSE /dfm/  404
2010-06-03 11:52:11.840:INFO::Shutdown hook executing
2010-06-03 11:52:11.841:INFO::Graceful shutdown
SelectChannelConnector@0.0.0.0:8123
2010-06-03 11:52:11.863:DBUG::stopped
org.mortbay.jetty.nio.SelectChannelConnector$1@1e2ca7
2010-06-03 11:52:11.864:INFO::Graceful shutdown
org.mortbay.jetty.servlet.Context@198a455{/,file:/C:/Program%20Files%20(x86)/NetApp/DataFabric%20Manager/DFM/bin/}
2010-06-03 11:52:12.865:DBUG::stopped SelectChannelConnector@0.0.0.0:8123
2010-06-03 11:52:12.865:DBUG::stopping Server@14c1103
2010-06-03 11:52:12.866:DBUG::stopping HandlerCollection@2a15cd
2010-06-03 11:52:12.867:DBUG::stopping RequestLogHandler@12c7568
2010-06-03 11:52:12.868:DBUG::stopped org.mortbay.jetty.NCSARequestLog@ec4a87
2010-06-03 11:52:12.868:DBUG::stopped RequestLogHandler@12c7568
2010-06-03 11:52:12.869:DBUG::stopping DefaultHandler@1827284
2010-06-03 11:52:12.870:DBUG::stopped DefaultHandler@1827284
2010-06-03 11:52:12.870:DBUG::stopping ContextHandlerCollection@121ab80
2010-06-03 11:52:12.871:DBUG::stopping
org.mortbay.jetty.servlet.Context@198a455{/,file:/C:/Program%20Files%20(x86)/NetApp/DataFabric%20Manager/DFM/bin/}
2010-06-03 11:52:12.872:DBUG::stopping ServletHandler@1595f51
2010-06-03 11:52:12.873:DBUG::stopped
org.mortbay.jetty.servlet.DefaultServlet-6259058
2010-06-03 11:52:12.873:DBUG::stopped
org.mortbay.proxy.AsyncProxyServlet$Transparent-20698484
2010-06-03 11:52:12.874:DBUG::stopped org.mortbay.servlet.CGI-13419912
2010-06-03 11:52:12.875:DBUG::stopped org.mortbay.servlet.CGI-27602911
2010-06-03 11:52:12.875:DBUG::stopped org.mortbay.servlet.CGI-17901443
2010-06-03 11:52:12.876:DBUG::stopped ServletHandler@1595f51
2010-06-03 11:52:12.877:DBUG::stopping ErrorHandler@96cf11
2010-06-03 11:52:12.877:DBUG::stopped ErrorHandler@96cf11
2010-06-03 11:52:12.878:DBUG::stopped
org.mortbay.jetty.servlet.Context@198a455{/,file:/C:/Program%20Files%20(x86)/NetApp/DataFabric%20Manager/DFM/bin/}
2010-06-03 11:52:12.879:DBUG::stopped ContextHandlerCollection@121ab80
2010-06-03 11:52:12.880:DBUG::stopped HandlerCollection@2a15cd
2010-06-03 11:52:12.881:DBUG::stopped
org.mortbay.thread.QueuedThreadPool@1b3f8f6
2010-06-03 11:52:12.882:DBUG::stopped Server@14c1103
2010-06-03 11:52:12.882:INFO::Shutdown hook complete


As this works fine on Linux where the executable files are not having
any extension. I am suspecting that this problem is happening due to
the file extension on Winows.
How can I tell jetty to pick up the files with extensions ?
Could any one help me?

--
Thanks,
Harikesh


Back to the top