Arunoday Das Gupta

Greenhorn
+ Follow
since Sep 02, 2011
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 Arunoday Das Gupta

Hi Chris,

Here is TestClient.jsp



Regards,
Arun
7 years ago
Hello Everyone,

I am not able to transform a message using a Transform message. My input is a java object which is directly generated through wsdl using apache axis and output is application/xml




and my mule config file is as under


While I tranform the message, I get an error Unexpected character 'p' (code 112) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1] (com.ctc.wstx.exc.WstxUnexpectedCharException)

After tranform the payload is payload after transform com.mulesoft.weave.mule.WeaveMessageProcessor$WeaveOutputHandler@58bf5935

I don't why it is not getting transformed into an xml

Can anybody please help?

Regards,
Arun
7 years ago
Hello everyone,

First of all, I do apologise if the thread has not been posted to right forum but I couldn't find any other related forum.

My quandary is I am trying to enable SSL on my Apache tomcat server for it to accept requests made through urls preceding with https:

I generated a keystore using a keytool and gave the path of keystore file and other attributes in the server.xml as below:



Under normal circumstance it works without including keystore it works fine but when I comment the original file and add the section:

<Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="C:/Users/uday/.keystore" keystorePass="6t6bdbqN"
clientAuth="false" sslProtocol="TLS" />


it does not start within given server start up time of 45 secs and also when extended to 70 sec.

Can anybody help here please?

Regards,
Arun
7 years ago

Chris Barrett wrote:

Arunoday Das Gupta wrote:I tried again with TestClient.jsp but got the same error which suggests really that the message is not being passed in the right format by the TestClient.jsp.



Good to hear you made headway. How are you implementing the marshalling of the form data to XML within the client's controller or service layer?




Hi Chris,

Actually, I was testing the web service following an online material using top-down approach. In particular, I am not handling the marshalling of the XML explicitly anywhere.

Regards,
Arun
7 years ago
Thank you Chris and Prabhjot!

I will take care of the forum etiquettes in future.

I did go through the route of Chris and was able to validate the wsdl and get a response while passing a SOAP message on soapUI. I tried again with TestClient.jsp but got the same error which suggests really that the message is not being passed in the right format by the TestClient.jsp.

I am happy that the web service is working. Let me know if there is a way to debug how TestClient. jsp is posting message. I will close and mark the thread as resolved anyways.

Cheers!
Arun
7 years ago
Hi Everybody,

I am just trying to develop a short example for a web service and test it through TestClient.jsp available on Apache Tomcat. Here are the steps that I took:

1) Develop a wsdl to create Topdown web service. Here's my wsdl:



2) After creating the wsdl, I created service and implementation classes using start service and top down approach.

3) Lastly, I tried to test it via TestClient.jsp. I get the interface to feed in the parameters but when I invoke the web service I get teh error beneath as an attachement. Here's the error

Exception: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed. Message: ; nested exception is: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 3; The markup in the document preceding the root element must be well-formed.

I see nothing on the Tomcat console. I think it probably has to do with the wsdl. Can anybody please help?

Regards,
Arun
7 years ago

Hi all,

I am new to webservices and currently facing a problem. I was able to send a simple sting as soap request and respond.

but now i want to send attachments with the request. How do i retrieve the attachments (or for that matter the whole contents of the soap request ie soap part and the attachments part). I have tried the following:

1) Tried to have the message as a parameter in a method in service java class and try to invoke the .getAttachments() method. [dont think this is the way to do it]
2)Tried to use a MessageContext as parameter but for that extending "Handler" class but then again when i try to create wsdl throung wsgen tool there is an exception stating can not handle interfaces and points to MessageContext interface.


can anybody help me on how to fetch the contents and attachments of the request?Thanks in advance.
12 years ago
Hi Greg,

Thanks for mentioning that!

I have implemented the solution by having an artifact of maven in the build.xml

<project name="MyProject" basedir="." default="main" xmlns:artifact="antlib:org.apache.maven.artifact.ant">

<target name="installAll" >
<artifact:mvn>
<arg value="install"/>
</artifact:mvn>
</target>


This way the the install phase of the maven can be called from within the ant script. My purpose was to do some additional functions before running the maven install . For that i had the build.xml but was not sure how to incorporate the maven features


Hope it helps !
12 years ago
Thanks Peter! But this was not what I was looking for. Anyways I found out the way the mvn can be run as artifact wiht a specific phase (as install, clean etc) by having it as a task in ant script.
12 years ago
Hi,

I want to run the mvn command from an ant script . my script is as under :


Does only reading the pom.xml mean running the mvn command? I dont know how to approach it . i want to run "mvn install" from within the ant script.
12 years ago


Hi all,

I was awaiting the reply. Have i posted the question in the wrong forum or not following some protocol . Please any hints will be greatly appreciated.
12 years ago
JSF
Hi ,

I am trying to migrate an application from sun RI but failing to do so . The error is a common one and found some remedies posted on google but still making the changes suggested doesnt work. The error is :


java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory:
javax.faces.context.FacesContextFactory

The solution was given to include a listener class in the web.xml.

<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
<!-- Listener implementation to handle web application lifecycle
events -->
<listener>
<listener-class>
com.sun.faces.application.WebappLifecycleListener
</listener-class>
</listener>


But still the application doesnt work with the above changes.


i had some filter classes too pertaining to myfaces and tried after removing it but in vain.

Does somebody have an idea about the same ??
12 years ago
JSF