Craig Williams

Greenhorn
+ Follow
since Apr 14, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Craig Williams

I have just deployed a simple war which comes a sample war with Sun One App 7.0.The Implementation file is going to return a String to the JAXRPC client.When run the client ,at client i got the following exception


C:\Sun\AppServer7\samples\webservices\jaxrpc\simple\src>asant run
Buildfile: build.xml
build_cpath:
init_common:
init:
run:
[echo] Running the samples.webservices.jaxrpc.simple.HelloClient program:
[java] javax.xml.soap.SOAPException: Invalid Content-Type:text/html
[java] at com.sun.xml.messaging.saaj.soap.MessageImpl.verify(MessageImpl.java:159)
[java] at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:91)
[java] at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
[java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:156)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:60)
[java] at samples.webservices.jaxrpc.simple.HelloClient.main(Unknown Source)
[java] java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message; nested exception is:
[java] HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:77)
[java] at samples.webservices.jaxrpc.simple.HelloClient.main(Unknown Source)
[java] Caused by: HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message
[java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:189)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:73)
[java] at samples.webservices.jaxrpc.simple.HelloIF_Stub.sayHello(HelloIF_Stub.java:60)
[java] ... 1 more



At the server i got the following exception.


SEVERE: SAAJ0535: Unable to internalize message
SEVERE: Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
Couldn't create SOAP message due to exception: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:152)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:795)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:369)
at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

CAUSE:

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:302)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:47)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:38)
at com.sun.xml.rpc.soap.message.SOAPMessageContext.createMessage(SOAPMessageContext.java:150)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.getSOAPMessageFromRequest(JAXRPCServletDelegate.java:795)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:369)
at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)


Please help me in resolving this issue.Thanks
18 years ago
Hi

Can anybody help me in the problem .I just tried to execute wsdeploy.bat on a war file(temp.war) which contains web.xml,jaxrpc-ri.xml in the folder under war directory and (Interface,Implementation class file under WEB-INF/classes/PackageName).
Syntax of the command is wsdeploy -o apps.war temp.war -verbose
result is

info: created temporary directory: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221

info: removed temporary directory: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221

error: java.io.FileNotFoundException: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221\WEB-INF\jaxrpc-ri.xml (The system cannot find the file specified)
java.io.FileNotFoundException: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221\WEB-INF\jaxrpc-ri.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:211)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:24)


Content of the jaxrpc-ri.xml is

<webServices
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="http://SuccessWebservices.org/wsdl"
typeNamespaceBase="http://SuccessWebservices.org/types"
urlPatternBase="/ws">

<endpoint
name="SuccessService"
displayName="Success Service"
description="A simple web service"
interface="Success.SuccessIfc"
implementation="Success.SuccessImpl"/>

<endpointMapping
endpointName="SuccessService"
urlPattern="/success"/>
</webServices>


I even do not know whether value given in targetNamespaceBase and typeNamespaceBase is correct or not.how shud i verify it whether it is correct or not.Plz guide me in this regard






Plz help me on this issue.
18 years ago
Came to know from some of the JAXRPC articles,after creating Interface and implementation file for that interface,we need to create stubs and ties and also some Web services related files using XRPCC tool.Here my question is, where do i find XRPCC tool... I have downloaded the latest JWSDP 1.6 and still i cud not able to find out XRPCC tool.plz do suggest me way to get this XRPCC.bat and its related jar files for creation of stubs and ties.Actually we are planning to implemeent only JAXRPC concept in our project.Do reply me.
18 years ago
HI

I need the procedure for converting java appl into Eclipse plugin.Say for example i am having program that is going to insert two lines of java code (two System.out.println statements ) in the current active editor where the cursor is currently is present .This application has to be converted into Eclipse plugin ,whereby by clicking on this plugin ,i shud be able to do the same job of inserting two lines of java code in the current activer editor.
Plz do reply
Thanks in advance
My question is thru programatically ,can we remove the unused variable or Unread variable .Is there any java API can we use?.. or any tool to remove those variables completely from our program
19 years ago
HI
Is there anyway by using Java API we can find out whether a variable(Class level and local) is unread(unused) or not.Plz do reply
19 years ago

Originally posted by Mohana Murali:
Hi
I have SCJP and SCBCD preparation notes in PPT format.
These the note I prepared for these exams.
I would like share these.
Please let me know is there any way I can put them in on web so that others
can benifit on it.


Hi Mohana
plz do mail me Ur Notes(SJCP and SCBCD) to j2eeforme@yahoo.com
looking forward to ur mail

Originally posted by Mohana Murali:
Hi
I have SCJP and SCBCD preparation notes in PPT format.
These the note I prepared for these exams.
I would like share these.
Please let me know is there any way I can put them in on web so that others
can benifit on it.