aspose file tools*
The moose likes JBoss/WildFly and the fly likes Unable to run web application when moved from Tomcat to Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unable to run web application when moved from Tomcat to Jboss" Watch "Unable to run web application when moved from Tomcat to Jboss" New topic
Author

Unable to run web application when moved from Tomcat to Jboss

Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167
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.


Thanks & Regards, SK
SCJP 5.0, DB2 - 800, DB2 - 803, SCDJWS (On the way)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

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.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

By the way, which version of JBoss and Java?
Schandha Ravi
Ranch Hand

Joined: Oct 20, 2007
Posts: 167
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

Joined: Jul 20, 2005
Posts: 10288
    
168

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

Joined: Oct 20, 2007
Posts: 167
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to run web application when moved from Tomcat to Jboss