RE: Class not found exception
I don't think run jetty run supports configuration by a jetty.xml. The author says in his "Usage" instructions "There aren't many options, just the web application directory, the context and the port. I intentionally keep it basic so that it will be easy to use and maintain; if you need anything more fancy, use one of the other Eclipse app server plugins, or do what I often do: create a start up class in your project." Not sure where that leaves you. Sorry I can't be more help. The basic problem is the same. You need to tell Jetty that you don't want it to "hide" the slf4j server classes. One way of doing that is setting the ServerClasses property as Ben did below. How you set that property with run-jetty-run is beyond me. Sorry. If you look at the wiki post linked to in my post you can just cut and paste the code into a run class and you will be up and running very quickly indeed. I agree with your "shoulds"...but maybe ditching run-jetty-run would help. Cheers Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:30 To: Tapestry users Subject: RE: Class not found exception Typo on my part. I meant Run Jetty Run: http://code.google.com/p/run-jetty-run/ which is an Eclipse plugin. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:23 To: Tapestry users Subject: RE: Class not found exception I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a "run class". Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words " What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. " Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a "Jetty Error". Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: true I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled *
RE: Class not found exception
Perfect. Thanks Martijn. -Original Message- From: Martijn Brinkers (List) [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:29 To: Tapestry users Subject: Re: Class not found exception See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Thu, 2008-07-17 at 14:13 +0100, Newham, Cameron wrote: > I'm doing the Tapestry Tutorial. I'm getting the following for the Forms > part of the tutorial: > > > > caught an exception while obtaining a class file for > org.apache.tapestry5.corelib.components.Form > > exception > > org.apache.tapestry5.internal.services.TransformationException: Error > obtaining injected value for field > org.apache.tapestry5.corelib.components.Form.logger: > java.lang.ClassNotFoundException: org.slf4j.Logger > > > > > > I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do > the Tapestry Tutorial. > > > > I see this has been raised before and is supposedly a "Jetty Error". > Unfortunately I am not knowledgable enough to fix this myself (and > really, the Tutorial should say something about this and give a fix > rather than leaving novices like me hanging with no idea what is going > on. Apologies if there is something about this, but a Google search > turns up very little). > > > > One solution was for jetty.xml to have: > > > > true > > > > > > I've done this, but it doesn't fix the problem. > > > > mvn jetty:run > > > > does allow the page to load, but I want to be able to run Jetty from > Eclipse. > > > > Can someone either point me at a solution or provide one? (and please, > it has to be in terms a novice can understand). > > > > Thank you! > > ** > > Experience the British Library online at www.bl.uk > > The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary > > Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook > > The Library's St Pancras site is WiFi - enabled > > * > > The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. > > The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. > > * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class not found exception
Typo on my part. I meant Run Jetty Run: http://code.google.com/p/run-jetty-run/ which is an Eclipse plugin. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:23 To: Tapestry users Subject: RE: Class not found exception I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a "run class". Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words " What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. " Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a "Jetty Error". Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: true I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any b
Re: Class not found exception
See: http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun Martijn On Thu, 2008-07-17 at 14:13 +0100, Newham, Cameron wrote: > I'm doing the Tapestry Tutorial. I'm getting the following for the Forms > part of the tutorial: > > > > caught an exception while obtaining a class file for > org.apache.tapestry5.corelib.components.Form > > exception > > org.apache.tapestry5.internal.services.TransformationException: Error > obtaining injected value for field > org.apache.tapestry5.corelib.components.Form.logger: > java.lang.ClassNotFoundException: org.slf4j.Logger > > > > > > I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do > the Tapestry Tutorial. > > > > I see this has been raised before and is supposedly a "Jetty Error". > Unfortunately I am not knowledgable enough to fix this myself (and > really, the Tutorial should say something about this and give a fix > rather than leaving novices like me hanging with no idea what is going > on. Apologies if there is something about this, but a Google search > turns up very little). > > > > One solution was for jetty.xml to have: > > > > true > > > > > > I've done this, but it doesn't fix the problem. > > > > mvn jetty:run > > > > does allow the page to load, but I want to be able to run Jetty from > Eclipse. > > > > Can someone either point me at a solution or provide one? (and please, > it has to be in terms a novice can understand). > > > > Thank you! > > ** > > Experience the British Library online at www.bl.uk > > The British Library's new interactive Annual Report and Accounts 2006/07 : > www.bl.uk/mylibrary > > Help the British Library conserve the world's knowledge. Adopt a Book. > www.bl.uk/adoptabook > > The Library's St Pancras site is WiFi - enabled > > * > > The information contained in this e-mail is confidential and may be legally > privileged. It is intended for the addressee(s) only. If you are not the > intended recipient, please delete this e-mail and notify the [EMAIL > PROTECTED] : The contents of this e-mail must not be disclosed or copied > without the sender's consent. > > The statements and opinions expressed in this message are those of the author > and do not necessarily reflect those of the British Library. The British > Library does not take any responsibility for the views of the author. > > * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class not found exception
I'm not sure how you run jetty from eclipse with jetty runner. Is it an eclipse plugin? -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 16:10 To: Tapestry users Subject: RE: Class not found exception Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a "run class". Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words " What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. " Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a "Jetty Error". Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: true I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - To unsubscribe, e
RE: Class not found exception
Thanks Russell. I had seen that one too but I'm afraid that, while I understand the underlying problem, the wiki entry solution doesn't mean a great deal to me as I am have not been using Maven for very long and don't know much about POMs or artifacts. I don't see why I should have to have a "run class". Surely it should just all work out of the box (or at worst, by modifying a Jetty XML file as I initially tried). Thanks. -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 15:15 To: Tapestry users Subject: RE: Class not found exception Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words " What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. " Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a "Jetty Error". Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: true I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class not found exception
Hi, I asked about this a few weeks back and Ben Gidley pointed me at the wiki with these words " What is happening is Jetty hides 'server' classes from the web application unless they are also in WEB-INF/lib. When you run in the IDE you don't have a WEB-INF/lib so it can't find the slf4j classes as they are loaded by Jetty as server classes. You are starting Tapestry inside your IDE using a Run class - you need to add a line into your startup class saying // Remove slf4j from list of classes not exposed to webapp webapp.setServerClasses(new String[] {"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."}); see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more details. " Hope that helps Russell -Original Message- From: Newham, Cameron [mailto:[EMAIL PROTECTED] Sent: 17 July 2008 14:13 To: Tapestry users Subject: Class not found exception I'm doing the Tapestry Tutorial. I'm getting the following for the Forms part of the tutorial: caught an exception while obtaining a class file for org.apache.tapestry5.corelib.components.Form exception org.apache.tapestry5.internal.services.TransformationException: Error obtaining injected value for field org.apache.tapestry5.corelib.components.Form.logger: java.lang.ClassNotFoundException: org.slf4j.Logger I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do the Tapestry Tutorial. I see this has been raised before and is supposedly a "Jetty Error". Unfortunately I am not knowledgable enough to fix this myself (and really, the Tutorial should say something about this and give a fix rather than leaving novices like me hanging with no idea what is going on. Apologies if there is something about this, but a Google search turns up very little). One solution was for jetty.xml to have: true I've done this, but it doesn't fix the problem. mvn jetty:run does allow the page to load, but I want to be able to run Jetty from Eclipse. Can someone either point me at a solution or provide one? (and please, it has to be in terms a novice can understand). Thank you! ** Experience the British Library online at www.bl.uk The British Library's new interactive Annual Report and Accounts 2006/07 : www.bl.uk/mylibrary Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook The Library's St Pancras site is WiFi - enabled * The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author. * Communications on or through ioko's computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Unless otherwise agreed expressly in writing, this communication is to be treated as confidential and the information in it may not be used or disclosed except for the purpose for which it has been sent. If you have reason to believe that you are not the intended recipient of this communication, please contact the sender immediately. No employee is authorised to conclude any binding agreement on behalf of ioko with another party by e-mail without prior express written confirmation. ioko365 Ltd. VAT reg 656 2443 31. Reg no 3048367. All rights reserved. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]