View Christos Tranoris's profile on LinkedIn


Visit The Model Driven Software Network

Who's online

There are currently 0 users and 6 guests online.

Recent comments

Syndicate

Syndicate content

Anonymous | August 3, 2011 - 12:23

thank you very much for this tutorial,
i have a problem when i want to connect my web service to mysql database
in a java project, i have created a package named: com.server which has a class named: Base.
this class contains a method named connect()
i have added a main method to test the connection and it works very well.
now, the problem is in the following step:
i want to create a web service
i select the Base.java file Right click and Web Services -> Create Web Service
the Web Service window appears, when i click next i have the following message:
"The service class "com.server.Base" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
  The method "connect" on the service class "com.server.Base" uses a data type, "java.sql.Connection", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result."

how can i connect my web service to my database correctly?
& thank you again for this tutorial :D

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.