Folks,
I am new to the GWT and I am having a bit of trouble. What I am
trying to do is to take an example the works with the GWT-compile GWT-
shell scripts and develop an ant build file so that I can deploy the
example to tomcat. Some quick info
Apache Tomcat 6.0.14
JVM 1.5.0_13-b05-241
Mac OS X 10.4.11
GWT gwt-mac-1.4.61
When I deploy my app to tomcat and access the webpage, I keep getting
the following error:
Apr 17, 2008 2:40:14 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet shell
java.lang.ClassNotFoundException:
com.google.gwt.dev.shell.GWTShellServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1358)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1204)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1083)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
806)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:613)
Apr 17, 2008 3:07:01 PM org.apache.catalina.core.StandardWrapperValve
invoke
INFO: Servlet shell is currently unavailable
Yes I know my ant file is not perfect, but I am trying to get the
application to successfully deploy to tomcat and then I will go back
and clean it up. My ant file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<project name="gwtupload" default="compile" basedir=".">
<description>Generates Javascript for GWTApplication.</
description>
<property name="tomcat.manager.url" value="
http://localhost:8080/
manager"/>
<property name="tomcat.manager.username" value="*******"/>
<property name="tomcat.manager.password" value="******"/>
<property name="gwtpath" value="/usr/local/gwt" />
<property name="targetdir" value="${basedir}/www/${app}" />
<property name="wwwdir" value="${basedir}/www"/>
<property name="srcdir" value="${basedir}/src"/>
<property name="bindir" value="${basedir}/bin"/>
<property name="lib.dir" value="${basedir}/www/WEB-INF/lib"/>
<property name="appserver.lib" value="/usr/local/tomcat/lib"/>
<property name="deploy.dir" value="/usr/local/tomcat/webapps/
gwtupload"/>
<property name="gwt.components" value="/usr/local/code/Components"/>
<property name="name" value="gwtupload"/>
<property name="app" value="com.gwtsolutions.UploadFile"/>
<path id="classpath">
<pathelement location="${gwtpath}/gwt-dev-mac.jar"/>
<pathelement location="${gwtpath}/gwt-user.jar"/>
<pathelement location="${srcdir}"/>
<pathelement location="${bindir}"/>
<pathelement location="${gwt.components}"/>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
<path id="catalina-ant-classpath">
<fileset dir="${appserver.lib}">
<include name="catalina-ant.jar"/>
</fileset>
</path>
<target name="compile-gwt">
<java classname="com.google.gwt.dev.GWTCompiler" fork="true">
<classpath refid="classpath" />
<jvmarg value="-XstartOnFirstThread" />
<arg value="-out" />
<arg value="${wwwdir}" />
<arg value="${app}" />
</java>
</target>
<target name="compile" depends="compile-gwt">
<mkdir dir="${targetdir}/WEB-INF/classes"/>
<javac srcdir="${srcdir}"
destdir="${targetdir}/WEB-INF/classes"
excludes="**/client/*.java">
<classpath refid="classpath"/>
</javac>
</target>
<target name="deploy" depends="compile" description="Deploy
application">
<copy todir="${deploy.dir}" preservelastmodified="true">
<fileset dir="${wwwdir}">
<include name="**/*.*"/>
</fileset>
</copy>
</target>
</project>
Does anybody notice anything stupid that I am doing?
Thanks for the help!
Doug