Hi Vincent,
First of all, is your question about simply deploying the
app or continuing the development work? In the latter
case, I'd strongly recommend using an IDE which fea-
tures an integrated servlet/jsp debugger. You may
want to give Sun's ONE Studio (formerly known as
Forte for Java) a closer look, it features both plus
an integrated Tomcat server, an HTTP monitor,
Ant integration, JDBC, XML, CVS support and tons
of additional features, and best of all, it's completely
free ;) There also is a free JBoss plugin from a third-
party supplier (LogicFlow, was it?). That's what I
use most of the time, at least (forte.sun.com).
May well have been the reason why Borland chose
to discontinue the Professional Edition with
JBuilder 7...
Anyway. Regardless if you're using an IDE or
stick to something more 'down to earth', if
porting your app anyway, it's a good idea
to make it compliant to the web app stan-
dard on this occasion. Yes, there is an
official Sun standard for web apps which
most of the current application servers
(including JBoss/Tomcat) support. You
may want to look up the details on the
web, but in short it's mainly about a
standardized directory layout plus an
XML file describing the whole thing.
The directory structure looks like
this:
[server 'webapps' directory]
|
|--[your app directory]
(put your HTML and JSP files here)
|
[WEB-INF directory]
|-- [classes]
| (this is where your .class files go)
|-- [libs]
(put additional .jar files here if used)
web.xml
The web.xml file resides in WEB-INF and
describes the application structure, you'll
have to look up the reference for details,
I'm afraid (in Forte, it's generated auto-
matically, and you can customize things
via property editors if you like). Every-
thing underneath WEB-INF is visible only
to your app files (not to the client), and
the contents of the /libs and /classes
directory is automatically added to the
classpath. When it comes to deploying
the whole thing, you can either just
copy your app directory to somewhere
else or zip|jar it and give it a .war en-
ding. In the latter case, just put the
.war file inside the webapps directory,
and the server will automatically expand
everything on startup or first demand.
In case of JBoss, you may alternatively
put the .war file inside the /deploy di-
rectory and let JBoss do the rest.
HTH,
-- Chris (SCJP2)
----- Original Message -----
From: "Vincent Lai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 19, 2002 10:45 PM
Subject: Migrating a project away from JBuilder
I have a JSP/servlet project which I built on JBuilder4. It was a school
project and since the project's finished, and since I no longer have
JBuilder
on my computer, I'd like to migrate it to a JBOSS-Tomcat setup.
I'm not sure what I need to do exactly to make the migration work. I
surmise
it's more than simply moving the directory with my project on it.
I have JBOSS 3.0, Java 1.4, and Tomcat 3.2.3 with Ant also installed, so I
also speculate that Ant will be integral to the migration.
Love to hear your thoughts and suggestions! I'll be also posting this to
other lists, too.
----- Original Message -----
From: "Vincent Lai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 19, 2002 10:45 PM
Subject: Migrating a project away from JBuilder
I have a JSP/servlet project which I built on JBuilder4. It was a school
project and since the project's finished, and since I no longer have
JBuilder
on my computer, I'd like to migrate it to a JBOSS-Tomcat setup.
I'm not sure what I need to do exactly to make the migration work. I
surmise
it's more than simply moving the directory with my project on it.
I have JBOSS 3.0, Java 1.4, and Tomcat 3.2.3 with Ant also installed, so I
also speculate that Ant will be integral to the migration.
Love to hear your thoughts and suggestions! I'll be also posting this to
other lists, too.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html