|
Re: Questions about Code.debug(), Log.event(): msg#00165java.jetty.support
Never mind. A new day brought a quick resolution. I had some "residue" in my code that was needed for Jetty 3. BTW, the classloader issues that existed in Jetty 3 seem to be much cleaner in Jetty 4. Tony --- In jetty-support@xxxxxxxxxxxxxxx, "swtet <tony.thompson@xxxx>" <tony.thompson@xxxx> wrote: > As suggested, I am running each instance of Jetty in its own > classloader. The classloader that I am using is the URLClassLoader > with no parent. > > I have a web application that has several JSPs that have been > precompiled in the WEB-INF/classes directory. If I run this web > application on a Jetty instance in my main classloader, the web > application starts fine. If I run it on a Jetty instance in its own > classloader, the web application won't start because it can't find > any of my JSP class files (the mappings in my web.xml should be > correct since it will run in one but not the other). > > I am in the process of digging through everything trying to determine > why the class can't be found. Does anyone have a suggestion for > debugging this? I did turn on debug for Jetty and when the web > application starts, it shows the WAR file classes directory in the > classpath for Jasper (jar:file:/warFile.war!/WEB-INF/classes/). > > Thanks. > > --- In jetty-support@xxxxxxxxxxxxxxx, Greg Wilkins <gregw@xxxx> wrote: > > > > The simplest thing to do if you want different logging setup > > is to instantiate each jetty in it's own classloader - that way > > the statics are not shared. > > > > I have considered moving to log4j - but that would not help > > you here either. > > > > cheers > > > > > > swtet wrote:> Any information that is displayed by Jetty seems to > go through the > > > Log class (maybe I am not 100% correct on that), even the Code.xxx > () > > > methods. There seems to be a way to redirect the output by > setting a > > > LogSink in Log like this: > > > > > > Log.getInstance().add( myLogSink ); > > > > > > If I have more than one instance of Jetty running in the JVM, am > I > > > correct in assuming that the messages for both instances would go > to > > > the same log sink? I really need to have messages from each > instance > > > of Jetty go to separate log sinks so, if there is another way to > do > > > this...I am open to suggestions. > > > > > > Has any thought ever been given to using something like LogKit to > > > display this information instead of the current method? > > > > > > Thanks. > > > Tony > > > > > > > > > > > > For the latest information about Jetty, please see > http://jetty.mortbay.org > > > > > > > > > > > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > > > > > > > > > > > -- > > Greg Wilkins<gregw@xxxx> Phone/fax: +44 7092063462 > > Mort Bay Consulting Australia and UK. > http://www.mortbay.com ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM ---------------------------------------------------------------------~-> For the latest information about Jetty, please see http://jetty.mortbay.org Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Jetty/java processes not dieing?, Chris Bailey |
|---|---|
| Next by Date: | Re: Jetty 4.2.3 on Insignia Jeode VM, Greg Wilkins |
| Previous by Thread: | Re: Questions about Code.debug(), Log.event(), swtet <tony.thompson@xxxxxxxxxxxxxx> |
| Next by Thread: | problems with mod_jk, Alexey Yudichev |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |