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?
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.
Joined: Jun 17, 2010
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 Abtahi wrote:I was curious if there was any JEE functionality that i may have been utilizing?
I have no idea what you did.
Joined: Jun 17, 2010
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 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.
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)