Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

mike stewart

Greenhorn
+ Follow
since Jun 22, 2011
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 mike stewart

We have recently upgraded to cxf-2.7.3 from cxf-2.3.1. We still have a legacy client useing 2.3.1. When they try to access our webservice, they get the following error.

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: unexpected element (uri:"http://server.testService.test.hp.com/", local:"test_data_model"). Expected elements are <{}arg0>

I am unable to change anthing on the client side, only on the server side. Below is our generated WSDL with cxf2.7.1. I have scoured google for a solution to this question for the last couple of days and found nothing that helps. Does anyone have any suggestions? Thanks.

7 years ago
I have been drafted to help move an application that was developed with a WebLogic server to Tomcat (not my idea). The application utilizes Struts 2 and Hibernate. It uses a login interceptor to get and save login information to the session. After moving the application from WebLogic to Tomcat, there is a problem with the session. Here is what is happening....

I have it set up to save login information to the session that is entered on the first screen. After I login and navigate to a new page, our application checks the session to see if login information is saved in it. When it does this, it should find the information that was saved in the login page but it does not, rather it finds the session null (I found this out by debugging) and returns me back to the login page. This means whenever I click on a link I get kicked back to the login screen since my user information is not accessible from the jsp page. It just keeps creating more and more sessions every time I log in without being able to access them from the jsp pages.

I have searched these forums and google for almost a month now to no avail. Again, this is working just fine on WebLogic. Thanks for any help!

Summary; Tomcat is not accessing already saved session.
8 years ago
Thanks, that solves one problem. My main problem is how am I going to populate that new window with only a string (in the struts2 framework in a JSP). I don't mean inbetween <p> </p> tags, but by itself so IE will format the xml string in the correct way. Also, can I put "target = _blank" in my struts.xml? I don't think I can but ill try when I get back home. Thanks for your help Paul.
9 years ago
Yes, I do mean new broswer window. How would I specify in html that I want my String to be displayed in a new window? Thanks for the help.
9 years ago
I have a action class that does some logic and returns an xml document in the form of a String. I would like to, instead of displaying the xml with <s:property value="xmlResponse"/>, display the String in a new window so that Internet Explorer will format the String (also, I need it to display in a new window so formatting it to display in the current window wont work for me). I am using struts 2 and need to call the new window from a jsp page. Thank you for any help you can give!
9 years ago
I have searched everywhere on google and in these forums and can't figure out why this is not working. Here are my relavant files. I have left some things out but I don't believe I left out anything important. Any help would be greatly appreciated. Thank you in advance and sorry for the long post.



Struts.xml


listTestGroup.jsp



TestGroupAction.java //there are getters and setters for all varilables even though they are not visable.



TestGroupAction-validation.xml


9 years ago