Deploy a web service client [message #204451] |
Fri, 20 May 2005 15:24  |
Eclipse User |
|
|
|
Originally posted by: jbailo.vestcom.com
I've been using the Eclipse WTP and think it's great...but I haven't
used Eclipse must and still don't understand deployment. I have
everything working inside of Eclipse, but now want to move it to another
server. Here's what I built:
1) I took a web service ( written in .NET ) and created a proxy to it.
I was able to test it in Eclipse using the .jsp test pages.
2) I created a java application that consumed the proxy and was able to
run the web methods from (1) and return a result which is printed to the
console.
Now I want to be able to run this client on another machine.
QUESTION
How do I deploy my web client class and all necessary and associated files?
Other questions:
My organization uses BEA Weblogic 8.1
1. Can I substitute Weblogic 8.1 for Tomcat?
2. Do I need to bother if I'm only creating a proxy ( not a web service,
but a proxy to consume the service )? In this case, isn't the only use
of the web server to run the .jsp files that test the web service?
3. Is the web service proxy dependent on the web server?
|
|
|
|
Re: Deploy a web service client [message #204653 is a reply to message #204644] |
Mon, 23 May 2005 14:32  |
Eclipse User |
|
|
|
Originally posted by: jbailo.vestcom.com
I tried this as well. It seems to get a little further...do I need to
add something else to my classpath?
C:\Documents and
Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\cla sse
s>java -cp . org.tempuri.MatchCode20Client
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/xml/rpc/Service
Exception
at
org.tempuri.MatchCode20Client.printIfMale(MatchCode20Client. java:19)
at org.tempuri.MatchCode20Client.main(MatchCode20Client.java:12 )
John Bailo wrote:
John Bailo wrote:
>
> Here are some more details about my setup...where I'm trying to deploy a
> java application client that consumes a web service proxy built with
> eclipse. Attached is bitmap showing the directory structure of the
> output ( howtodeploy.bmp ). The Java application
> MatchCode20Client.class performs great from within Eclipse -- now I want
> to run it externally and ideally from another server.
>
> My classpath is:
>
> C:\Documents and
> Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\cla sses >set
> classpath
> classpath=.;c:\Sun\jwsdp-1.5\jaxrpc\lib;m:\ema_kewadin_vcrm2 \classes;c:\Sun\AppServer\lib\j2ee.jar
>
>
>
> When I run the application from a command window:
>
> C:\Documents and
> Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\cla sses\org\tempuri >java
> -classpath . MatchCode20Client
> Exception in thread "main" java.lang.NoClassDefFoundError:
> MatchCode20Client (wrong name: org/tempuri/MatchCode20Client)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> John Bailo wrote:
>
>>
>> I've been using the Eclipse WTP and think it's great...but I haven't
>> used Eclipse must and still don't understand deployment. I have
>> everything working inside of Eclipse, but now want to move it to
>> another server. Here's what I built:
>>
>>
>> 1) I took a web service ( written in .NET ) and created a proxy to it.
>> I was able to test it in Eclipse using the .jsp test pages.
>>
>> 2) I created a java application that consumed the proxy and was able
>> to run the web methods from (1) and return a result which is printed
>> to the console.
>>
>>
>> Now I want to be able to run this client on another machine.
>>
>> QUESTION
>>
>> How do I deploy my web client class and all necessary and associated
>> files?
>>
>>
>> Other questions:
>>
>> My organization uses BEA Weblogic 8.1
>>
>> 1. Can I substitute Weblogic 8.1 for Tomcat?
>>
>> 2. Do I need to bother if I'm only creating a proxy ( not a web
>> service, but a proxy to consume the service )? In this case, isn't
>> the only use of the web server to run the .jsp files that test the web
>> service?
>>
>> 3. Is the web service proxy dependent on the web server?
>>
>>
>
>
> ------------------------------------------------------------ ------------
>
>
> Here are some more details about my setup...where I'm trying to deploy a
> java application client that consumes a web service proxy built with
> eclipse. Attached is bitmap showing the directory structure of the
> output ( howtodeploy.bmp ). The Java application
> MatchCode20Client.class performs great from within Eclipse -- now I want
> to run it externally and ideally from another server.
>
> My classpath is:
>
> C:\Documents and
> Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\cla sses >set
> classpath
> classpath=.;c:\Sun\jwsdp-1.5\jaxrpc\lib;m:\ema_kewadin_vcrm2 \classes;c:\Sun\AppServer\lib\j2ee.jar
>
>
>
> When I run the application from a command window:
>
> C:\Documents and
> Settings\jbailo\workspace\MatchCode20\WebContent\WEB-INF\cla sses\org\tempuri >java
> -classpath . MatchCode20Client
> Exception in thread "main" java.lang.NoClassDefFoundError:
> MatchCode20Client (wrong name: org/tempuri/MatchCode20Client)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274 )
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> John Bailo wrote:
>
>>
>> I've been using the Eclipse WTP and think it's great...but I haven't
>> used Eclipse must and still don't understand deployment. I have
>> everything working inside of Eclipse, but now want to move it to
>> another server. Here's what I built:
>>
>>
>> 1) I took a web service ( written in .NET ) and created a proxy to it.
>> I was able to test it in Eclipse using the .jsp test pages.
>>
>> 2) I created a java application that consumed the proxy and was able
>> to run the web methods from (1) and return a result which is printed
>> to the console.
>>
>>
>> Now I want to be able to run this client on another machine.
>>
>> QUESTION
>>
>> How do I deploy my web client class and all necessary and associated
>> files?
>>
>>
>> Other questions:
>>
>> My organization uses BEA Weblogic 8.1
>>
>> 1. Can I substitute Weblogic 8.1 for Tomcat?
>>
>> 2. Do I need to bother if I'm only creating a proxy ( not a web
>> service, but a proxy to consume the service )? In this case, isn't
>> the only use of the web server to run the .jsp files that test the web
>> service?
>>
>> 3. Is the web service proxy dependent on the web server?
>>
>>
>
>
> ------------------------------------------------------------ ------------
>
|
|
|
Powered by
FUDForum. Page generated in 0.03889 seconds