I have a web app that runs perfectly on Apache Tomcat. However, when I deploy it to WebLogic 10.2.3 server, it gets a NPE due to the session being null.
The app is Java 5, jQuery 1.7.1 running on Win 7 Pro. The first Ajax GET to the server causes some values to be stored in the session object. The next Ajax GET uses these values – thus the NPE due to null session.
In Firebug, I see that different session IDs are being passed – why?
Can anyone help me resolve this?

Another piece of information. Here’s some related jQuery:
$.ajaxSetup ({
cache: false,
xhrFields: {
withCredentials: true
},
crossDomain: true
});
and:
$('#findSites').click(function() { // Locate HTML DOM element with ID "somebutton" and assign the following function to its "click" event...
searchVal = document.getElementById("searchFor").value;
searchTyp = document.getElementById("searchType").value;
$.get('SiteSearchServlet', {searchFor: searchVal, searchType: searchTyp}, function(responseJson) { // Execute Ajax GET request on URL of "someservlet" and execute the following function with Ajax response JSON...
...
Turns out that adding this to the document ready function solved the problem (i.e. now I use the same session unless timeout):
Hope this helps someone else.
Mark