We could say that a WAR file is nothing more that a standard zip file,
(or a .jar) with all the files and directory structure of your webapp.
When you deploy a WAR file into tomcat, it extracts the file content
into a directory, so it would have exactly the same result if you deploy
your webapp directly by copying the webapp directory to the server or by
packing this directory to a WAR, and deploying it to tomcat. The last is
the preferred way.
In eclipse you can create a WAR file exactly the same way you create a
JAR, but the filename must have the .war extension. So you don't need to
use the Sysdeo plugin, because it seems that the problem is in the war
generation.
You could even create the war using the jar command line tool. Of course
i'm supposing that the application is working if you deploy it without
using a war file.
Vitor
Ralf Schneider wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>I'm quite new to developing web applications with Tomcat (5.0.6 that comes
>with JWSDP 1.3). I have a problem with starting a web application that is
>deployed as a WAR file.
>
>On my machine the web application works fine, but here I use it from the
>unpacked directory structure. Now, I generated a WAR file from within Eclipse
>(using the Tomcat plugin from Sysdeo) and copied it to another machine into
>the webapps directory where the same Tomcat version runs. When I open the
>HTML frontend of the manager application I then see the web application, but
>I'm not able to start it.
>
>The logfile says:
>INFO: standardHost.start /demo_02
>15.01.2004 09:41:28
org.apache.catalina.core.StandardContext start
>SCHWERWIEGEND: Error listenerStart
>15.01.2004 09:41:28
org.apache.catalina.core.StandardContext start
>SCHWERWIEGEND: Context startup failed due to previous errors
>
>Do I have to change anything to be able to run the application from within a
>WAR file?
>
>Best regards,
>Ralf.
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.1 (GNU/Linux)
>
>iD8DBQFABmEW7YyyfykA0YkRAnHFAKCN1qdPnLCJfRZgkndWnhVjoX1laACgieBk
>ZqNqRezrodFXc8kv6gYbk5o=
>=bPMD
>-----END PGP SIGNATURE-----
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
>
--
*Vitor Buitoni*
/Programador - APC/
*D�GITRO TECNOLOGIA*
*E-mail:* vitor.buitoni@(protected)>
*Fone:* (0xx48) 281-7314 / (0xx48) 281-7000
*Fax:* (0xx48) 281-7000
*Site:* www.portaldigitro.com.br <http://www.portaldigitro.com.br>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)