|
From: <bri...@we...> - 2014-02-19 18:30:24
|
Hello, I have not been able to attach the Eclipse debugger at all yet, unfortunately. My thought was that the service would have to be launched already before I could actually attach the debugger to it. (In Visual Studio .NET it is that way, and that's what I am more knowledgeable about. So I'm kind of trying to learn about the Wrapper and java ad everything at once here :() Re: the DB crypto error: Yes, that is driving me crazy! I have Googled the issue a bunch, and it was supposed to be fixed after I corrected a JDBC driver versioning issue, but I have had no success. :( Re: the "suspend=y", don't forget, I just put those 4 statements in my wrapper.conf, and they are commented out, so they have no impact yet: #wrapper.java.additional.2="-Xdebug" \ #wrapper.java.additional.3="-Xnoagent" \ #wrapper.java.additional.4="-Djava.compiler=NONE" \ #wrapper.java.additional.5="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"\ Thanks. ~ Brian ~ From: David Brown [mailto:da...@da...] Sent: Wednesday, February 19, 2014 9:40 AM To: wra...@li... Subject: Re: [Wrapper-user] How to debug a Java Service Wrapper running as a Windows service using Eclipse? Yes you have a serious crypto issue w/ your DB but it should not have even gotten to this point because of: suspend=y Are you attaching the Eclipse debugger before launch? On 02/16/2014 06:23 PM, bri...@we...<mailto:bri...@we...> wrote: Hello, I have been asked to make enhancements to an existing java application that uses an older version of the Java Wrapper Service (v3.1.2). Apparently this version is old enough that (at the time) there was no 64-bit version, and also Tanuki did not yet offer Professional and Standard editions either. I have used the 32-bit Eclipse Kepler IDE to make the enhancements: Version: Kepler Service Release 1 Build id: 20130919-0819 I have an existing Ant (v1.8.4) script that I use to build the java application, which I have integrated successfully into the Eclipse IDE. I have modified the existing wrapper.conf file of the Tanuki Java Service Wrapper to allow me successful installation of this java app as a Windows Service. However, I can see from the logs that there are error in my code, and I would like to use Eclipse to step through my code while it is running as a Windows service. I have read a number of sites and articles, and I have a vague understanding that most likely I need to do the following: * Add some settings to my wrapper.conf file (wrapper.java.additional.N serttings? Other settings?) * Use a Remote Java Application Debug Configuration with the proper host and port specified I found a few settings that I think I might need, but I'm not sure exactly how to configure them. I currently have them commented out in my wrapper.conf file: #wrapper.java.additional.2="-Xdebug" \ #wrapper.java.additional.3="-Xnoagent" \ #wrapper.java.additional.4="-Djava.compiler=NONE" \ #wrapper.java.additional.5="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"\ But beyond that, I don't have a clue how to set this up. Requested info: Wrapper version: v3.1.2 OS: Win 7 Enterprise SP1 Wrapper.conf file (attached): wrapper.log of my windows service. There are errors in the log, but I think they are due to issues in my java code (specifically when it tries to connect to our DB2 database). If I could debug the service, then I could probably fix the errors: Please assist. Thanks. ~ Brian ~ ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Wrapper-user mailing list Wra...@li...<mailto:Wra...@li...> https://lists.sourceforge.net/lists/listinfo/wrapper-user |