hi, trying to add a test to my simple app - a hacked up greet server (please see test code below).

error says:

Starting HTTP on port 0
   HTTP listening on port 3518
Starting http://192.168.1.105:3518/p.Rtecg2.JUnit/junit.html?gwt.codesvr=192.168.1.105:3516 on browser FF3
Module p.Rtecg2.JUnit has been loaded
All clients connected (Limiting future permutations to: gecko1_8)
[WARN] CSS error: null [485:24] Error in expression. Invalid token "=". Was expecting one of: <S>, <COMMA>, "/", <PLUS>, ...

(there is a buch of the above).

then:

The development shell servlet received a request for 'greet' in module 'p.Rtecg2.JUnit.gwt.xml' [WARN] Resource not found: greet; (could a file be missing from the public path or a <servlet> tag misconfigured in module p.Rtecg2.JUnit.gwt.xml ?) (Rtecg2.java:105) 2010-10-15 14:56:35,937 [ERROR] clickhandler: An error occurred while attempting to contact the server. Please check your network connection and try again.

this kind of error also happens if i add a test to the generated greet server code (but without the css errors - i did change the css stuff in my app).

Starting HTTP on port 0
   HTTP listening on port 3552
Starting http://192.168.1.105:3552/p.R.JUnit/junit.html?gwt.codesvr=192.168.1.105:3551 on browser FF3
Module p.R.JUnit has been loaded
The development shell servlet received a request for 'greet' in module 'p.R.JUnit.gwt.xml' [WARN] Resource not found: greet; (could a file be missing from the public path or a <servlet> tag misconfigured in module p.R.JUnit.gwt.xml ?) lose: com.google.gwt.user.client.rpc.StatusCodeException: Cannot find resource 'greet' in the public path of module 'p.R.JUnit'

All clients connected (Limiting future permutations to: gecko1_8)


this module name: p.Rtecg2.JUnit.gwt.xml - seems strange. also so does: p.R.JUnit.gwt.xml

thanks






package p.client;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.Timer;

public class ATestCase extends GWTTestCase {

        public ATestCase(String name) {
                setName(name);
        }

        public ATestCase() {
        }

        protected void gwtSetUp() throws Exception {
                super.gwtSetUp();
        }

        protected void gwrTearDown() throws Exception {
                super.gwtTearDown();
        }

        @Override
        public String getModuleName() {
                return "p.Rtecg2";
        }

        public void testAnRpc() throws Exception {
                Rtecg2 module = new Rtecg2();
                final String id="xx";
                final Label label=new Label();
                module.oldSend(id, label);
                 Timer timer = new Timer() {
                   public void run() {
                        System.out.println(label.getText());
                    finishTest();
                   }
                  };
                  timer.schedule(200);
                  delayTestFinish(500);
                }}


---
co-chair http://ocjug.org/

--
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.

Reply via email to