aspose file tools*
The moose likes Web Services and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\ Program" Watch "Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\ Program" New topic
Author

Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\ Program

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I am trying to work out a sample program in web service using axis2. I have followed the link below and tried to start the http server.

"http://people.apache.org/~ruchithf/hw-axis2/"

But I am getting the following error :

E:\Program Files\axis2-std-1.0-bin\bin>http-server.bat "E:/Program Files/axis2-s
td-1.0-bin/my-axis2-repo"
Using AXIS2_HOME: E:\Program Files\axis2-1.5.3
Using JAVA_HOME: E:\Program Files\Java\jdk1.6.0_03
Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\
Program


Please assist me to solve this issue and to proceed further

Thanks
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
This is just a guess but according to the web site you quoted on Windows you are supposed to use backslashes - not forward slashes.
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Thanks.I have used the back slashes. But i am getting the same error still.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11481
    
  94

Another guess ... what if you got rid of that space? (If that works we can talk about why it works)


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Tom Reilly
Rancher

Joined: Jun 01, 2010
Posts: 618
How about you are using E:\Program Files\axis2-std-1.0-bin\bin>http-server.bat "E:/Program Files/axis2-std-1.0-bin/my-axis2-repo" but your AXIS2_HOME points at a different location (axis2-1.5.3)
preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
I have tried that without space i am getting the error:

E:\Program Files\axis2-std-1.0-bin\bin>http-server.bat E:\ProgramFiles\axis2-std
-1.0-bin\my-axis2-repo
Using AXIS2_HOME: E:\Program Files\axis2-std-1.0-bin
Using JAVA_HOME: E:\Program Files\Java\jdk1.6.0_03
Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-std-1/0-b
in;E:\Program


Then i have changed the path of axis also. but no improvement.
 
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError: Files\axis2-1/5/3;E:\ Program