Redirect output to war file causes a FileNotFoundException

5 views
Skip to first unread message

mebe

unread,
Jan 5, 2008, 12:31:05 PM1/5/08
to Google Web Toolkit
Hello,
to deploy my project to jboss, i've followed this article:
http://techforb.blogspot.com/2007/09/gwt-with-extenal-application-server.html
One of the steps there is to update the eclipse launch configuration,
so any changes are compiled/written into the projects war file. This
is done with the following parameters:

-noserver -port 8080 -out "/opt/jboss/server/default/deploy/
WebApp.war" WebApp/com.jbosstest.Service/Service.html


Unfortuantly, this causes a FileNotFoundException as soon as an rpc
call is made with the following output printed at the GWT development
shell:

[ERROR] Unable to write file '/opt/jboss/server/default/deploy/
WebApp.war/com.jbosstest.Service/
77BE3B4D6860226E0C94CE0EA8AD9F7A.gwt.rpc'
java.io.FileNotFoundException: /opt/jboss/server/default/deploy/
WebApp.war/com.jbosstest.Service/
77BE3B4D6860226E0C94CE0EA8AD9F7A.gwt.rpc (Not a directory)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at com.google.gwt.dev.util.Util.writeBytesToFile(Util.java:926)
at com.google.gwt.dev.util.Util.writeBytesToFile(Util.java:914)
at com.google.gwt.dev.shell.StandardGeneratorContext
$PendingResource.commit(StandardGeneratorContext.java:142)
at
com.google.gwt.dev.shell.StandardGeneratorContext.commitResource(StandardGeneratorContext.java:
234)
at
com.google.gwt.user.rebind.rpc.ProxyCreator.writeSerializationPolicyFile(ProxyCreator.java:
555)
at
com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:
119)
at
com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java:
56)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
43)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:116)

If i use '-out' to redirect the output anywhere other than into a war
file, than anything is working well.
Now my question is: Is it allowed (should it work) to redirect the
output into a war file? If yes, do you have any ideas what may cause
this problem?
Thanks in advance for any help!

Reply all
Reply to author
Forward
0 new messages