• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help me with Axis !!  RSS feed

 
Milesh Dcunha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have Tomcat 5 installed on machine running Windows XP.
I have downloaded the Axis binaries and put all the neccessary libraries in their rightfull places. The happyaxis.jsp page seems to be happy

And then when I put the following URL:
http://127.0.0.1:8080/axis/EchoHeaders.jws?method=list
It says,

- <soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')</faultstring>

I googled and read that it is the problem with,
java.home variable pointing to the "jre1.5.0_03" folder instead of the "jdk1.5.0_03".
Here is the part of the result that I get when I run happyaxis.jsp:

java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=D:\Program Files\Java\jre1.5.0_03
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode, sharing
java.version=1.5.0_03

Okay, so if I've guessed right above then I know the problem. Then I would like to know how to change the value for "java.home".

And if I'm wrong then please help me with the solution.

Thanking you all.
 
Joe Shy
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you just have the 1.5 jre or the sdk/jdk too?

C:\jdk1.5.0_07\lib is were my tools.jar resides, but it looks like you have the default install.

As a rule JAVA_HOME= BASE_JAVA_DIR(C:\jdk1.5.0_07 in my case).
 
Milesh Dcunha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I have the JDK 1.5 installed.
The following is my installation path

D:\Program Files\Java\jdk1.5.0_03

My environment variable is set as follows:
JAVA_HOME = D:\Program Files\Java\jdk1.5.0_03;%JAVA_HOME%\bin;
 
Joe Shy
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to add to your CLASSPATH also your %JAVA_HOME%;. based on the paths you posted above. This should already be set though since you have the JDK installed.

If you search your jdk dir do you find the tools.jar? If not you may need to re-install java 5.0 (1.5)

Joe
 
Milesh Dcunha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I can find the tools.jar file.
 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I find it easier not to have any environment variables preset (i.e. in the Windows environment variables).

What I do is set them at the command line prior to starting Tomcat. I therefore have a batch file that does it all for me and sets the following value:

set JAVA_HOME=c:\Program Files\Java\jdk1.5.0_07
set PATH=%JAVA_HOME%\bin;%PATH%

When you update your path, you should first add JAVA_HOME, then the path. The reason is if you have 2 jdks (1.4 and 1.5) and you want to set the 1.4 one after having set the 1.5, the path must first make a reference to the 1.4 (since whatever is picked up first is what's used)

I start tomcat the following way

set CATALINA_BASE=D:\Tomcat 5.0
set CATALINA_HOME=D:\Tomcat 5.0
set CATALINA_TMPDIR=D:\Tomcat 5.0\temp
"%CATALINA_HOME%\bin\startup.bat"

As for tools.jar, it's in my tomcat common lib folder.

I hope this is helpful.
 
Milesh Dcunha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

@David, I did the way you do. That is, created a batch file. But still it gave me the same error on trying to run the JWS endpoint, "tools.jar" not found.
So i copied my tools.jar to commons/lib directory. Now, everything seems to be working fine. Thank You,

But, still I can't understand this. When we deploy jsp files they are first converted to a servlet file, essentially a .java source file and then compiled. So, while compiling it requires a compiler right? that means, it does require "tools.jar". So when I run other web-apps it didn't give any such errors. But, when I run my axis it gives me this error, "cannot find tools.jar"???
Am I missing something??? This question might be naive, but I am a little confused...

Again thank you all for all your help!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!