This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem importing javax.xml.rpc.Service and ServiceFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem importing javax.xml.rpc.Service and ServiceFactory" Watch "Problem importing javax.xml.rpc.Service and ServiceFactory" New topic
Author

Problem importing javax.xml.rpc.Service and ServiceFactory

Shantanu Deshmukh
Greenhorn

Joined: Jul 28, 2011
Posts: 23

Hi I have a very simple program which accesses a WSDL. But these two packages javax.xml.rpc.Service and javax.xml.rpc.ServiceFactory are being told as not available.
I have downloaded javaee.jar which contains all these packages and i have copied this jar file into lib folder fo my jdk1.6.0_26. But still when I attempt to compile the program, same error is being given.

Please help,

Shantanu


There are no failures, only experiences
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Hi and welcome to the JavaRanch.

You shouldn't put the jar file there but you need to add it to the classpath.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Shantanu Deshmukh
Greenhorn

Joined: Jul 28, 2011
Posts: 23

Wouter Oet wrote:Hi and welcome to the JavaRanch.

You shouldn't put the jar file there but you need to add it to the classpath.


Thanks for warm welcome,
Ok, by the way, you must have understood that I m total newbie to java.

So by the class path you mean, i need to write something like this: export CLASSPATH=\home\shantanu\DEV_DOCS\SOAP ?
that's the dir where my program lies.

Thanks for quick reply, awaiting another quick reply

Thanks and Regards,

Shantanu
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Although that is a way to accomplish it I prefer to add it to the java(c) command. The thing is that the environment type is global. So if you have multiple project then each timer switching projects you need to adjust it.

So I prefer:

java -cp <insertClasspathHere> YourProgram

Search for classpath. You'll find a lot.
Shantanu Deshmukh
Greenhorn

Joined: Jul 28, 2011
Posts: 23

Thank you so much for the help,

Now I can advance as the environment is set !!

Many Thanks,

Shantanu
 
 
subject: Problem importing javax.xml.rpc.Service and ServiceFactory
 
Similar Threads
create a simple client Access a WSDL
"rpc.ServiceException"
RMH J2EE WS page 339
How to develop a Servlet program which can send and receive e-mails
Help In Creating a Mobile Tracker