Dibyendu Sarkar

Greenhorn
+ Follow
since Jan 12, 2009
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 Dibyendu Sarkar

In CXF, you enable logging like this:




Source: http://cxf.apache.org/docs/configuration.html


Everything seems to go to files or console and can be configured using Log4j as well it seems.

My question is, how do you enable logging on server side so that you can intercept these raw requests and responses and store them in a table in the database along with other application specific information related to the service call.

This is all for server-side service implementation class.
10 years ago

Bear Bibeault wrote:Please be sure to post Eclipse questions in the IDEs forum. I have moved this there for you.




Well, I thought about it but the error is still the same as the original in the title. It's pretty much a JSTL issue still. So didn't make sense to me to move it from JSP to IDE forum. But anyway, as long as someone is able to help...
I'm still battling this one. Anyone care to help?

The final built war file (generated using maven) runs fine now when deployed on tomcat 6 installation using the tomcat manager. But inside Eclipse it still refuses to cooperate!

Bear Bibeault wrote:What else ends up in WEB-INF/lib? Are the servlet and JSP API jars being copied there? They should not be.



No those 2 files are not there. I'm using maven and the scope for those two is set to "provided". There are a bunch of other jars but those are related to CXF and some other stuff and not to JSP/JSTL.

Bear Bibeault wrote:It's WEB-INF/lib not LIB.



Yes, it is lib. I've edited my original post.
I'm getting this exception. My project settings are given below. Someone please help me figure out what am I doing wrong. I've tried to provide as much information as I can. Please let me know if any other information is required to help me troubleshoot this.



POM dependencies:



JSP:




TOMCAT: 5.5.17



WEB.XML


MAVEN BUILT PROJECT:


My 'not-so-elegant' approach in the 4th post in this thread worked.
Thanks everyone!
11 years ago
JSP
Well, I'm not sure about the too many moving parts. But I feel I might have over-complicated the implementation. Have been working on this for quite sometime so I apologize if I'm failing to see some very simple and obvious solution.

The original piece of requirement for this issue was:

1) Show the various pages to the user no matter what.
2) Upon trying to act on the page in anyway that would update the database, verify if certain tasks have been performed already.
3) If not, prompt them to do it (hence the modal div and ajax) and unless they do it, don't let them submit.
4) If the user satisfies the requirements using the modal div, dismiss the div and record the completion of requirements.
5) Then when a submit is re-attempted, verify and allow!

"SIMPLE", I'd have been inclined to think under other circumstances...!

The pages are allowed to be shown no matter what and the user can enter data as well. Only on submit does the requirement to satisfy certain preconditions arises. Refresh is avoided, so that no data that is already entered on the page is lost and also to avoid the user being taken to any other page.
11 years ago
JSP
I was a kinda aware of that, but was hoping the following scenario was possible to implement.

Continuing with my reply to the 2nd post,

My callback method is mainly being used for:

1) Updating the contents of the modal div and wait for the user to dismiss it. OR
2) On satisfying certain conditions, dismiss the modal div automatically.

Once the UI part is taken care of (which is working fine right now), I'd like for this to happen:

1) When the user resubmits the JSP which was already open, I'd like my javascript method (which is being called on form onsubmit), to be able to find out that the session variable was updated between the time the page was loaded and the time of submission.

From another forum, I got an idea to use my onsubmit javascript to make another AJAX call to find out the value. And then prevent/allow submit based on the response. I'm trying that out now, and don't see any obvious reason why it won't work. But personally, I find this clumsy and AJAX overkill. At this point, I'm a little averse to reconsider the whole design itself.

Please let me know if you need more information about this scenario.
11 years ago
JSP
Hi,

On a JSP page, on click of a button to show some content in a modal div ( a <div> behaving like a modal dialog box) , I'm updating a session variable after doing some internal check via AJAX.

My problem is, when this modal div is dismissed, I'd like the currently open, 'underlying' JSP page to get the updated value of the session variable without refreshing the JSP page (which was the whole point of using AJAX in this case).

But when I read the session variable using Javascript, I see that it still has the old value of the session variable. On refreshing the page though, everything falls in place and the JS alert displays the updated value. But refresh is what I'm trying to avoid.

Any help is highly appreciated.

Thanks!
11 years ago
JSP
Hi everyone... I hope everyone's doing good.

I've run into an issue with XMLType. Here's the problem:

I have an XML stored in a XMLType column in the database. I extracted it from the database, did the parsing, did all the modification and now I have an updated XML string that I need to update back into the column I fetched it from. Now this is where I'm stuck. How can I convert a String containing XML into an XMLType object?

Any ideas?

XMLType has this method:

XMLType.createXML(Connection conn, String xmlString).

I'm trying to use this one. Can anyone tell me how to go about getting the first parameter?
If there is a totally different way to do the String -> XMLType conversion, please let me know that as well.

This is a pure Java app and I'm using iBatis.
Thank you Sangram... I will give this a try...
11 years ago
Thank you. I was able to get this to run. Although in a slightly different way. Now I'm facing another problem. The end-point for the service I'm writing the client for is supposed to be different for the dev/testing and the production environment.

I'm using Maven. It is looking for the WSDL in the path mentioned in the POM.


Now when this migrates to the testing region, I'd need it to use a different end-point. But since it will still have the same WSDL pointed to via the POM, it'll pick up the end-point for the dev environment.

What is the best way to handle this?
11 years ago
I'm totally new to CXF (and web services for that matter) and this is what I'm trying to figure out. My maven creates the classes for me. But how do I determine which class is the one I really need to use? My understanding is the one extending Service? Is that right?

Now if that's the case, the class I see after generating the code though CXF and Maven, i do not see how to implement this class in my code to make use of the service. While, when I tried to use xFire, it created a client class for me for the same WSDL and I just had to start from there and it was easy...

CXF is supposed to be easier than xFire I am told. Please help me to see that argument clearly...
11 years ago
I'm getting the picture a bit now. I'll try this out and will be back to you Gurus if I get stuck again or if I manage to do it.

Thank you all!