try "ant deploy"
Kevin Jones
http://public.xdi.org/=kevin.jones
skype (www.skype.com): kevinrjones
________________________________
From: Frank [mailto:fgeck_at_optonline.net]
Sent: 18 March 2005 15:30
To: users_at_jax-rpc.dev.java.net
Subject: Re: WS JAXRPC hhelp
Kevin,
Thanks for the information I finally got a change to look at it.
I beleive I must be missing some fundamental point because installing you
code I still don't see how using ant that it builds everything. All I get is
the following when I run it.
C:\junk\WS-example\server>ant
Buildfile: build.xml
prepare:
[mkdir] Created dir: C:\junk\WS-example\server\classes
[mkdir] Created dir: C:\junk\WS-example\server\generated
[mkdir] Created dir: C:\junk\WS-example\server\generated\src
[mkdir] Created dir: C:\junk\WS-example\server\generated\classes
[mkdir] Created dir: C:\junk\WS-example\server\deploy
build:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 4 source files to
C:\junk\WS-example\server\classes
[javac] Since fork is true, ignoring compiler setting.
BUILD SUCCESSFUL
Total time: 1 second
Do I need to run this in sections to generate the server? i.e. ant
generateServer then you need to run ant CreateCookedWar ?
I used you build.xml file only changing enough too point to my code
and chaecked my code and I must be missing somethign as I still get this
error:
[javac] Compiling 2 source files to
C:\data\JBFSA\may_05_demo_code\trusted_l
abeler\trusted_labeler\classes
[javac] Since fork is true, ignoring compiler setting.
generateServer:
[wscompile] command line: wscompile
C:\j2sdk1.4.2_02\jre\bin\java.exe -classpath
C:\data\JBFSA\may_05_demo_code\trusted_labeler\trusted_labeler\generated\cla
sse
s;C:\data\JBFSA\may_05_demo_code\trusted_labeler\trusted_labeler\classes;C:\
data
\JBFSA\may_05_demo_code\trusted_labeler\trusted_labeler\classes\pli;C:\j2sdk
1.4.
2_02\lib\dt.jar;C:\j2sdk1.4.2_02\lib\htmlconverter.jar;C:\j2sdk1.4.2_02\lib\
tool
s.jar;C:\jwsdp-1.5\jaxrpc\lib\jaxrpc-api.jar;C:\jwsdp-1.5\jaxrpc\lib\jaxrpc-
impl
.jar;C:\jwsdp-1.5\jaxrpc\lib\jaxrpc-spi.jar;C:\jwsdp-1.5\jwsdp-shared\lib\ac
tiva
tion.jar;C:\jwsdp-1.5\jwsdp-shared\lib\commons-beanutils.jar;C:\jwsdp-1.5\jw
sdp-
shared\lib\commons-collections.jar;C:\jwsdp-1.5\jwsdp-shared\lib\commons-dig
este
r.jar;C:\jwsdp-1.5\jwsdp-shared\lib\commons-logging.jar;C:\jwsdp-1.5\jwsdp-s
hare
d\lib\jaas.jar;C:\jwsdp-1.5\jwsdp-shared\lib\jax-qname.jar;C:\jwsdp-1.5\jwsd
p-sh
ared\lib\jta-spec1_0_1.jar;C:\jwsdp-1.5\jwsdp-shared\lib\mail.jar;C:\jwsdp-1
.5\j
wsdp-shared\lib\namespace.jar;C:\jwsdp-1.5\jwsdp-shared\lib\relaxngDatatype.
jar;
C:\jwsdp-1.5\jwsdp-shared\lib\xsdlib.jar;C:\jwsdp-1.5\saaj\lib\saaj-api.jar;
C:\j
wsdp-1.5\saaj\lib\saaj-impl.jar;C:\tomcat-jwsdp-1.4\common\lib\ant.jar;C:\to
mcat
-jwsdp-1.4\common\lib\commons-collections.jar;C:\tomcat-jwsdp-1.4\common\lib
\com
mons-dbcp-1.1.jar;C:\tomcat-jwsdp-1.4\common\lib\commons-el.jar;C:\tomcat-jw
sdp-
1.4\common\lib\commons-pool-1.1.jar;C:\tomcat-jwsdp-1.4\common\lib\jasper-co
mpil
er.jar;C:\tomcat-jwsdp-1.4\common\lib\jasper-runtime.jar;C:\tomcat-jwsdp-1.4
\com
mon\lib\jmx.jar;C:\tomcat-jwsdp-1.4\common\lib\jsp-api.jar;C:\tomcat-jwsdp-1
.4\c
ommon\lib\naming-common.jar;C:\tomcat-jwsdp-1.4\common\lib\naming-factory.ja
r;C:
\tomcat-jwsdp-1.4\common\lib\naming-java.jar;C:\tomcat-jwsdp-1.4\common\lib\
nami
ng-resources.jar;C:\tomcat-jwsdp-1.4\common\lib\servlet-api.jar
com.sun.xml.rpc.
tools.wscompile.Main -define "-features:wsi, donotunwrap" -model
C:\data\JBFSA\m
ay_05_demo_code\trusted_labeler\trusted_labeler\generated\model.xml.gz
-verbose
-Xdebugmodel:C:\data\JBFSA\may_05_demo_code\trusted_labeler\trusted_labeler\
gene
rated\model.txt
C:\data\JBFSA\may_05_demo_code\trusted_labeler\trusted_labeler\e
tc\config.xml
[wscompile] [creating model: LabelPLIService]
[wscompile] [creating service: LabelPLIService]
[wscompile] error: RmiModeler error:
java.lang.ClassNotFoundException: pli$Label
PLI servantName=pli$PLILabeler
code is as follow:
package pli;
import java.rmi.Remote;
import java.lang.*;
import java.rmi.RemoteException;
public interface LabelPLI extends java.rmi.Remote {
public String echo(String s) throws RemoteException;
public String returnLabeledData(String s) throws
RemoteException;
}
package pli;
import java.rmi.*;
public class PLILabeler implements LabelPLI {
public String echo(String vt) {
System.out.println("in echoValue type : " + vt);
return vt;
}
public String returnLabeledData(java.lang.String str) {
String result = " From server, Begin client send: " + str +
" : end cleint send";
System.out.println("In returnLabeledata for WSDL : " +
str);
return result;
}
}
Any clue what I could have done wrong? I updated config.xml and the
jaxrcp-ri/xml files too
Thanks,
Frank
Kevin Jones wrote:
I wrote these two for JavaPro this year
http://www.ftponline.com/javapro/2005_01/magazine/features/kjones_client/
http://www.ftponline.com/javapro/2005_01/magazine/features/kjones_server/
Although the client article was written against the Amazon
web service and
Amazon then changed the interface so the client call fails,
but the
principals are the same,
Kevin Jones
http://public.xdi.org/=kevin.jones
skype (www.skype.com): kevinrjones
-----Original Message-----
From: Ryan Champlin
[mailto:ryan.champlin_at_firstlogic.com]
Sent: 15 March 2005 17:21
To: users_at_jax-rpc.dev.java.net
Subject: RE: WS JAXRPC hhelp
Agreed! The documentation for setting up and
building a web
service needs a ton of work.
I'm not aware of any good books that are current nor
articles
on the web to help make this an easier process.
Java Pro and some other publications just keep
posting the
same old articles from a year or two ago rather than
ever
writing new ones.
If anyone has a good resource for developing web
services
with Java that would be great.
About the only good resource I've found came from an
employee
of Sun that wrote and article in Java Pro a while
back.
I can't seem to find where Sun links to this
document
anywhere on their site which is odd as it's a fairly
good
resource when compared to other documents out there.
Hope this helps. Also if anyone has some better
resources
please post them or let us know where we can find
them.
https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html
Be sure to check out the part 2 of this whitepaper
which they
link to right at the beginning.
Thanks!!
Ryan
-----Original Message-----
From: Frank [mailto:fgeck_at_optonline.net]
Sent: Tuesday, March 15, 2005 11:11 AM
To: jax-rpc users
Subject: WS JAXRPC hhelp
Well I'm new to WS/jaxrpc and tried going through
the java
tutorial (j2ee tutorial 14, tomcat examples etc) etc
(they
are real poor/don't seem too work at times). I at
least got
to run the helloworld that cones with the jswdp1-5.
But it
was canned and already setup (i.e WSDL generated
already it
looks like etc) But in attempt too use that as a
template too
that I need too do and what gets generated for me,
what a
disaster!!! Nothing seems too explain this at all.
If any
one has some good examples that I can use I would
appricate it.
Thanks,
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail:
users-help_at_jax-rpc.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail:
users-help_at_jax-rpc.dev.java.net
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail:
users-help_at_jax-rpc.dev.java.net