aspose file tools*
The moose likes Tomcat and the fly likes deploy compiled servlets w/ only J2SE 1.4? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "deploy compiled servlets w/ only J2SE 1.4?" Watch "deploy compiled servlets w/ only J2SE 1.4?" New topic
Author

deploy compiled servlets w/ only J2SE 1.4?

Salvador Cecilio
Ranch Hand

Joined: Dec 20, 2004
Posts: 41
Is is possible to deploy Servlet files compiled on a J2EE machine to a Solaris/Apache/Tomcat server with only J2SE 1.4 installed?
[ May 25, 2006: Message edited by: Bear Bibeault ]

SCJP 1.4 - 93%
SCWCD 1.4 - 89%
IBM FileNet 3.5 - Developer
IBM FileNet 3.5 - Administrator
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You can deploy using an ANT script and ant 1.6.5 works with Java 1.4 ... so yes you can.
Salvador Cecilio
Ranch Hand

Joined: Dec 20, 2004
Posts: 41
Cool, I was wondering how existing Servlet files on the Tomcat server were working, despite not being able to compile the java source code files on that same server machine.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat provides what it needs from j2ee with the tomcat/common/lib/servlet-api.jar lib.
You should be able to compile your servlet code on the machine with j2se if you have that jar file in your classpath.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Salvador Cecilio
Ranch Hand

Joined: Dec 20, 2004
Posts: 41
Yep, set classpath to the server.jar file and it compiled.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: deploy compiled servlets w/ only J2SE 1.4?