On 6 nov, 17:40, leslie <[email protected]> wrote: > Eclipse Helios 3.6 JEE > Java 1.6.0_22 > GWT 2.1 > Mac OS X 10.5.8 > > I'm attempting to use the Logging feature available in GWT 2.1 and I'm > having trouble. > > I have the following file for a module > > <?xml version="1.0" encoding="UTF-8"?> > <module rename-to="view"> > <inherits name="com.google.gwt.user.User" /> > <inherits name="com.google.gwt.user.theme.standard.Standard" /> > <inherits name="com.google.gwt.gen2.picker.Picker" /> > <inherits name="gwtupload.GWTUpload"/> > <inherits name="com.google.gwt.logging.Logging" /> > <source path="view" /> > <stylesheet src="Upload.css"/> > > <set-property-name="gwt.logging.logLevel" value="INFO"/> > <set-property-name="gwt.logging.enabled" value="TRUE"/> > <set-property-name="gwt.logging.consoleHandler" value="ENABLED"/> > <set-property-name="gwt.logging.firebugHandler" value="ENABLED"/> > <set-property-name="gwt.logging.popupHandler" value="ENABLED"/> > > </module> > > But I can neither compile nor run the application. The message which > appears in the console is : > > Loading modules > mypackage.MyApp > Loading inherited module 'mypackage.controller' > Loading inherited module 'mypackage.view' > [ERROR] Failure while parsing XML > org.xml.sax.SAXParseException: Element type "set-property-name" must > be followed by either attribute specifications, ">" or "/>".
Yes, this is obviously not XML, you have a dash between set-property and name that shouldn't be there: <set-property name="gwt.logging.logLevel" value="INFO" /> (BTW, you can either use "></set-property>" or "/>" to "close" the element) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
