Re: problem deploying with maven

2010-07-04 Thread shirin
Hi again
I fix the previous problem and now I have another one.
In pom.xml file , I added dependency to one another module which used
JAXP.
now when I deploy the project I see this error:

WARNING: 'com.google.gwt.dev.GWTCompiler' is deprecated and will be
removed in a future release.
Use 'com.google.gwt.dev.Compiler' instead.
(To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM
arg.)
[ERROR] Failure while parsing XML
org.xml.sax.SAXNotRecognizedException: 
http://apache.org/xml/features/nonvalidating/load-external-dtd
at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:
102)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:320)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
$100(ReflectiveParser.java:48)
at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
398)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
257)
at com.google.gwt.dev.cfg.ModuleDefLoader
$1.load(ModuleDefLoader.java:169)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
283)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
141)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:155)
at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:126)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:133)
[ERROR] Unexpected error while processing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:351)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
$100(ReflectiveParser.java:48)
at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
398)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
257)
at com.google.gwt.dev.cfg.ModuleDefLoader
$1.load(ModuleDefLoader.java:169)
at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
283)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
141)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:155)
at com.google.gwt.dev.GWTCompiler$1.run(GWTCompiler.java:126)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:133)

while without adding this additional module, the project deployed and
compiled properly. the version of GWT is 2.0.3. how can I ger rid of
this error

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



problem deploying with maven

2010-07-02 Thread shirin
I have a gwt project and in this project I used gxt as well
I deployed the project with ant and it deployed and run properly. Now
I want to use maven to deploy it
I use GWT version 2.0.3 and in pom.xml I mentioned this version of GWT
After runing command mvn clean install I get this prompts:

com.google.gwt:gwt-dev:zip:windows-libs:2.0.3
Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev
-Dversion=2.0.3 -Dclassifier=windows-libs -Dpackaging=zip -Dfile=/path/
to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -
Dversion=2.0.3 -Dclassifier=windows-libs -Dpackaging=zip -Dfile=/path/
to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.mypath:myApp:war:1.0-SNAPSHOT
2) com.google.gwt:gwt-dev:zip:windows-libs:2.0.3

2) com.google.gwt:gwt-dev:jar:windows:2.0.3

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-dev
-Dversion=2.0.3 -Dclassifier=windows -Dpackaging=jar -Dfile=/path/to/
file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=com.google.gwt -DartifactId=gwt-dev -
Dversion=2.0.3 -Dclassifier=windows -Dpackaging=jar -Dfile=/path/to/
file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.mypath:myApp:war:1.0-SNAPSHOT
2) com.google.gwt:gwt-dev:jar:windows:2.0.3

In the pom.xml file, I used  : 
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
as maven repository but it is not up to date and I couldn't find gwt-
dev-windows-libs or gwt-dev-windows.jar version 2.03
In my ant project I just have gwt-dev.jar
Shall I use this jar file and install it as windows and windows-lib
files artifacts?
Any idea?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem deploying RPC application to jetty

2010-06-02 Thread shirin
Hi
I have a RPC application , very simple with just one servlet class in
server package. it runs good locally but when I deploy it in jetty in
a remote server it said that it can not find my servlet class
this jetty server has been configured before and has a specific
deploying strategy. For example every servlet class should be call so:

/servlet/OneServlet

and I can not change the jetty settings. I should make my project so
that it can work with this server.
I did whatever I could to handle this problem but so far no success.
Could you please help me for the matter?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem deploying RPC application to jetty

2010-06-02 Thread shirin
Hi
I posted this error before. I did lots of thing but still without
success
let me give some more details:
say my project name is gwtexample
and my servlet class name is myServlet
in web.xml I defined
servlet-mapping
 
 url-pattern/gwtexample/myServlet/url-pattern
/servlet-mapping

then I deploy every things in jetty server in a remote server
the path of deployed project in jetty is something like this:
/webapps/root/gwtexample
and inside the gwtexample I have every things: my Gwtexample.html
file, resources and also another gwtexample folder which contains js
files (that one which is produced by GWT at compile time).

when I try to run the application, I see this line in jetty's log file
POST /gwtexample/gwtexample/myServlet HTTP/1.1 404 1239

I can not put everything just simply in root folder in order to get
rid of extra gwtexample. So, how can I fix the problem. any solution?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.