0 Replies Latest reply on Dec 19, 2012 12:58 AM by yagerhard

    Proxy and network connectivity issues

    yagerhard

      Hi all,

       

      I'm having some problems running the very first Errai appliaction - the one that is created from the maven archtype.

       

      I start the app.....

       

      $ mvn clean gwt:run

      [INFO] Scanning for projects...

      [INFO]                                                                        

      [INFO] ------------------------------------------------------------------------

      [INFO] Building foobar 1.0-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      Downloading: http://repository.jboss.org/maven2/org/jboss/errai/reflections/reflections-parent/2.1.0-SNAPSHOT/maven-metadata.xml

      [WARNING] Could not transfer metadata org.jboss.errai.reflections:reflections-parent:2.1.0-SNAPSHOT/maven-metadata.xml from/to jboss maven2 repository (http://repository.jboss.org/maven2/): Access denied to: http://repository.jboss.org/maven2/org/jboss/errai/reflections/reflections-parent/2.1.0-SNAPSHOT/maven-metadata.xml

      [INFO]

      [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ foobar ---

      [INFO] Deleting /Users/rcs/workspaces/tmp/foobar/target

      [INFO] Deleting /Users/rcs/workspaces/tmp/foobar/src/main/webapp/WEB-INF/classes

      [INFO] Deleting /Users/rcs/workspaces/tmp/foobar (includes = [www-test/**, .gwt/**, .errai/**, src/main/webapp/app/**, src/main/webapp/WEB-INF/deploy/**, src/main/webapp/WEB-INF/lib/**, src/main/webapp/WEB-INF/classes/**, **/gwt-unitCache/**, **/*.JUnit/**], excludes = [])

      [INFO]

      [INFO] --- gwt-maven-plugin:2.4.0:clean (gwt-clean) @ foobar ---

      [INFO] auto discovered modules [com.mgb.App]

      [INFO]

      [INFO] >>> gwt-maven-plugin:2.4.0:run (default-cli) @ foobar >>>

      [INFO]

      [INFO] --- jacoco-gwt-maven-plugin:0.5.4.201202141554:prepare-agent (jacoco-gwt-prepare-agent) @ foobar ---

      [INFO] argLine set to -javaagent:/Users/rcs/.m2/repository/org/jboss/errai/jacoco-gwt-maven-plugin/0.5.4.201202141554/jacoco-gwt-maven-plugin-0.5.4.201202141554.jar=snapshotDirectory=/Users/rcs/workspaces/tmp/foobar/target/snapshot-classes,snapshotClassLoaders=*gwt* -javaagent:/Users/rcs/.m2/repository/org/jacoco/org.jacoco.agent/0.5.4.201111111111/org.jacoco.agent-0.5.4.201111111111-runtime.jar=destfile=/Users/rcs/workspaces/tmp/foobar/target/jacoco.exec

      [INFO]

      [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ foobar ---

      [INFO] Using 'UTF-8' encoding to copy filtered resources.

      [INFO] Copying 6 resources

      [INFO]

      [INFO] --- gwt-maven-plugin:2.4.0:resources (gwt-compile) @ foobar ---

      [INFO] auto discovered modules [com.mgb.App]

      [INFO] 4 source files from GWT module com.mgb.App

      [INFO]

      [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ foobar ---

      [INFO] Compiling 4 source files to /Users/rcs/workspaces/tmp/foobar/src/main/webapp/WEB-INF/classes

      [INFO]

      [INFO] <<< gwt-maven-plugin:2.4.0:run (default-cli) @ foobar <<<

      [INFO]

      [INFO] --- gwt-maven-plugin:2.4.0:run (default-cli) @ foobar ---

      [INFO] create exploded Jetty webapp in /Users/rcs/workspaces/tmp/foobar/src/main/webapp

      [INFO] auto discovered modules [com.mgb.App]

      [ERROR] Dec 19 16:50:04 mark-badorreks-macbook-pro.local java[50356] <Error>: CGContextGetCTM: invalid context 0x0

      [ERROR] Dec 19 16:50:04 mark-badorreks-macbook-pro.local java[50356] <Error>: CGContextSetBaseCTM: invalid context 0x0

      [ERROR] Dec 19 16:50:04 mark-badorreks-macbook-pro.local java[50356] <Error>: CGContextGetCTM: invalid context 0x0

      [ERROR] Dec 19 16:50:04 mark-badorreks-macbook-pro.local java[50356] <Error>: CGContextSetBaseCTM: invalid context 0x0

      [ERROR] SLF4J: Class path contains multiple SLF4J bindings.

      [ERROR] SLF4J: Found binding in [jar:file:/Users/rcs/workspaces/tmp/foobar/src/main/webapp/WEB-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      [ERROR] SLF4J: Found binding in [jar:file:/Users/rcs/workspaces/tmp/foobar/src/main/webapp/WEB-INF/lib/weld-servlet-1.1.6.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      [ERROR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      [INFO] INFO [Version] WELD-000900 1.1.6 (Final)

      [INFO] INFO [Bootstrap] WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.

      [INFO] INFO [CDIExtensionPoints] starting errai cdi ...

      [INFO] INFO [CDIServletStateListener] Jetty detected, JSR-299 injection will be available in Servlets and Filters. Injection into Listeners is not supported.

      [INFO] INFO [CDIExtensionPoints] all services registered successfully

      [INFO] INFO [Reflections] Reflections took 897 ms to scan 7 urls, producing 321 keys and 1048 values [using 2 cores]

      [INFO] INFO [OrderedBootstrap] starting errai bus ...

       

       

      (we'll ignore the errors for the moment), then I launch the app from the "GWT Development Mode" console.

      The browser launches, and I see the following in the terminal......

       

       

      [INFO] INFO [DefaultComponents] authentication adapter configured: org.jboss.errai.bus.server.security.auth.JAASAdapter

      [INFO] INFO [DefaultComponents] using dispatcher implementation: org.jboss.errai.bus.server.SimpleDispatcher

      [INFO] INFO [DefaultComponents] using session provider implementation: org.jboss.errai.bus.server.HttpSessionProvider

      [INFO] INFO [LoadExtensions] searching for errai extensions ...

      [INFO] INFO [LoadExtensions] found extension org.jboss.errai.tools.monitoring.MonitorExtension

      [INFO] INFO [OrderedBootstrap] errai bus started.

      [ERROR] SLF4J: Class path contains multiple SLF4J bindings.

      [ERROR] SLF4J: Found binding in [jar:file:/Users/rcs/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      [ERROR] SLF4J: Found binding in [jar:file:/Users/rcs/.m2/repository/org/jboss/weld/servlet/weld-servlet/1.1.6.Final/weld-servlet-1.1.6.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]

      [ERROR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      [INFO] INFO [Reflections] Reflections took 1786 ms to scan 8 urls, producing 321 keys and 1048 values [using 2 cores]

      [INFO] INFO [Generator] not emitting server marshaller class

      [INFO] ERROR [RebindUtils] error accessing module XML file

      [INFO] java.io.IOException: Server returned HTTP response code: 407 for URL: http://google-web-toolkit.googlecode.com/svn/releases/1.6/distro-source/core/src/gwt-module.dtd

      [INFO]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:675)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1313)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1280)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1191)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1087)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1000)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)

      [INFO]     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)

      [INFO]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)

      [INFO]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

      [INFO]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)

      [INFO]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:232)

      [INFO]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)

      [INFO]     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)

      [INFO]     at org.jboss.errai.common.metadata.RebindUtils$2.run(RebindUtils.java:389)

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      [INFO]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      [INFO]     at java.lang.Thread.run(Thread.java:680)

      [INFO] INFO [MarshallerGeneratorFactory] generating marshalling class...

      [INFO] INFO [MarshallerGeneratorFactory] generated marshalling class in 752ms.

      [INFO] WARN [ErraiMarshalling] could not locate marshaller class.

      [INFO] WARN [ErraiMarshalling] using dynamic marshallers. dynamic marshallers are designed for development mode testing, and ideally should not be used in production. *

      [INFO] INFO [IOCBootstrapGenerator] generating IOC bootstrapping class...

      [INFO] INFO [IOCBootstrapGenerator] generated IOC bootstrapping class in 2508ms (3212 beans processed)

      [INFO] INFO [IOCBootstrapGenerator] using IOC bootstrapping code at: /Users/rcs/workspaces/tmp/foobar/.errai/BootstrapperImpl.java

      [INFO] INFO [RpcProxyLoaderGenerator] generating rpc proxy loader class.

       

       

      And NOTHING shows in the browser. Now, to be fair, when I run this at home (no proxy) the app actually does run (yay).

      However, at work, behine a proxy, I get the above results. I also get the above results even if I'm not connected to any network. This makes me think that I can't really develp an Errai app unless I'm always connected to the net.

      Is there something that can be done?

      Many thanks for you hep here everyone.

       

      MarkB