× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, 2004-06-14 at 07:57, Ivan Hurtado wrote:
> Robert,
> 
> I am attempting to do the same thing and have run into
> some problems. Could you post a reply with a detailed
> step-by-step list of what you did to get this to work.
> 
> I am using Eclipse 2.1.3 and Genuitec MyEclipse
> Workbench 2.7 for my IDE (it's basically just Eclipse
> with some bells & whistles) on a Windows XP machine. I
> am connecting/deploying to a V5R2 AS400 with Tomcat
> 4.1.29 as my application server. 
> 
> The application I am developing is a server-side app,
> so I don't have the problem where it can run so fast
> that you can't catch it before it's done. The
> following are a list of some things I'm not sure
> about:
>  
> 1)How do you start the application server (tomcat)...
> from the as400 or from your IDE?
> 

I am not using an application server, I was running my own java classes
from qsh.


> 2)Did you have to modify your app server startup
> scripts to include any special debug options? If so,
> what are they?
> 

Like I said above not using an app server so I cannot answer.


> 3)Did you have to install jdwp on your Dev IDE or on
> your AS400?
> 

Eclipse already had the remote debugging as did my iSeries.


from qsh:

java -interpret
  -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
  SomeClass

in eclipse:
I started the debugger, pointed it at the ip of my iSeries and the port
above and it hooked into the remotely running java app


> Thanks,
> Ivan
> 
> --- Robert Upshall <rupshall@xxxxxxxxxxx> wrote:
> > Thanks, that did it.
> > 
> > I would bet my life I tried that last night, I must
> > have been messing
> > with one of the other parms at the same time.
> > 
> > Thanks
> > 
> > 
> > On Fri, 2004-06-11 at 09:14, Gary L Peskin wrote:
> > > Try the same command line except specify
> > suspend=y.  This will stop
> > > SomeClass from running until the debugger is
> > hooked in.  With suspend=n, you
> > > should still be able to connect while SomeClass is
> > running but if it is a
> > > short-running class, it will be finished before
> > you can get the Eclipse
> > > debugger set up.
> > > 
> > > Gary
> > > 
> > > > -----Original Message-----
> > > > From: java400-l-bounces@xxxxxxxxxxxx 
> > > > [mailto:java400-l-bounces@xxxxxxxxxxxx] On
> > Behalf Of Robert Upshall
> > > > Sent: Thursday, June 10, 2004 9:27 PM
> > > > To: Java Programming on and around the iSeries /
> > AS400
> > > > Subject: Re: debug java program on AS400
> > > > 
> > > > 
> > > > Can anybody offer some detailed steps?
> > > > 
> > > > I have been following the examples but I cannot
> > get the 
> > > > debugger to connect.
> > > > 
> > > > I am using Eclipse 3 debugger and running my
> > class on iSeries v5R2M0.
> > > > 
> > > > When I try and start the debugger on the Eclipse
> > side I get 
> > > > an error "Unable to connect to JVM".
> > > > 
> > > > I run the java class with:
> > > > 
> > > >       java -interpret
> > -Xrunjdwp:transport=dt_socket,
> > > >      address=8000,server=y,suspend=n SomeClass
> > > > 
> > > > But the class run to completion, how do I get it
> > to halt and/or break 
> > > > on the sqh side so the Eclipse debugger can hook
> > into it?
> > > > 
> > > > 
> > > > Robert
> > > > 
> > > > 
> > > > 
> > > > On Thu, 2004-06-10 at 19:19, David Gibbs wrote:
> > > > > Ashish Kulkarni wrote:
> > > > > > I am running this process on V5R2, i tried
> > to use WDSc
> > > > > > but still could not debug the java process
> > submited in batch and 
> > > > > > running in subsytem> Do i have to compile
> > this java program on 
> > > > > > AS400, because i have compiled this java
> > program on Windows
> > > > > > and created jar file and copied it to IFS
> > system of
> > > > > > AS400..
> > > > > 
> > > > > No ... just invoke the java class with the
> > appropriate parameters.
> > > > > 
> > > > > Check out
> > http://java.sun.com/products/jpda/index.jsp for 
> > > > information 
> > > > > on
> > > > > how to use JPDA.
> > > > > 
> > > > > Obviously you'll need a Java debugger ... but
> > WDSC provides that.
> > > > > 
> > > > > david
> > > > > 
> > > > > --
> > > > > All paid jobs absorb and degrade the mind.
> > > > > -Aristotle
> > > > > --
> > > > > This is the Java Programming on and around the
> > iSeries / AS400 
> > > > > (JAVA400-L) mailing list To post a message
> > email: 
> > > > > JAVA400-L@xxxxxxxxxxxx To subscribe,
> > unsubscribe, or change list 
> > > > > options,
> > > > > visit:
> > http://lists.midrange.com/mailman/listinfo/java400-l
> > > > > or email: JAVA400-L-request@xxxxxxxxxxxx
> > > > > Before posting, please take a moment to review
> > the archives
> > > > > at http://archive.midrange.com/java400-l.
> > > > > 
> > > > 
> > > > --
> > > > This is the Java Programming on and around the
> > iSeries / 
> > > > AS400 (JAVA400-L) mailing list To post a message
> > email: 
> > > > JAVA400-L@xxxxxxxxxxxx To subscribe,
> > unsubscribe, or change 
> > > > list options,
> > > > visit:
> > http://lists.midrange.com/mailman/listinfo/java400-l
> > > > or email: JAVA400-L-request@xxxxxxxxxxxx
> > > > Before posting, please take a moment to review
> > the archives
> > > > at http://archive.midrange.com/java400-l.
> > > > 
> > > 
> > > 
> > > --
> > > This is the Java Programming on and around the
> > iSeries / AS400 (JAVA400-L) mailing list
> > > To post a message email: JAVA400-L@xxxxxxxxxxxx
> > > To subscribe, unsubscribe, or change list options,
> > > visit:
> > http://lists.midrange.com/mailman/listinfo/java400-l
> > > or email: JAVA400-L-request@xxxxxxxxxxxx
> > > Before posting, please take a moment to review the
> > archives
> > > at http://archive.midrange.com/java400-l.
> > > 
> > 
> > --
> > This is the Java Programming on and around the
> > iSeries / AS400 (JAVA400-L) mailing list
> > To post a message email: JAVA400-L@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit:
> > http://lists.midrange.com/mailman/listinfo/java400-l
> > or email: JAVA400-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the
> > archives
> > at http://archive.midrange.com/java400-l.
> > 
> 
> 
> 
>       
>               
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
> --
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
> mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.