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

Problem with Axis

 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey!

When I try to execute the web service method the console comes up with this message:



Anyone know what is happening?

Thanks
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly you are tying to do. Are you trying to connect to remote service using axis as client.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either you're using a wrong URL (/gruppos/services/GroupManager), or the server is not running. Check the http://localhost:8080/axis/services/listServices page for the correct URL.
 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried http://localhost:8080/axis/services/listServices and it says description The requested resource (/axis/services/listServices) is not available.

To be more detailed the method I try to access is one which writes in a database. I must say this because I found something strange: I have a class which writes into the database and using that class I created the webservice and after that the webclient. The strange thing is that when I try to call that method using the client I get a: Exception: com.mysql.jdbc.Driver which I don't get when I execute the previous class, only using web service & client. The MySQL jar is already in the path of the webserver so I don't know why is this happening . Could it be related to the error I first posted?

Thnks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URL I posted for just an example - go to the home page of your Axis web app installation and follow the links.

Make sure the JDBC driver jar file is in the WEB-INF/lib directory of the web app that uses it, or in a directory that you're certain is used for jar files that should be in the classpath of the server. Restart the server afterwards.
 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thing is that I created the webservice and the webclient in Eclipse using this link http://wiki.eclipse.org/Creating_a_Bottom-Up_Java_Web_Service which explains easily how to create a webservice and client but without any thoretical stuff, just as a cook recipe. So I guess I should study some stuff about axis which is something I'll do right away. Anyway, I tried the webpage localhost:8081/axis/ which should show anything (my server port is 8081) but again does not find anything. Where I found something is in the URL; http://localhost:8081/GrupposClient/sampleGroupManagerProxy/TestClient.jsp?endpoint=http://localhost:13237/Gruppos/services/GroupManager where all the methods of the class GroupManager can be accessed and there is where I get that Exception: com.mysql.jdbc.Driver. Do you know if the webservices must be created in other way if you are using databases?

Thanks
 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great! One problem is solved! I placed the JDBC driver jar file in the WEB-INF/lib folder as you said instead of somewhere else and now there is no JDBC exception. I'll try now the other error.

No, the axis error is still there. Looks like they were not related
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like they were not related

Of course they weren't. A wrong URL has nothing to do with a JDBC driver not being found. The former is a client problem while the latter is a server problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic