Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsI'm trying to run the JSF/AJAX example by Tor Norbye (http://blogs.sun.com/roll
- downloaded and installed the AJAX Textfield component (http://developers.sun.com
and installed it into Java Studio Creator EA2 standard tools
- downloaded his web service project file (http://mediacast.sun.com/
- downloaded and installed NetBeans 4.1 IDE
- opened, compiled and deployed the web service project via NetBeans 4.1 IDE
- added the web service to JSC EA2
- the web service two methods 'define' and 'matchPrefix' work when tested through JSC's build in test interface
The application does not work. The NetBean's localhost:24848 output window shows the error at the bottom of this post.
When I look at the generated WSDL is JSC it shows this:
<?xml version="1.0" encoding="UTF-8"?><definit
<types>
<schema xmlns="http://www.w3.org/2
<complexType name="define">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequenc
<complexType name="defineResponse">
<sequence>
<element name="result" type="string" nillable="true"/></sequenc
<complexType name="matchPrefix">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequenc
<complexType name="matchPrefixResponse"
<sequence>
<element name="result" type="string" nillable="true" minOccurs="0" maxOccurs="unbounded"/></s
<element name="define" type="tns:define"/>
<element name="defineResponse" type="tns:defineResponse"/
<element name="matchPrefix" type="tns:matchPrefix"/>
<element name="matchPrefixResponse"
<message name="DictionaryServiceSEI
<part name="parameters" element="ns2:define"/></me
<message name="DictionaryServiceSEI
<part name="result" element="ns2:defineRespons
<message name="DictionaryServiceSEI
<part name="parameters" element="ns2:matchPrefix"/
<message name="DictionaryServiceSEI
<part name="result" element="ns2:matchPrefixRe
<portType name="DictionaryServiceSEI
<operation name="define">
<input message="tns:DictionarySer
<output message="tns:DictionarySer
<operation name="matchPrefix">
<input message="tns:DictionarySer
<output message="tns:DictionarySer
<binding name="DictionaryServiceSEI
<soap:binding transport="http://schemas.
<operation name="define">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output></
<operation name="matchPrefix">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output></
<service name="DictionaryService">
<port name="DictionaryServiceSEI
<soap:address location="http://gpintarxp
That all looks ok to me.
Here is the error message I see displayed in NetBeans output window:
...
[#|2005-08-30T09:25:53.980
[#|2005-08-30T09:25:54.030
java.rmi.RemoteException: HTTP transport error: java.net.MalformedURLExcep
HTTP transport error: java.net.MalformedURLExcep
at webservice.dictionaryservi
at webservice.dictionaryservi
at ajaxautocompletewwebservic
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.sun.faces.el.MethodBin
at com.sun.j2ee.blueprints.bp
at com.sun.j2ee.blueprints.bp
at com.sun.j2ee.blueprints.bp
at com.sun.faces.lifecycle.Li
at com.sun.faces.lifecycle.Li
at javax.faces.webapp.FacesSe
at sun.reflect.GeneratedMetho
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.catalina.securi
at java.security.AccessContro
at javax.security.auth.Subjec
at org.apache.catalina.securi
at org.apache.catalina.securi
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at java.security.AccessContro
at org.apache.catalina.core.A
at com.sun.web.ui.util.Upload
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at java.security.AccessContro
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.coyote.tomcat5.
at com.sun.enterprise.web.con
at com.sun.enterprise.web.con
at com.sun.enterprise.web.con
at com.sun.enterprise.web.con
Caused by: HTTP transport error: java.net.MalformedURLExcep
at com.sun.xml.rpc.client.htt
at com.sun.xml.rpc.client.Str
at webservice.dictionaryservi
... 47 more
The "REPLACE_WITH_ACTUAL_URL" in the error message above makes me think I've missed something along the way.
Does anyone have an idea as to what I'm missing here? Has anyone successfully completed this JSF/AJAX example?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: CEHJPosted on 2005-08-30 at 08:24:59ID: 14785664
Comments are available to members only. Sign up or Log in to view these comments.