Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 3.2.1

 
shishir gupta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JBoss. I have installed JBoss 3.2.1. I want to run my servlets and jsp in JBoss. please guide me how to do it. I mean is there any classpath to be set? It's urgent. pl help me. I have read the documentation but unable to solve the problem.
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is the problem that you are having? Deploying web applications in JBoss is no different from doing so in Tomcat or any other web container that will deploy a WAR.
 
shishir gupta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Actually I have worked on tomcat 3.2 and there are some problems which i am facing in deploying my servlets, jsp. I do not know where to save my servlets. I save .jsp files in webapps/examples/jsp folder. I have the latest version of tomcat 5.0.19 but it does not work. do we need to set any class path? I have already set JAVA_HOME. Whenever I try to run tomcat 5.0.19 I get the following message :
D:\tomcat\jakarta-tomcat-5.0.19\bin>startup
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: d:\jdk1.4
D:\tomcat\jakarta-tomcat-5.0.19\bin>
Please guide me as I stuck in this problem from past 6-7 days and i really want to get out of this problem.
 
emm raha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shishir:
About your JBoss problems - I had problems deploying JSPs on JBoss. The thread is here: http://www.coderanch.com/t/88832/JBoss/deploying-jsp If you scroll to the 3rd from the bottom posting, you'll see some of the erros I was getting. It turned out that the import statements weren't working (e.g. import java.sql.*, java.util.* etc.), so wherever I was using those packages, I used the absolute class reference (instead of relative references e.g. java.util.Enumeration vs. Enumeration). I also placed the jsp in a directory named 'directoryname.war' (vs. 'directoryname') at J:\jboss-3.0.7\server\default\deploy\directoryname.war. This worked for me.
As for your tomcat installation - You should have CATALINA_HOME set to where you've installed tomcat. And you should also include %CATALINA_HOME%/bin in your classpath.
Hope one of those works for you...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic