gwt-log from maven repository - import can not be resolved

368 views
Skip to first unread message

kim.m...@informatik.uni-luebeck.de

unread,
Mar 13, 2013, 3:46:52 AM3/13/13
to gwt...@googlegroups.com
Hi,

I tried to integrate gwt-log with my GWT Project and add the dependency in my pom.xml,
unfortunately I can not  start my application any more since an import can not be resolved.
It would be really great, if one can help me.

Stack Trace from gwt:run (GWT DevMode)

[DEBUG] [UsER] - Validating newly compiled units
[DEBUG] [UsER] - Rebinding com.allen_sauer.gwt.log.client.impl.LogImpl
[DEBUG] [UsER] - Checking rule <generate-with
class='com.allen_sauer.gwt.log.rebind.RemoteLoggerConfigGenerator'/>
[ERROR] [UsER] - Errors in
'jar:file:/C:/Users/my/.m2/repository/com/allen-sauer/gwt/log/gwt-log/3.2.1/gwt-log-3.2.1.jar!/com/allen_sauer/gwt/log/shared/LogRecord.java'

[ERROR] [UsER] - Line 16: The import com.google.gwt.core.shared cannot be resolved
[ERROR] [UsER] - Line 34: GWT cannot be resolved
[ERROR] [UsER] - Line 34: GWT cannot be resolved
[ERROR] [UsER] - Line 86: GWT cannot be resolved
[ERROR] [UsER] - Unable to find type 'com.allen_sauer.gwt.log.client.impl.LogImpl'
[ERROR] [UsER] - Hint: Previous compiler errors may have made this type unavailable

[ERROR] [UsER] - Hint: Check the inheritance chain from your module; it
may not be inheriting a required module or a module may not be adding its
source path entries properly
[ERROR] [UsER] - Deferred binding failed for
'com.allen_sauer.gwt.log.client.impl.LogImpl'; expect subsequent failures

[ERROR] [UsER] - Unable to load module entry point class
de.user.ui.gxt.client.UsER (see associated exception for details)

[ERROR] [UsER] - Failed to load module 'UsER' from user agent 'Mozilla/5.0
(Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0' at
127.0.0.1:50153

My module.gwt.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module SYSTEM
"http://google-web-toolkit.googlecode.com/svn/releases/2.3/distro-source/core/src/gwt-module.dtd">
<module rename-to='UsER'>
        <!-- Inherit the core Web Toolkit stuff. -->
        <inherits name='com.google.gwt.user.User' />


                <!-- LOGGING -->
        <!-- Default to `ERROR`, but allow selection of a specific log level, say
                `INFO`, via the `log_level` URL parameter:
http[s]://hostame:port/yourmodule/Yourmodule.html?log_level=DEBUG -->
        <inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
        <set-property name="log_DivLogger" value="DISABLED" />
        <inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" />

        <!-- GXT -->
        <inherits name='com.extjs.gxt.ui.GXT' />

        <!-- Bibliothek von Bengi -->
        <inherits name='com.google.gwt.widgetideas.WidgetIdeas' />
        <inherits name='com.google.gwt.libideas.LibIdeas' />

        <!-- Bibliothek von Tim -->
        <inherits name='com.allen_sauer.gwt.dnd.gwt-dnd' />

        <!-- We need the JUnit module in the main module, -->
        <!-- otherwise eclipse complains (Google plugin bug?) -->
        <inherits name='com.google.gwt.junit.JUnit' />

         <!-- Specify the app entry point class. -->
        <entry-point class='de.user.ui.gxt.client.UsER' />

        <!-- Specify the paths for translatable code -->
        <source path='client' />
        <source path='shared' />

        <!-- Support German Language -->
        <extend-property name="locale" values="de" />

        <!-- Anwendungsmodule -->
        <generate-with class="de.user.ui.gxt.server.util.GWTReflectionGenerator">
                <when-type-is class="de.user.ui.gxt.client.modules.GWTReflection" />
        </generate-with>
</module>

Rob Ferguson

unread,
Mar 13, 2013, 4:58:19 AM3/13/13
to gwt...@googlegroups.com
Hi,

I am using gwt-log (3.2.1) with GWT 2.5.0 (and gwt-platform).

Take a look at this POM:


      <!-- GWT-Log dependencies -->
      <dependency>
        <groupId>com.allen-sauer.gwt.log</groupId>
        <artifactId>gwt-log</artifactId>
        <version>${gwt-log.version}</version>
      </dependency>

and this gwt.xml:



 
<!-- GWT-LOG -->
  <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
  <!-- <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" /> -->


 
<!-- In any real-world application, you will define at least    -->
  <!-- one locale in addition to the default locale.              -->
  <extend-property name="locale" values="en" />

  <!-- Add German language support
  <extend-property name="locale" values="de" />  -->

  <!--
       When developing, you may wish to turn on enhanced web mode stack traces.
       Note this adds overhead to the resulting JavaScript so you generally
       don"t want to leave this on for production.
  -->
  <set-property name="compiler.emulatedStack" value="true" />
  <set-configuration-property name="compiler.emulatedStack.recordLineNumbers" value="true" />
  <set-configuration-property name="compiler.emulatedStack.recordFileNames" value="true" />

  <!-- Loggers Enabled by default -->
  <set-property name="log_GWTLogger" value="ENABLED" />
  <set-property name="log_ConsoleLogger" value="ENABLED" />

  <!-- Loggers Disabled by default -->
  <set-property name="log_WindowLogger" value="DISABLED" />
  <set-property name="log_DivLogger" value="DISABLED" />
  <set-property name="log_FirebugLogger" value="DISABLED" />
  <set-property name="log_SystemLogger" value="DISABLED" />

  <!--
    Inspired by Apache log4j PatternLayout:
    http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
  -->
  <set-configuration-property name="log_pattern" value="(%F:%L) %d [%-5p] %m%n" />


Cheers
Rob

Kiahu.com

--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-log+u...@googlegroups.com.
To post to this group, send email to gwt...@googlegroups.com.
Visit this group at http://groups.google.com/group/gwt-log?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages