For help with installation, bugs reports or feature requests, please head over to our new forums.
	
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 20 years, 3 months ago by Scott Anderson. 
- 
		AuthorPosts
- 
		
			
				
 beyonder_xMemberHi Tech Support, 
 Engineers,Greetings! I cannot make my myeclipse and weblogic do 
 a JSP debug. I tried to read all the notes posted in
 the website, but still it doesn’t work in my machine.I can do a class debug btw, but the JSP debugging is not 
 working. Here’s my environment setup:1) windows XP Pro version 2004 Service Pack 2 
 2) Eclipse Platform Version: 3.0.2 Build id:
 200503110845
 3) MyEclipse version 3.8.4
 4) Weblogic 8.1 SP4
 5) added this in my project’s weblogic.xml<jsp-param> 
 <param-name>debug</param-name>
 <param-value>true</param-value>
 </jsp-param>6) I started myeclipse using this command line: ./eclipse -vm c:/j2sdk1.4.2_07/jre/bin/javaw 
 -Xmx=1024mso my config is: java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment 
 java.awt.printerjob=sun.awt.windows.WPrinterJob
 java.class.path=c:\development
 software\eclipse\startup.jar
 java.class.version=48.0
 java.endorsed.dirs=c:\j2sdk1.4.2_07\jre\lib\endorsed
 java.ext.dirs=c:\j2sdk1.4.2_07\jre\lib\ext
 java.home=c:\j2sdk1.4.2_07\jre
 java.io.tmpdir=C:\DOCUME~1\alim\LOCALS~1\Temp\java.library.path=c:\j2sdk1.4.2_07\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6\bin;c:\Perl\bin\;c:\oracle\ora92\bin;c:\orant\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\j2sdk1.4.2_07\bin;c:\Program 
 Files\Perforce;c:\development
 software\apache-ant-1.6.2\bin;c:\Program
 Files\Vim\vim63;c:\Program Files\Common
 Files\GTK\2.0\bin
 java.runtime.name=Java(TM) 2 Runtime Environment,
 Standard Edition
 java.runtime.version=1.4.2_07-b05
 java.specification.name=Java Platform API
 Specification
 java.specification.vendor=Sun Microsystems Inc.My weblogic startup script: C:\DEVELO~1\bea\JROCKI~1\bin\java -jrockit -Xmx=512m 
 -Xms=256m -Xverify:none -Xdebug -Xnoagent
 -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
 -Dweblogic.Name=myserver
 -Dweblogic.ProductionModeEnabled=false-Djava.security.policy=”C:\DEVELO~1\bea\WEBLOG~1\server\lib\weblogic.policy” 
 weblogic.ServerQUESTION: 
 1) Do I need to start weblogic in Eclipse, to be able
 to do the JSP Debug? (Because I’m currently starting
 weblogic using startWeblogic.cmd, and I can do the
 class debugging fine, using the 8787 port I specified.
 )my analysis: 
 I tried setting up the app server connector, and upon
 setting up the WLS JDK Name doesn’t accept the
 c:\jsdk1.xxx\jre, I specified.According to the FAQ posted you have to specify the 
 JDK (c:\jsdkxxx). So I tried that too, and it told me that it cant
 find the javaw.exe2) Do I need to specify options like this in the JAVA 
 VM arguments of eclipse (in the
 MyEclipse- Application Server- Weblogic 8- JDK)?
 -jrocket -Xms256M -Xmx712M -Xdebug -Xnoagent
 -Djava.compiler=NONE
 -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
 -Dfile.encoding=ISO-8859-1 -Xverify:none
 I copied this from the startWeblogic.cmd, and I guess
 it requires to open the 8787 port, right?I also think, that myEclipse cannot find the compiled JSP classes, because it’s deployed in the different directory, (the source directory is diferent than the deployed directory in our case) and when you specify the project in the MyEclipse Debugger (MyEclipse Remote Debug Configuration ), I’m afraid it cannot find it. Do I need to add the deployment directory in the source tab, of MyEclipse Remote Debugger? Any tips on this setup is very much appreciated. Thank 
 you very much!Beyonder July 8, 2005 at 10:41 pm #232604
 Scott AndersonParticipantBeyonder, You can either launch WebLogic from within MyEclipse OR launch it externally 
 and use our remote debugging facility. Please see the Documentation section
 on the website for instructions on how to set up remote debugging
 (http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/remotedebugging/index.html)For configuring the server for launch within Eclipse see the example in the 
 FAQ here:
 http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.htmlFor the JDK, you simply need to point to the root of a full JDK installation 
 like: c:\j2sdk1.4.2, *not* to the internal jre subdirectory. And the other
 thing people forget with weblogic is that you have to include a weblogic.xml
 file in your WEB-INF directory to enable JSP debugging. It should look like
 this:<!DOCTYPE weblogic-web-app PUBLIC “-//BEA 
 Systems, Inc.//DTD Web Application 7.0//EN”
 “http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd”>
 <weblogic-web-app>
 <description>WebLogic Descriptor</description>
 <jsp-descriptor>
 <jsp-param>
 <param-name>debug</param-name>
 <param-value>true</param-value>
 </jsp-param>
 </jsp-descriptor>
 </weblogic-web-app>July 11, 2005 at 12:06 pm #232725
 beyonder_xMemberDear Scott, I got it working! Thanks! I originally used “Remote Java Application” (of debug window) of eclipse, so by switching it to “MyEclipse Externally Launched Server” it works fine. So it has to be the MyEclipse debugger huh? Thank you, 
 BeyonderJuly 11, 2005 at 8:15 pm #232747
 Scott AndersonParticipantBeyonder, So it has to be the MyEclipse debugger huh? If it didn’t, we wouldn’t have written it. 🙂 
- 
		AuthorPosts

