Community
Participate
Working Groups
Build Identifier: The J2EE server in Eclipse is actually built off of Jetty. When a Static Web Project is deployed on it, it cannot list the contents of the project's directory. It shows HTTP Error 403. Forbidden. Now deploy a Dynamic Web Project on the same Jetty server. The server can show the directory listing of this project. The problem is in the Jetty plugin for Eclipse. org.mortbay.jetty.handler.ResourceHandler class handles SWP. The handle() checks if the resource is a directory. If it is, it tries to serve the welcome file index.html. If the welcome file(s) are missing, then it sends Error 403. Reproducible: Always Steps to Reproduce: 1. Create a J2EE Server in Eclipse 3.6 2. Create a Static Web Project (call it say, "swp") 3. Create an HTML file. DO NOT name it index.html 4. Deploy the project to the server. 5. Access the app using the URL http://localhost:8080/swp You will see an error 403.
This sounds like the dirAllowed initParameter of the defaultweb.xml file is set to false.
Actually it is set to true which is why the directory listing of Dynamic Web Projects is allowed.
What's the outlook for this bugzilla. Any chance we could get it in 2010?
Created attachment 179707 [details] jetty-7 version of the class
Prasad, Billy, Jetty-6 is not under active development any longer - just security fixes mostly - so is it possible for the J2EE server project to upgrade to jetty-7? Failing that, I suggest it might be quicker to create the project's own ResourceHandler based off the jetty-7 version. It should be about a dozen lines to do the configuration and directly serving. I'm attaching a copy of the jetty-7 ResourceHandler.java for info. regards Jan
Jesse, can you look at this one. thanks
As far as I know we have jetty7 HttpService being provided now...I'll check with Hugues but I had thought it was the default now.
seems we might be waiting on this issue? https://bugs.eclipse.org/bugs/show_bug.cgi?id=309529 I suspect there is a small cluster of issues here that are either resolved or very close to being resolves once we take a bit of a looksee
1.6 has been released
doh, closed the wrong one
Prasad, As Equinox has updated to jetty-8, (see closed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=309529), can you retest and let us know if this issue is resolved? thanks Jan
they are on 8.1.3 for juno as well
Created attachment 215012 [details] Error displayed when the server is starting (Eclipse 4.2)
Hi all, I've verified this defect and these are the results: Using Eclipse JEE Indigo 3.7: When I performed the last step I got a 404 Error... So, I guess this is the expected behavior. However... Using Eclipse JEE Juno 4.2: When I tried to start the server the following error was displayed. "Could not find required bundle org.mortbay.jetty.server" I'm attaching an screenshot of the error. Thanks!
juno doesn't use org.mortbay.jetty.server it should be something like org.eclipse.jetty.server I think
That's correct, org.eclipse.jetty.server plugin is in the installation directory. But the questions is: Why Eclipse is trying to get org.mortbay.jetty.server instead of org.eclipse.jetty.server? This should be a defect, right?? do you know if there is an open defect for this error? Thanks Jesse for the quick response.
Hi Pablo, I have seen the same problem with using Juno. I am talking to some of the Equinox guys to work out on which Eclipse component we need to raise this bug. I'll update this bug when I hear back from them. thanks Jan
I created some bugs for this on the WTP project: https://bugs.eclipse.org/bugs/show_bug.cgi?id=378492 https://bugs.eclipse.org/bugs/show_bug.cgi?id=378493 Jan
Closing this bug as the related bugs on the wtp project (see comment #18) have been marked as fixed.