aspose file tools*
The moose likes Java in General and the fly likes Producing a Build of an Application Developed Eclipse WTP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Producing a Build of an Application Developed Eclipse WTP" Watch "Producing a Build of an Application Developed Eclipse WTP" New topic
Author

Producing a Build of an Application Developed Eclipse WTP

Kamron Abtahi
Greenhorn

Joined: Jun 17, 2010
Posts: 17
Hey Everyone,

I wanted to asked you guys about producing a build for an application I developed in Eclipse WTP. I am running Eclipse version 3.5 with WTP 3.1.1 I believe. I developed my application with Java 1.6.0 (6.0) and Apache Tomcat 6.0. I extracted it as a WAR file to give to my buddy who is doing the deployment on his server. He is currently running JBoss 4.2.0 with Apache Tomcat 5.0 on java 1.5.0. The WAR file did not build properly when he attempted to do so. My question is if i can take an application, developed with java 1.6 on Tomcat 6.0 to that version of JBoss? I will be acquiring the database and application server my buddy will be using so i can personally test it myself. Will I be able to load it up on JBoss as is or will i have to download the JBoss server, install in my eclipse IDE then extract the WAR?

On a separate note, I saw another server setting in my Apache Tomcat 6.0 that i thought may be contributing to my issue when trying to build the WAR in JBoss. Within the server overview (when double clicking the server) I had chosen the option in Server Locations to "Use Tomcat installation (takes control of Tomcat installation)" rather then the default to "Use workspace metadata (does not modify tomcat installation). I was wondering if this could have caused issue with the build as well. Since the server is housed within the tomcat, which is not the server of choice for the build (JBoss 4.2.0 is) instead of the workspace metadata, maybe this is causing the error. The error, which i can include from the server log, points to jsp issues. JSP is an extension i had to add to tomcat since it doesnt come with it but i had heard it does in JBoss. Any thoughts?

Thanks in advance.

V/R

Kamron
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

We have no idea *why* it didn't work on your friend's server, which makes anything we come up with pure speculation. However, you'd need to either compile with Java 1.5, or set the target to 1.5, and not use any Java 1.6 APIs/features/etc., and similarly, not rely on any JEE functionality that's not present in Tomcat 5.0.
Kamron Abtahi
Greenhorn

Joined: Jun 17, 2010
Posts: 17
That information was helpful David. Some additional questions to build on that response. I developed the majority of my application in Java 1.5.0 and change the JRE towards the end to try to make sure i had the newest releases. The application is small (only about 2.5 mb) and simple. The only real tool i use in it is JSF 1.2. I was curious if there was any JEE functionality that i may have been utilizing? It is simply a search application based off of name and address using managed beans in JSF.

In the end, if i take my project, build it on the JRE 1.5 and use tomcat 5.0, should it deploy smoothly on JBoss 4.2.0? I believe so since it is running tomcat 5.0 or 5.5 itself. Thanks.

-Kamron
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Kamron Abtahi wrote:I was curious if there was any JEE functionality that i may have been utilizing?

I have no idea what you did.
Kamron Abtahi
Greenhorn

Joined: Jun 17, 2010
Posts: 17
Well what JEE functionality was added to Java 6.0 that 1.5.0 would not have? I am not sure, but i am thinking the additions can be too many and from that list i can tell if i utilized any of those. I highly doubt it, my application is very very simple and straight forward using .JSF 1.2. Its basically the only plug-in and additional functionality being utilized. Thanks.

-Kamron
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

If we should have any change of helping you, you need to show us:

1. how the WAR structure is - after you have build it.
2. what the web.xml looks like (are there any specific Tomcat in it - I don't think so, but we don't know - you do)

A proper constructed WAR should run on a JBoss without any problems.


Regards, Rene Larsen
Dropbox Invite
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Kamron Abtahi wrote:Well what JEE functionality was added to Java 6.0 that 1.5.0 would not have? I am not sure, but i am thinking the additions can be too many and from that list i can tell if i utilized any of those. I highly doubt it, my application is very very simple and straight forward using .JSF 1.2. Its basically the only plug-in and additional functionality being utilized. Thanks.

-Kamron

If you compile with the -target 1.5 option, as David mention, you should get the code in java 1.5 - and it should run on (JBoss 4.2.0 with Apache Tomcat 5.0 on java 1.5.0)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Kamron Abtahi wrote:Well what JEE functionality was added to Java 6.0 that 1.5.0 would not have?

None; the additions would be to JEE, not JSE.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Producing a Build of an Application Developed Eclipse WTP
 
Similar Threads
advice regarding URL for a servlet
tomcat eclipse start issue
Struts 2 -Eclipse
Eclipse - Server not available on Run on Server
HTTP Status 404 error in tomcat