Stuart Swearengen

Greenhorn
+ Follow
since Nov 02, 2006
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 Stuart Swearengen

I can see the java control app, do you have an update tab?

if you install a 32 bit jdk you do, 64 bit it doesn't
11 years ago
Anyone know why there's no update option on windows 64 from the control panel > java? the panel is present in win 32 bit?
11 years ago
Thanks for the replies, some great help in there. Sorry for the delay a collarbone break stopped me. As I thought, it may take me some time to get all the legacy projects migrated.

One of the points I worried about the most was that by removing eclipse+ wtp, the debugging experience would be less good to devs. It seems you all have gone down the command line route,potentially invoked in conjunction with an IDE.

  • How are you debugging the code if you need to? remote debugging like http://stackoverflow.com/questions/1536445/preferred-way-of-developing-web-applications-with-m2eclipse or just using logging?
  • 11 years ago
    I thought it was about time I start using maven or at least prototype to see if it will do what I want. I'm hoping it can make the whole ant build+release process faster?
    I have a series of large applications running in tomcat, build using ant and hudson for releases and eclipse for local dev environments. So, where to start looking at moving to maven?

    given that:
  • I don't want to impact the developer / debug experience
  • eclipse + wtp + tomcat + selennium + svn + hudson is always in the mix

  • how do you migrate?
  • would there be a local build in maven and a remote one for builds? or just one?
  • can maven do all the code checkout / labelling/ running test code/ deploying?
  • any good stuff to read? poms seem impenetrable at first glance as do archetypes
  • any recommendations on useful eclipse tools


  • thanks,

    Stu
    11 years ago
    If a .net web app called a java web app, could the java web app find out the username of the user it was called by?

    I can assume the two apps are running on the same domain. The two apps could both be in IIS in theory, one pure .net, the other IIS and tomcat (if that helps). I can't assume the browser is IE

    Many Thanks,

    Stuart
    12 years ago
    JSP
    Ideally I'd rather do the assigmnent first, then go back and do part the part 1 exam leveraging lessons learnt. Anyone done it in that order?
    Can you rename an element's name attribute?

    e.g.

    Lastly, can you remove a complete xmlelement? thus removing the property from the resulting json object? e.g. remove test completely programmatically.

    thanks.


    13 years ago
    That works, I must have been trying to close the first editor window, not the second. doh.

    Thanks
    When I open one of my workspaces, I now get two full editors. I admit it was my fault as I had asked for two originally (window>new editor)

    Q. How can I close one of them? I have tried closing via file > close. It closes both, not just one.
    [SUM]

    String s = "{\"ABCD\" : 123}";
    JSONObject o = new JSONObject();
    o.put("result", new JSONObject(s));
    return new JSONWithPadding(o, callback);

    works as I needed.
    full answer is available on jersey.dev.java.net if you want to know more
    14 years ago
    My short question is why does my jsonp response have an extra set of quotes around the json object, my second is how do I fix it. I'm so close to it all working.

    I am returning a jsonp response from two different approaches. The first is by using jaxb annotation objects, this works well. (see callback1)
    The second is by wrapping/chaining another external rest service into a string and returning the reponse as below using Client, this doesn't work (callback2). I think my problem is in the string and the jaxb object queryResult's String result property.
    14 years ago
    I'm trying to parse a JSON string into a bean's property. It works fine, except for mapping an array[][][] to a property. Using a sample piece of JSON, adding a subelement e.g. circles, has me stumped.
    How do I get the array into the bean's property? Ideally, the property holding the array "circles" would be an arrayList or array of circles, with inner circles and finally point objects. How do I achieve this? I couldn't see how to achieve this. Stub code below.

    Thanks,
    Stuart

    the sample jsonString is

    I've also posted this here
    http://sourceforge.net/mailarchive/message.php?msg_name=BAY126-W104FE371294CCF0A0354DC99A60%40phx.gbl
    Thanks for that. It's 100% useful. I'll dig more into those.

    If you want to write once and be able to port between tomcat and websphere, would one implementation be better over another?
    15 years ago
    I'm sure i have the wrong end of the stick.

    Using eclipse (ganymede and web tools) I have a simple pojo service. When I generate the client in eclipse, I get files like servicenameCallbackHandler and servicenamestub. That's using axis2, if my settings are correct.

    If I use wsimport I get a client with an object factory and serviceporttype/service and response.

    The axis2 samples also use clients that have the object factory type client.

    Q. Am I using axis2 incorrectly in eclipse?
    Q. Is the service.xml wrong and that the problem?
    Q. shoudl axis 2 jax-ws output outputfactory clients?

    Thanks.
    15 years ago