aspose file tools*
The moose likes JBoss/WildFly and the fly likes Migrating a servlet-based application to JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Migrating a servlet-based application to JBOSS" Watch "Migrating a servlet-based application to JBOSS" New topic
Author

Migrating a servlet-based application to JBOSS

Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
This may be a stupid question, but I'm new to JBoss and have the following question. I have built a basic servlet/JSP web application and currently run it through Tomcat 5. I built it by hand (I did not use Ant) by building, compiling, and copying the files manually to the appropriate Tomcat directories (yes, it's a small app). My question is: what's the best way to migrate this app to JBoss? I know that JBoss has Tomcat 5 "built in", but I can't seem to find any resources on migrating applications that were not built by Ant and do not involve EJBs.

Can someone recommend any sites or books that will guide me through this? I'm assuming the process is fairly easy, but I need something that doesn't assume the usage of Ant.

Any help would be greatly appreciated.

Thanks in advance.
Scott
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Just copy your war file (or directory) to JBoss's deploy directory and there you go. Simple as that.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Also, Ant is just a build tool, not related to anything else or causes you applicaiton to be any different than if you do those steps manually or use some other build tool.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
I have good news and bad news. The good news is that the application is running (thanks for all the advice - it worked). I'm able to log into the MySQL database for authentication and see the main screen; however, (bad news) when I try to do process any updates to the data, I get the following error:

java.lang.IllegalArgumentException
java.sql.Date.valueOf(Unknown Source)

In my java code, I do some date conversions where the valueOf function came in handy. I get this error in JBoss, but when I run the application with Tomcat alone, the updates process without error.

Note: I did follow the JBoss "Get Started" instructions where I created a data source file called mysql-ds.xml which is stored in the default\deploy directory and I put the mysql-connector-java-3.1.12-bin.jar file in the default\lib directory.

Is there anything else I need to setup? Could this be a AS-related classpath issue?

Again, thanks in advance!
Scott
Scott Updike
Ranch Hand

Joined: Feb 16, 2006
Posts: 92
Please ignore my last post; I figured out my issue. I did not include the javascript files in my war file.

Thanks again to all those that provided input.

Scott
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Originally posted by Scott Updike:
Please ignore my last post; I figured out my issue. I did not include the javascript files in my war file.

Thanks again to all those that provided input.

Scott


Whew, at least they weren't that important to include

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrating a servlet-based application to JBOSS
 
Similar Threads
overwhelming DEBUG info during deployment
Jboss 3.2.3 & Tomcat 5?
JBoss vs Tomcat
Tomcat - java.lang.NoSuchMethodError with include
Calling EJBs from a JSP page