× 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.



I am able to start my Tomcat server on the AS400 by
running the startup.sh script, which I have modified
to call the catalina startup script with the jpda
debug option as follows:
  exec "$PRGDIR"/"catalina.sh" jpda start "$@"

However, my Tomcat starts on port 8080 (the default
port value specified in the /conf/server.xml file),
but the catalina.sh script defaults jpda to port 8000.
Shouldn't they both be pointing to the same port, or
does jpda need to be on a separate port as the tomcat
instance? Either way, my Eclipse IDE fails to connect
to the VM when I try all the possible combinations.

BTW - I read somewhere that Tomcat 4.1.29 had a
problem with remote debug capability... is anyone
aware of this? Does anyone have a working remote debug
setup from an IDE to a Tomcat 4.1.29 server on an
AS400? Maybe I should try going down to 4.1.27 or up a
notch?

Help!



--- Ashish Kulkarni <kulkarni_ash1312@xxxxxxxxx>
wrote:
> Hi 
> to debug tomcat, you will have to start tomcat using
> jpda option, like on windows i issue command
> catalina jpda start
> then i debug applications running on tomcat,
> i am not sure how we can do this on AS400
> --- Ivan Hurtado <iva030@xxxxxxxxx> wrote:
> > Robert... not sure if you saw my prior message,
> but
> > I
> > am trying to do the same (debug my app on the
> AS400
> > from my Eclipse IDE) and am having a tough time
> > trying
> > to get it to work. 
> > 
> > Could you please specify what you did?
> > It will be much appreciated...
> > 
> > Thanks,
> > Ivan
> > 
> > --- Ivan Hurtado <iva030@xxxxxxxxx> 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?
> > > 
> > > 2)Did you have to modify your app server startup
> > > scripts to include any special debug options? If
> > so,
> > > what are they?
> > > 
> > > 3)Did you have to install jdwp on your Dev IDE
> or
> > on
> > > your AS400?
> > > 
> > > 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:
> > > >
> > >
> 
=== message truncated ===



                
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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.