www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Lewis <geoff.le...@finatec.com>
Subject mod_jserv/4483: Need to attach java debugger to servlets running in jserv
Date Thu, 27 May 1999 18:31:56 GMT

>Number:         4483
>Category:       mod_jserv
>Synopsis:       Need to attach java debugger to servlets running in jserv
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jserv
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu May 27 11:40:00 PDT 1999
>Originator:     geoff.lewis@finatec.com
>Release:        1.3.6
Solaris 2.6 / JDK 1.1.5
I would like to be able to debug servlets running within the JServ environment.
Theoretically this should be possible by using the debug java VM with the
-debug argument, since the VM then outputs an agent password that can be used
to attach jdb with. I had hoped that the password would be written to one of
the log files, but this doesn't happen.

I can't easily work around the problem using the HttpServer class, for example,
because I am running a number of specialist servlets such as GNUJSP that
require the full capabilities of Apache. In any case, I would like to be able
to test directly in the environment that I will use in production.
In jserv.properties:

(Note that if you try wrapper.bin=java (ie the non-debugging VM) then you
can see the exception thrown due to the rejection of the -debug option)
1. Be able to direct the output from the debugging java VM, in particular the
agent password, into a file or to the screen at startup.
2. A debug mode in jserv that would do all this automatically?
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message