GeeCON Prague 2014*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes jaxr example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "jaxr example" Watch "jaxr example" New topic
Author

jaxr example

nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
I am trying to run a example from ivan's note .

I got following error



following is the class.




I already saw in database there are two users in publisher table root and uddi.

Thanks in advance.
Nitin
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Please help.. i am stuck in this exampl.e
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I am not ignoring this question, it is just that it requires more time than most questions, since I need to set up jUDDI again.
I will try to look into it the coming weekend, but make no promises.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Hey Ivan thanks for replying. I tried that example again i got some other exception also in Tomcat console, i was lazy to put that exception trace here because it was too late and i was feeling sleepy. I will try to put taht exception trace here.

It was like shouting in a no man's land but only god can hear

Thanks for your help
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
When i trying to run i got following exception in Tomcat console

DefaultValidationEventHandler: [FATAL_ERROR]: cvc-elt.1: Cannot find the declara
tion of element 'ns2:find_tModel'.
Location: line 1
Jun 9, 2010 10:43:08 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogg
ing
WARNING: Interceptor for {urn:uddi-org:v3_service}UDDI_Inquiry_Port#{urn:uddi-or
g:v3_service}find_tModel has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unmarshalling Error: cvc-elt.1: Cannot find th
e declaration of element 'ns2:find_tModel'.
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:661)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:533)
at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:113)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocL
iteralInInterceptor.java:192)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:243)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
ationObserver.java:104)
at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDes
tination.java:99)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
ServletController.java:358)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletCont
roller.java:187)
at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCX
FServlet.java:163)
at org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCX
FServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.ja
va:394)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of elemen
t 'ns2:find_tModel'.]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStrea
mException(UnmarshallerImpl.java:425)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:362)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(U
nmarshallerImpl.java:339)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.
java:646)
... 25 more
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration
of element 'ns2:find_tModel'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(ErrorHandlerWrapper.java:195)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Err
orHandlerWrapper.java:131)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:384)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
XMLErrorReporter.java:318)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleS
tartElement(XMLSchemaValidator.java:1887)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startEl
ement(XMLSchemaValidator.java:685)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerIm
pl.startElement(ValidatorHandlerImpl.java:549)
at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.start
Element(ValidatingUnmarshaller.java:89)
at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startEle
ment(InterningXmlVisitor.java:71)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleSt
artElement(StAXStreamConnector.java:275)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(S
tAXStreamConnector.java:209)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(
UnmarshallerImpl.java:360)
... 27 more
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
I found a solution to current problem, I googled it and looks eclipse sending UDDI2 request and the JUDDI version i have is 3. So this could be one problem Now i will trying to install Juddi2 it has getStarted.pdf.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Good to hear that you found a solution!
When writing the study notes, I used jUDDI v2 - I hope i did not forget to mention this in my notes.
Best wishes!
nitin pokhriyal
Ranch Hand

Joined: May 19, 2005
Posts: 263
Thanks ivan you really mentioned in your notes but i thought what a big deal let me do with latest version.. It took me 1 week to figure out the problem and example works very well .. So finally i used juddi v2 with eclipse. I had to include mysql drivers and it worked.
For guys who still problem please see publisher table for correct username. the version i got it had "jdoe2" as username. i guess you can change it but i already exhausted in trying to make example work so i didn't played much with it.
":
 
GeeCON Prague 2014
 
subject: jaxr example