Re: [jetty-users] Logging Custom Handlers JUL
Joakim, i am trying to integrate the custom logger into jetty, but for some reason i can't get it to work. Let me give you where i am thus far. I have followed your instructions here. My custom handler does indeed get all the logging that Jetty itself kicks out. I am able to confirm that my custom handler is running. However, what i cannot get, is for any class deployed in my webapp to reach to the custom logging handler. It just refuses to get there. So my questions are: 1/ Where should one place my custom handler jar file? You noted before that /lib/etc/ is too late, so if that is the case, then where? 2/ Should i run with --exec ? 3/ The classloader that handles the webapp, will that use the custom handler that the core jetty has created? I feel so close to getting this working, yet i am no further forward from the moment i started. I created an example project showing how to set this up, see https://github.com/jetty-project/jetty-and-jul-example. ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users
[jetty-users] Custom Policy per WebApp
Good afternoon. I am trying to follow the guide here: http://wiki.eclipse.org/Jetty/Tutorial/Jetty/Tutorial/Jetty-Policy What i am trying to do is to have webapps access to files within their own webapp deployment folder. I do not wish them to be able to do anything (including listing directories) outside of their own webapp folder. I am not sure however where to go from the documentation. It kinda stops short of an example that is useful. For example, what name should i give the policy file that it talks about creating? I assume the same name as the context file i create. Or do i have to reference it somehow from inside the context file for the webapp. Any guidance greatly received. thank you ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users
Re: [jetty-users] Adding/Removing a webapp to an embedded Jetty
Thank you Ivan for that. OSGi is something i am not familiar with, is this a different way of loading up Jetty and having it manage the resources? Does Jetty itself not have ways to do this? Ivan Larionov wrote: Hi, It is highly likely that this will not be extremely helpful for you, but anyway, in my osgi environment I can add web applications as described here http://wiki.eclipse.org/Jetty/Feature/Jetty_OSGi#The_OSGi_service_.27org.eclipse.jetty.server.handler.ContextHandler.27. I believe one can follow the source code of jetty to find out how it does it. Regards, Ivan On 31.10.2011 11:31, Alan Williamson (aw2.0 cloud experts) wrote: I asked this on StackOverflow, but no one was around. http://stackoverflow.com/questions/7909100/adding-removing-a-webapp-to-an-embedded-jetty I have a Jetty embedded server started up. I wish to be able to do a hot deploy of a webapp and be able to unload it again, all programmatically. Once the server is started, any attempts to add a handler to it throws an error. I tried using ContextHandlerCollection and then using .addContext() to get it up and running but not sure if that is the right way to go about it. Can someone please point me in the right direction? thank you ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users
[jetty-users] Adding/Removing a webapp to an embedded Jetty
I asked this on StackOverflow, but no one was around. http://stackoverflow.com/questions/7909100/adding-removing-a-webapp-to-an-embedded-jetty I have a Jetty embedded server started up. I wish to be able to do a hot deploy of a webapp and be able to unload it again, all programmatically. Once the server is started, any attempts to add a handler to it throws an error. I tried using ContextHandlerCollection and then using .addContext() to get it up and running but not sure if that is the right way to go about it. Can someone please point me in the right direction? thank you ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users
Re: [jetty-users] Logging Custom Handlers JUL
@Jan did you get a chance to have a look at this? Very frustrating that Jetty is refusing to play with the j.u.l custom handlers. Alan Williamson (aw2.0 cloud experts) wrote: Sure Jan, here is the full trace: http://pastebin.com/cZkNSk3S I have put the necessary classes in the ./lib/ext/ folder Jan Bartel wrote: Alan, I wonder if j.u.l is expecting those classes to be on the system classpath, rather than a child classpath? It would be helpful if you could post the rest of that stack trace too. Jan ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users
Re: [jetty-users] Logging Custom Handlers JUL
The jar files are definitely being loaded, as they get a file lock on them preventing me from deleting them (Windows) (but i can also see them being loaded via lsof on Linux). Andrew Penhorwood wrote: What are the using for start.ini? If you use OPTION=ALL does the jar file get picked up? This will cause any and all JAR files in the installation to be added to Jetty on start. ___ jetty-users mailing list jetty-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/jetty-users