Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Migrating a servlet-based application to JBOSS

 
Scott Updike
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just copy your war file (or directory) to JBoss's deploy directory and there you go. Simple as that.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Scott Updike
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic