I have Visual Cafe Enterprise Edition 3.1a and WebLogic 4.5.1, all
using JDK 1.2.2. I am trying to debug a servlet from within WebLogic
using Attach to Process.
If I set my project to be an EJB project I can launch WebLogic from
within VC, but it launches a JDK 1.1 debuggable VM, not a 1.2
debuggable VM, so I am unable to debug.
I have followed all the guidelines the support site for "Configuring
Visual Cafe 3.0x to Run and Debug Programs Using JDK 1.2.x" but a 1.1
debuggable VM still launches.
Is there any way to run WebLogic 4.5.1 within a 1.2 debuggable VM and
enable source-level debugging from VC 3.1a?
Have you tried starting WebLogic out side of Visual Café and then
attaching to the process?
Regards,
Tim Dutton
Internet Tools Technical Support
Symantec Corporation
Shahzad
Did you start WebLogic first?
Tim Dutton (Symantec) <nospa...@devtools.symantec.com> wrote in message
news:38dc89f1....@service.symantec.com...
I will look at this post and respond shortly.
The original question though remains unanswered, can you run a 1.2VM.
It seems that "Symantec Debug VM Loader 2.0 for JDK 1.1" is always
loaded up in all of these senarios.
Thanks
The reason that you are seeing this is because although you can plug
in a different JDK, the internal VM is still 1.1.7a. The IDE will use
your JDK for debugging and execution, but there will still be hooks
into the internal VM.
You may want to disable the jit and see if that helps. Let me know if
you need further assistance.
Setup - Cafe 3.1a, WL 4.51, JDK 1.2.2 on NT4 SP6
I had jit disabled all along, so that's not the issue. I have made
significant progress since then, but still have one more issue. I found a
patch under the VisualCafe/platforms directory called vcdbg_generic_1.2,
unzipped it and followed the directions. After that, the debugvm.exe
problems disappeared, I was able to set breakpoints in EJB's and debug
inside Weblogic. But I was only able to do this for EJB's that I wrote
using Cafe's Enterprise Bean Project. I was not able to do this for EJB's
that were written, compiled, and deployed externally to Cafe projects. I
perceive the root of my problem has to do with differences in the way Cafe
deploys EJB's to the Weblogic server, or problems with the Weblogic server
being able to locate source/class files for the EJB.
The error I see now is when I try to set a breakpoint in the EJB source
file, Cafe complains that
"Debug (14:19:54): No code at line 114 for file foo.java: file has not been
parsed completely or the file is built with optimizations turned on.", and
the breakpoint is not set. The bean is fine, I can successfully deploy and
exercise the bean's methods outside of the debugger.
The sequence is this (all on one machine)
1. start ddservices.exe
2. start the Weblogic server with debugvm.exe
3. start up Cafe
4. Attach to the Weblogic server process
5. Under Project/Options, add paths to the class and java files for the EJB
class and java files
6. Open the EJB source file
7. Set breakpoint (results in above error)
I have verified that the file is not built with optimizations turned on, and
is built with the 1.2.2 JDK with debugging info on.
Once again I have successfully done this with an EJB that I built within a
Cafe EJB Project, and deployed using Cafe's wizardry. There's no magic to
this, it just adds a jar file under the Weblogic/classes directory. In
order to use Cafe's Weblogic debugging, are there very specific requirements
as to how an EJB needs to be deployed?
Secondly, where should I configure the Cafe project to tell the debugger how
to find the source files?
In case you're interested, you've got a site license riding on our ability
to make this work....
TIA,
Jim Despelteau
I am looking into this now, and will respond on the new thread that
you posted in this group.
"Tim Dutton (Symantec)" <nospa...@devtools.symantec.com> wrote in message
news:38e9b65e...@service.symantec.com...
Jim has solved his own issue and he has posted it on a thread later in
this group titled:
"Re: Success at last - Cafe31a, WL 4.51, and EJB breakpoints"
So I guess you owe him the site license:)
"Tim Dutton (Symantec)" <nospa...@devtools.symantec.com> wrote in message
news:38fa10ee...@service.symantec.com...
Take a look at this document in our online Knowledge Base:
Title: 'Error: "Invalid Page Fault in Module JAVAI.DLL" when Trying to
Load Scientific Notation Numbers Using the JDBC-ODBC Bridge'
Document ID: 199872884644
Web URL:
http://service1.symantec.com/SUPPORT/devtools.nsf/docid/199872884644&src=w
I know that is not much information to debug.
"Tim Dutton (Symantec)" <nospa...@devtools.symantec.com> wrote in message
news:38ea1be1...@service.symantec.com...
Thanks for the follow up.
"Tim Dutton (Symantec)" <nospa...@devtools.symantec.com> wrote in message
news:38fea54f...@service.symantec.com...
We will have to continue to look at this.