Old JWSDP tutorial 1.3
I am looking for the old JWSDP tutorial 1.3 in the .pdf format.
It seems to be no more available on the web ( I have found only the new tutorial 1.4 and the online .html version).
Could anybody help me finding a downloadable version of the old tutorial ?
Thanks!
G.
goto
http://java.sun.com/webservices/downloads/webservicespack.html
U will find a link in this page
Java WebServices Tutorial, v1.4
Download
Incase you are looking for the old PDF only then
http://java.sun.com/webservices/downloads/1.3/index.html
Similar Messages
-
Problems with the jax-rpc testcase from the JWSDP tutorial
Hello.
I have e few problems with the hello case from the JWSDP tutorial.
Everything works fine during the build/compile/installation phase but when I'm accessing the url http://localhost:8080/jaxrpc-hello/jaxrpc, the server wont find the service and I get:
404 The requested resource (/jaxrpc-hello/jaxrpc) is not available.
I've trippel checked the environment settings and other properties and I don't know where to go to error check.
I've tried to install the client as well but it wont detect the service so I guess there is a problem on the server side.
I'm quite new to the whole "Web Service thing" So I would be happy to get som help.
Chrisif you run the tomcat manager application at http://localhost:8080/manager/list, what do you see? I suppose if you have successfully run the ant "install" task after "compile-server" and "xrpcc-server", you will see that your service is registered with its context path, but is not "running". This will be probably because of a runtime error. For further diagnosis of errors like these, I recommend to take a look at the log file at "<%JWSDP_HOME%>/logs/catalina.out".
If you are satisfied with this answer, please be so kind and assign some of your duke dollars to me ;-) -
JWSDP Tutorial Problem - please help!
Hi!
I'm new to the Java Technology so I'm going through the JWSDP Tutorial provided by Sun. I have followed all of the steps set out in the 3rd chapter, however, when I enter this URL http://localhost:8080/gs, to run the example application I get the following error message:
HTTP Status 404 - /gs
type Status report
message /gs
description The requested resource (/gs) is not available.
Java Web Services Developer Pack/1.2
Does anyone know what this means? I will be very grateful for any kind of help.
Thanks.Apologies for the lack of detail.
I have installed the Java Development Kit (j2sdk1.4.2), the Java
WSDP (jwsdp-1.2) and the tutorial (jwsdp-1_2-tutorial) on my C:\ drive.
The following have been set as the PATH variable:
- C:\jwsdp-1.2\jwsdp-shared\bin
- C:\jwsdp-1.2\apache-ant\bin
- C:\j2sdk1.4.2\bin
The tutorial states that the build.properties file
(<INSTALL>\jwstutorial12\examples\common\build.properties) needs to be
modified so I have made the following changes:
tutorial.home=C:\jwsdp-1_2-tutorial
tutorial.install=${tutorial.home}/jwstutorial12
username=<username>
password=<password>
host=localhost
port=8080
secure.port=8443
url=http://${host}:${port}/manager
- The tutorial.home variable has been set to the path to the directory
into which the tutorial was installed
- The username and password variables have been set to what was
specified upon installing the JWSDP
1. I have changed to the root directory, C:\jwsdp-1_2-
tutorial\jwstutorial12\examples\gs. I have compiled the source files
by typing the following at the terminal prompt:
ant build
The following message is echoed to the screen:
Buildfile: build.xml
init:
prepare:
[mkdir] Created dir:
INSTALL>/jwstutorial12/examples/gs/build
[mkdir] Created dir:
<INSTALL>/jwstutorial12/examples/gs/build/WEB-INF
[mkdir] Created dir:
<INSTALL>/jwstutorial12/examples/gs/build
/WEB-INF/classes
[mkdir] Created dir:
<INSTALL>/jwstutorial12/examples/gs/build/WEB-INF/lib
[mkdir] Created dir:
<INSTALL>/jwstutorial12/examples/gs/build/WEB-INF/tags
copy:
[copy] Copying 1 file to
<INSTALL>/jwstutorial12/examples/gs/build
[copy] Copying 1 file to
<INSTALL>/jwstutorial12/examples/gs/build/WEB-INF
build:
[javac] Compiling 1 source file to
<INSTALL>/jwstutorial12/examples/gs/build/WEB-INF/classes
BUILD SUCCESSFUL
2. I have started Tomcat.
3. I have installed the Web application on Tomcat using Ant by typing
the following at the terminal prompt:
ant install
The following message is echoed to the screen:
[install] OK - Installed application at context path /gs
4. I have started a Web browser and entered the following URL to run
the example application:
http://localhost:8080/gs
It is at this point I get the error. I have read through the
instructions several times to ensure I have not missed anything. It is
not specified that the tutorial should be installed in a particular
directory, but I was wondering if it should be. -
JWSDP Tutorial - Servlet Example
I am trying to run the bookstore example in the Servlet section of the JWSDP on Red Hat 7.3.I am also getting confused over ANT and the Tomcat Manager.
I need to build the bookstore example and the instructions read: (for those who know the tutorial)
1. In a terminal window, go to /docs/tutorial/examples/web/bookstore1
2. Run ant build - The build target will spawn any necessary compilations and copy files to the docs/tutorial/examples/web/bookstore1/build directory.
3. Make sure Tomcat is started.
4. Run ant install - The install target notifies Tomcat that the new context is available.
5. Start the Pointbase database server and populate the database if you have not done so already
6. Open the bookstore URL http://localhost:8080/bookstore1/enter
On the command line I can run ANT BUILD fine, but ANT INSTALL fails. (It also fails in Tomcat Manager...but not sure whether I can use this instead of ANT INSTALL?)
I know this is sketchy but does anyone have any idea?
Regards
ScottHi Scott,
Thank you any way.
Last time, I met it and carried the tutorial on by compiling and copying manually. Then, I came back to set the ant.jar into path&classpath, and it worked.(ant build)
Today, I'm trying on "hello1" example, but can't get though.
Maybe it's still classpath and path issue, as I can't compile two servlet classes by javac from command line, but from Forte, it passed.
Cheers!
Zhan -
Run JWSDP tutorial JAXR example problem
Dear all:
I'm running examples from JWSDP 2.0 tutorial
I use sjsas-9_1
my location is jwstutorial20/examples/jaxr/simple
my registry server is http://localhost:8080/RegistryServer as default
asant run-publish
I got following errors:
javaee-home-test:
init:
prepare:
build:
run-publish:
[java] Created connection to registry
[java] Got registry service, query manager, and life cycle manager
[java] Sep 30, 2007 1:39:56 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
[java] SEVERE: SAAJ0008: Bad Response; Not Found
[java] javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
[java] at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
[java] at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
[java] at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
[java] at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
[java] at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
[java] at JAXRPublish.executePublish(Unknown Source)
[java] at JAXRPublish.main(Unknown Source)
[java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
[java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:146)
[java] ... 7 more
[java] Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
[java] ... 7 more
[java] Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found
[java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:323)
[java] at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
[java] ... 9 more
BUILD SUCCESSFUL
can anyone help?
thanksHi Scott,
Thank you any way.
Last time, I met it and carried the tutorial on by compiling and copying manually. Then, I came back to set the ant.jar into path&classpath, and it worked.(ant build)
Today, I'm trying on "hello1" example, but can't get though.
Maybe it's still classpath and path issue, as I can't compile two servlet classes by javac from command line, but from Forte, it passed.
Cheers!
Zhan -
3D interaction, javascript - old Adobe tutorial?
I found an old thread here: http://forums.adobe.com/message/1146124#1146124 that references an old tutorial by Adobe (I think from when 3D acrobat was first released).
I even was able to find the PDF that the tutorial was based on - "trans_order_form.pdf" - I would attach it, but I can't seem to figure out how to attach anything but pictures or videos. It is a document that includes a 3D pdf of a transfer case or transmission. It contains a few javascript links which change views and even change to an exploded view. But one of the coolest things is that you can click on individual parts of the 3D assembly to select them, and then click a link to "Add Part to Order Form". The order form is another PDF included as an attachment - it gets populated with the part information and contains a button to "Email Order".
Does anyone know if this tutorial still exists somewhere? All of the links that point to the Adobe website are dead. I would love to learn how to make a form just like this. I realize that it is all javascript based, but it would be nice to have a tutorial.You can see my e-mail if you place mouse cursor on my user-name. Your e-mail is private and I can't see it
-
Echo01 error in jwsdp tutorial
I've installed the full Web Services Pack, and the release notes state that I shouldn't have to do anything with the JAXP jar files, but the notes also states
"To use the JAXP 1.2 implementation, copy all of the jar files except jaxp-api.jar into <JAVA_HOME>/jre/lib/endorsed/
so I have done that as well. The Echo01 sample compiles but when I run it I get the error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
There have been 2 other postings with this same error, but the responses just said that there was a problem with the classpath (which the release notes mention nothing about).
If anyone can shed more light on this I'd appreciate it.
KathrynCheck if the following libraries are present in your system and classpath:
sax.jar
crimson.jar
xml-apis.jar -
JWSDP and J2EE Integration: Doesn't work. What's the point?
My problems involve the integration of JWSDP and J2EE as described in these two documents:
http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
http://java.sun.com/j2ee/documentation/windows_guide.html
It looks like a long one, but it�s really not that bad. All comments are appreciated.
I�ve numbered each line-paragraph-section for easy reference later.
(1) My ultimate goal is to setup a website that displays data from a database. I will use Java, Apache, Oracle, and whatever else I need to create a website that uses servlets, JavaServer Pages (JSP), and JDBC.
(2) I�ve got four Pentium III computers:
1. Windows 2000 Server to be the web server (MyWebServer, IP = 10.10.1.1).
2. Windows 2000 Professional to be the database server (MyDatabaseServer, IP = 10.10.1.2).
3. Windows 2000 Professional that I use to develop and test (MyDeveloperPC, IP = 10.10.1.3).
4. Windows 2000 Professional that I use as a client to connect to the website (MyClientPC, IP = 10.10.1.4).
(3) On MyWebServer I installed the following:
Java 2 Standard Edition (J2SE)
Java 2 Enterprise Edition (J2EE)
Java Web Services Developer Pack (JWSDP)
The JWSDP tutorial
Apache HTTP Server
(4) The files I downloaded and installed are as follows:
j2sdk-1_4_0-rc-win.exe
j2sdkee-1_3_1-win.exe
jwsdp-1_0-ea1-win.exe
jwsdp-1_0-ea1_01-tutorial.zip
apache_1.3.23-win32-x86-no_src.exe
(5) After installing these products, I set the environment variables as follows:
JAVA_HOME = c:\j2se
J2EE_HOME = c:\j2ee
JWSDP_HOME = c:\jwsdp
Path = c:\j2se\bin;c:\j2ee\bin;c:\jwsdp\bin; [and other previous statements]
(6) I checked to see that Apache is running as a service. It is.
On MyWebServer I start Tomcat and J2EE. Both start properly and are operating simultaneously.
(7) From MyClientPC I open Internet Explorer and in the address box I type:
http://10.10.1.1
This displays the page c:\ApacheHTTP\apache\htdocs\index.html.en (The Apache default server installation page.)
(8) I then enter this address in IE:
http://10.10.1.1:8080
This displays the page c:\jwsdp\webapps\root\index.html (The default JWSDP page).
(9) I then enter this address in IE:
http://10.10.1.1:8000
This displays the page c:\j2ee\public_html\index.html (The J2EE 1.3 Default Home Page).
(10) So far so good. Now I want to test JWSDP as a container for JSP pages.
(11) I use ant to build the converter app found in the tutorial examples (in folder c:\jwsdp\�\tutorial\examples\gs). I then deploy the converter app to the c:\jwsdp\webapps\gs folder.
(12) From MyClientPC I open Internet Explorer and in the address box I type:
http://10.10.1.1:8080/gs
The converter app works perfectly.
(13) To eliminate the need to enter the port number, I create a link from the Apache default server installation page to the converter app. From MyClientPC and enter this address into IE:
http://10.10.1.1
I then click on the link to the converter app and it works perfectly.
(14) Question: Is this the best way to display JSP pages without having to enter the port number?
(15) Now it�s time to integrate JWSDP and J2EE as described in these two documents:
http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/
http://java.sun.com/j2ee/documentation/windows_guide.html
(16) After I complete this integration I cannot start both Tomcat and J2EE at the same time. This makes sense because they both share port 8080.
I start Tomcat.
(17) From MyClientPC and use Internet Explorer to test the various relevant addresses. Everything works the same as it did before except this one:
http://10.10.1.1:8000
The page cannot be displayed. The J2EE default home page is not displayed, which makes sense because the J2EE port is no longer 8000; it has been changed to 8080.
(18) Now I shutdown Tomcat and start J2EE.
From MyClientPC and use Internet Explorer to test the various relevant addresses:
(19) http://10.10.1.1:8080
Displays the JWSDP default home page.
(20) http://10.10.1.1:8080/gs
The page cannot be displayed. The converter app no longer works.
(21) From MyWebServer and use Internet Explorer to test localhost:
http://localhost:8080
This displays the J2EE default home page.
(22) Question: Why does localhost give me a different page than the IP address?
(23) Question: What was the point of integrating JWSDP and J2EE?
(24) I want to get the converter app working, so I create a .war file and attempt to add it to the J2EE deploytool (see the two integration documents listed above at section 15.) I create the .war file following the instructions in the JWSDP tutorial:
http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp3.html#64606
(25) I change to the c:\jwsdp\�\tutorial\examples\gs\build folder.
I then type:
jar cvf converter.war .
A .war file is created.
(26) I open the deploytool: File, New, Application, and I name it �converter�.
I attempt to add the .war file: File, Add to Application, Web WAR.
(27) When I attempt to add the converter.war file I get this error:
�converter.war does not appear to be a valid web JAR.�
I tried a few different attempts, all with the same result. I�m stuck.
(28) I ask again, What was the point of integrating JWSDP and J2EE?
(29) If this is the preferred configuration, how do I display my JSP pages like the converter app?
Please help!!!The JWSDP tutorial says to be in the �build� folder of the example when issuing the jar command to create the .war file. The build folder is created when I run the �ant build� command.
Attempt 1 from the command prompt in folder c:\jwsdp\tutorial\examples\gs\build>
I typed this command:
jar cvf c:\jaxmservices\converter.war .
In this case I directed the .war file to be placed in a different folder as you suggested. Here�s the output:
added manifest
adding: index.jsp(in = 921) (out= 525)(deflated 42%)
adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/classes/Converter.class(in = 582) (out= 358)(deflated 38%)
Didn�t work. Same error as before.
Attempt 2 from the same folder:
I typed this command as you suggested (I tried it with and without the final dot):
jar tvf converter.war
Here is the output:
java.io.FileNotFoundException: converter.war (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.tools.jar.Main.run(Main.java:185)
at sun.tools.jar.Main.main(Main.java:904)
I tried a few other variations on these attempts with no luck. I�m stuck.
I�m attempting to create a .war file out of two files: index.jsp and converter.class.
Now that I�ve integrated JWSDP and J2EE, is there some other way that I can run the converter app instead of a .war file and the deploytool? In other words, if I go back to using ant to build and deploy converter, where would I deploy it so that it will work with J2EE?
By the way, it doesn�t have to be converter. I�d be happy if I could get any JSP page to work in J2EE after the integration.
Forever grateful,
Logan -
Deploying JAXRPC service on NON-JWSDP Tomcat
Hi,
I saw a similar question earlier, but not an answer..
I'm in a situation where I want to deploy a JAXRPC service on a Tomcat 4.1.12. I use the JSWDP kit from Sun to develop and test, and then I would like to be able to package my service as a .war file and deploy in on a Tomcat 4.1.12 - and still be able to use it as when its deployed in the JWSDP Tomcat. That should not be a problem - right?!
Unfortunatly (for me) I can't make it work.....not even with the veeery simple JAXRPC hello example program included in the JWSDP tutorial.
Under the JWSDP Tomcat everything is fine..
Then I try to use the Tomcat 4.1.12: I copy the .war file to the /webapps directory and restarts Tomcat - it shows up in the Manager as deployed, but I can't create a communication to it from the client!! I get a RemoteException: "Cannot connect to server: /hello-jaxrpc/hello..".
Can someonegive me a pointer on this one??
Thanks in advance,
Kim VestergaardHi again,
I did try for a few days without getting near to a solution.
Instead I started to look at the Apache Axis kit (http://xml.apache.org/axis) - In the latest version it includes support for JAXRPC, and thats what I need. The kit is easier (for me anyway ;-) to figure out, because it is not tight bundled with Tomcat as JWSDP is - Tomcat is still the servletengine-of-choice.
When I found http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-axis-p3.html the installation and setup was straight forward. I now have Tomcat 4.1.12 / Axis 1.0 running my JAXRPC based webservice....
/Kim -
JAX-RPC documentliteral with -model option problems in JWSDP 2.0
Hello,
I am trying to deploy a service generated with JAX-RPC. Howeverr when I write URL (http://localhost:8080/webservicedeployable/webservice001) in a browser I am getting message: 404 Not Found: Invalid request. Appending ?WSDL shows propers wsdl code, so endpoint URL is allright.. There is my config file delow:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="webservice001"
targetNamespace="http://scdjws/webservices/wsdl"
typeNamespace="http://scdjws/webservices/types"
packageName="com.service001">
<interface name="service.MyServicePort" servantName="service.MyServiceImpl"/>
</service>
</configuration>I am using command:
wscompile -gen:server -f:documentliteral -s "C:\Documents and Settings\Michal\jbproject\mojservice\src\" -classpath WEB-INF/classes -d build -model webservice001.xml.gz config.xml -keepmy jaxrpc-ri.xml is:
<?xml version="1.0" encoding="utf-8"?>
<webServices xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="http://java.sun.com/xml/ns/jax-rpc/wsi/wsdl"
typeNamespaceBase="http://java.sun.com/xml/ns/jax-rpc/wsi/types"
urlPatternBase="/ws">
<endpoint name="service001"
displayName="Service 001"
description="This is service001"
interface="service.MyServicePort"
implementation="service.MyServiceImpl"
model="/webservice001.xml.gz"/>
<endpointMapping endpointName="service001"
urlPattern="/webservice001"/>
</webServices>I am using Tomcat 5.5.16 and JWSDP 2.0.
Making a call to the service throws exception:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/webservicedeployable/webservice001
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:791)
Thank you in advance for all suggestion.
MichalHi,
I reselved the problem by just copying the FastInfoset to the jaxrpc\lib directory (I am sure this should work in a different way).
Well, the next problem I am getting is that the "XMLStreamWriter" class cannot be found. This class is contained in jsr173_api.jar.
I guess my main question is the following:
Which projects are necessary to get this simple helloWorld example to work?
I did set the JWSDP_HOME varible. Is there another setting I have to make to have all necessary jar-files available and to be able to run the samples?
Could anybody point me to a tutorial that does not only show a few lines of code (as the HelloWorld sample in the JWSDP-Tutorial) but that would instead lead me through a step-by-step sample application that I write by myself and actually runs at the end? The example in the JWSDP-Tutorial uses all kinds of existing config files which are not explained.
Thanks for your help. -
JWSDP 2.0 Webservices client Error
Hi,
I have generated a client stubs for RPC/Encoded style webservices using wscompile tool of JWSDP 2.0. But when i run the client, i get following error
no serializer is registered for (class [Lcom.test.mywebservices.service.TemplateVariable;, {http://com.test.mywebservices/types}ArrayOfTemplateVariable)
at com.sun.xml.rpc.encoding.TypeMappingUtil.getSerializer(TypeMappingUtil.java:51)
at com.sun.xml.rpc.encoding.InternalTypeMappingRegistryImpl.getSerializer(InternalTypeMappingRegistryImpl.java:376)
at com.test.mywebservices.service.TemplateVariables_SOAPSerializer.initialize(TemplateVariables_SOAPSerializer.java:28)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.initialize(ReferenceableSerializerImpl.java:65)
at com.sun.xml.rpc.encoding.InternalTypeMappingRegistryImpl.getSerializer(InternalTypeMappingRegistryImpl.java:381)
The client is embedded in my j2ee application and i am deploying it on jboss 4.2.2 with jdk 5.0.
Please help.
ThanksHi,
I reselved the problem by just copying the FastInfoset to the jaxrpc\lib directory (I am sure this should work in a different way).
Well, the next problem I am getting is that the "XMLStreamWriter" class cannot be found. This class is contained in jsr173_api.jar.
I guess my main question is the following:
Which projects are necessary to get this simple helloWorld example to work?
I did set the JWSDP_HOME varible. Is there another setting I have to make to have all necessary jar-files available and to be able to run the samples?
Could anybody point me to a tutorial that does not only show a few lines of code (as the HelloWorld sample in the JWSDP-Tutorial) but that would instead lead me through a step-by-step sample application that I write by myself and actually runs at the end? The example in the JWSDP-Tutorial uses all kinds of existing config files which are not explained.
Thanks for your help. -
JWSDP 2.0 JAX-RPC example problem Fast Infoset
Hi,
I installed JWSDP 2.0 and and Tomcat 5.0 for JWSDP. The server runs fine and the example HelloWorld is accessible (I can see the WSDL file in my browser: http://localhost:8080/jaxrpc-HelloWorld/hello?WSDL).
The Problem is that I can not run the client: I tried "ant run-client". The error occurs while trying to create a stub in the file "HelloClient.java" with the following line of code:
stub = (HelloIF_Stub) (helloWorldService.getHelloIFPort());
This is the error I get:
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jvnet/fastinfoset/FastInfosetSource
[java] at hello.HelloWorldService_Impl.getHelloIFPort(HelloWorldService_Impl.java:59)
[java] at hello.HelloClient.setUp(HelloClient.java:68)
[java] at hello.HelloClient.main(HelloClient.java:45)
[java] Java Result: 1
I am not sure about the structure of the application, so I don't know where to look for the "FastInfosetSurce" file.
Thanks for any help.
Best regards.Hi,
I reselved the problem by just copying the FastInfoset to the jaxrpc\lib directory (I am sure this should work in a different way).
Well, the next problem I am getting is that the "XMLStreamWriter" class cannot be found. This class is contained in jsr173_api.jar.
I guess my main question is the following:
Which projects are necessary to get this simple helloWorld example to work?
I did set the JWSDP_HOME varible. Is there another setting I have to make to have all necessary jar-files available and to be able to run the samples?
Could anybody point me to a tutorial that does not only show a few lines of code (as the HelloWorld sample in the JWSDP-Tutorial) but that would instead lead me through a step-by-step sample application that I write by myself and actually runs at the end? The example in the JWSDP-Tutorial uses all kinds of existing config files which are not explained.
Thanks for your help. -
Jwsdp 1.1 and endorsed mechanism
Am using j2sdk 1.4.1_01. As the jwsdp tutorial suggested, in order to use the new jaxp classes, I placed the jars in a new \\jre\lib\endorsed directory in the j2sdk and also set the endorsed directories system variable to point to them. When running the xml example from the jwsdp-1.1\docs\tutorial\doc\JAXPSAX6.html file, I'm still getting the crimson parser and not the xerces parser that the tutorial says should be operating. Can anyone tell me why? Or what I must do to get the right parser? I tried running the command on the command line (Windows 2000) and in an UltraEdit DOS command but I get the same results with both - no Xerces parser.
Thanks.
MadeleineJust to say this works if you put the jars in the classpath. Is this the only way?
Mad -
I�m not able to compile the examples of bokkstore in the jwsdp tutorial. The problem is though it create the bookDB table, it looks not to find it later. none of the examples work. Did anybody have this problem and solve it?
thank-youPlease can anybody help me with these? I can populate the database but i cant acces it to consult anything
thanks -
I have tried unsuccessfully build the JWSDP Tutorial examples, using the accompanying documentation as a guide. All of my environmental variables have been set accordingly (with the newer settings placed at the front of my CLASSPATH).
This is what I'm entering at the prompt:
C:\jwdsp-1_0-ea2\docs\tutorial\examples\gs>ant build
Despite what I thought was a careful reading of the setup instructions, I am receiving the following error:
taskdef class org.apache.catalina.ant.InstallTask cannot be found.
I tried to "backtrack" the class, based on the path, but could not find it. I then assumed that maybe I needed to include catalina.jar in my CLASSPATH, which I did. Still no luck.
I did read through everything closely a second and third time, to ensure that I wasn't missing anything. Do I need to set CATALINA_HOME? If so, what would that setting be (I'm running WINNT 4.0 SP 6).
Any help would be greatly appreciated!
Thank You,
SMThanks again for your help. I still had to do some "tweaking" to get things to work, but you put me on the right track. (Going over the build.xml file didn't hurt either.)
In case you're interested, these are the changes I made to the Environmental Variables settings (WINNT 4.0 SP 6). I'm listing them here, since they aren't documented elsewhere (at least not anywhere I could find).
CLASSPATH:
%JWSDP_HOME%\common\lib;%JWSDP_HOME%\server\lib\catalina-ant.jar;
PATH:
%SystemRoot%\system32;%SystemRoot%;%JWSDP_HOME%\bin;%JAVA_HOME\bin;%ANT_HOME%\bin;
This is the strange one, since the same files needed to run ANT are in %JWSDP_HOME%\bin, which is already in the PATH. It shouldn't be necessary to have it listed twice, but it won't work otherwise (?!)
ANT_HOME:
Directory where ANT is installed (such as C:\jakarta-ant-1.4.1
(The documentation makes no mention of this setting.)
Since I made these changes, there haven't been any problems. I awarded you the 5 Duke Dollars for putting me on the right track (and saving me from a mega-migraine).
~ Sheila
Maybe you are looking for
-
Will DM v4.2.2 work with a new BB Storm?
I have been trying -- and failing -- for two weeks now to "fix" Desktop Manager v4.7 so that it will sync with my new Storm. One error after another. I've tried every single "solution" I could find on BlackBerry.com and CrackBerry.com and absolutel
-
I'm not able to sign into business catalyst
I'm not able to sign into business catalyst with my Adobe ID and I have not recieved any other log in information.
-
The photos in camera roll are not uploading to my photo stream.
The photos in my camera roll on my iPhone are not uploading to my Photo Stream. Both devices are logged in to the same apple account and both are connected to wifi.
-
cannot get itunes to play through my wireless bose speakers instead of through computer speakers
-
Sap table differences between 4.6C and ECC 6.0
how do i find out which sap tables has been changed between 4.6C and ecc 6.0 version. Is there a program I can run? website?