Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to run web application when moved from Tomcat to Jboss

 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have this small application which I'm designing using Struts framework and Tomcat. My application was working fine with Tomcat with out any problems. But when I decided to move my application to Jboss, as I need some entity beans to be communicated (Yet to develop business tier), I'm getting the following error from on starting my application



By the way in the past, I have successfully run different web applications which are not based on struts,(Plain servlets) successfully on Jboss.

Are there any specific modifications needs to be done to any configuration files when we move the war file from Tomcat to Jboss and also any specific changes needs to be done with respect to struts.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


What is the output of



Run this command from the same command prompt from where you start JBoss.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, which version of JBoss and Java?
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran,

The output of echo %JAVA_HOME% is c:\Sun\AppServer\jdk.

I'm using JDK1.5 and JBoss 4.0
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.

Does this c:\Sun\AppServer\jdk contain a tools.jar file? Also, when you start JBoss, it prints out information about the JDK path the version and other stuff. For me it shows:


What do you see on your setup?
[ April 01, 2008: Message edited by: Jaikiran Pai ]
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi JaiKiran,

When I start my JBoss it is displaying as


and my JAVA_HOME is C:\Sun\AppServer\jdk

My tools.jar is located in C:\Sun\AppServer\jdk\lib folder.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic