- This topic has 35 replies, 12 voices, and was last updated 18 years, 6 months ago by ranjan123.
-
AuthorPosts
-
CTG GroupMemberHi,
I have setup a J2EE web project and deployed it on Weblogic 8.1 succesfully. MyEclipse allows me to insert breakpoints in the jsp files and also loads the ‘Debug’ mode when the jsp is loaded. However, in the debug mode, it tries to open the generated java code for the jsp and gives the following error message:
Source not found for __<filename>._jspService(HttpServletRequest, HttpServletResponse) line: 25
Is there any additional configuration I have to set to resolve this?
I am using Eclipse 3.0.1 with MyEclipse 3.8.2 .
Thanks,
Niran
Riyad KallaMemberNiran,
Did you configure WebLogic correctly: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.html#97 for the JSP debugging?
krichnafMemberI have the same problem as Niran. I have however, followed the link you mentioned. My weblogic.xml properties file is setup correctly. Here is what I have (Please ignore the ???, I commented out some things for security reasons):
<!DOCTYPE weblogic-web-app PUBLIC “-//BEA Systems, Inc.//DTD Web Application 8.1//EN” “http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd”>
<weblogic-web-app>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/???</res-ref-name>
<jndi-name>com.????</jndi-name>
</resource-description>
</reference-descriptor><description>WebLogic Descriptor</description>
<jsp-descriptor>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor><container-descriptor>
<servlet-reload-check-secs>1</servlet-reload-check-secs>
</container-descriptor><virtual-directory-mapping>
<local-path>../../???/APP-INF/lib/????</local-path>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.css</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>/images/*</url-pattern>
</virtual-directory-mapping></weblogic-web-app>
I am running j2sdk 1.4.2_05. I have noticed when I chose to setup the Weblogic 8 server the jdk was already set to j2sdk1.4.2_05 so I don’t know if my problem lies there.
Any help would be great thanks.
Scott AndersonParticipantThe only things I can think of is that you possibly have the server set to launch in ‘Run’ mode rather than ‘Debug’. Please see Window > Preferences > MyEclipse > Application Servers > WebLogic 8 > Launch. Also, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.
krichnafMemberScott-
I currently have debug checked. What happens is when I execute the jsp page my debug pops up which is correct. However, I do not go directly into the jsp code, i.e. if I was debugging a common java class in debug mode. What happens is I get a new file called _jspService with the following information in it:
Source not found for __results._jspService(HttpServletRequest, HttpServletResponse) line: 15
I know this is right where I put my breakpoint at in the jsp. I am unsure why I can not see the jsp code though. I have listed answers to your posting guidelines below. Hopefully that can help. Thanks.
What operating system and version are you running?
XPWhat Eclipse version and build id are you using? (Help > About Eclipse Platform)
200406251208– Was Eclipse freshly installed for MyEclipse?
No– If not, was it upgraded to its current version using the update manager?
No– Are any other external plugins installed?
Yes– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
8 they are; .ui, .source, .junit.runtime, doc.user, .core, and .buildWhat MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.8.2What JDK version are you using to run Eclipse? (java -version)
j2sdk1.4.2_05What JDK version are you using to launch your application server?
j2sdk1.4.2_05What steps did you take that resulted in the issue?
Trying to debug a jsp page. When I get into the jsp page all that I see is:
Source not found for __results._jspService(HttpServletRequest, HttpServletResponse) line: 15What application server are you using?
Weblogic 8.1Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
No
Scott AndersonParticipantGiven what you’ve told us, I think we need to determine whether or not the issue is your installation. In order to do this we need to run a test. Could you install a complete Eclipse 3.0.1 / MyEclipse 3.8.2 installation in parallel to your current one. To be specific, it should be completely independent from your current environment and use a new, empty workspace. Once the installation is complete, can you generate a simple web project with a single JSP page generated from our default template and deploy it to WebLogic 8.1 and test breakpoints in it. Can you also deploy it to Tomcat 5 and do the same test? Given the results of this test, we’ll know how to proceed to figure out what the problem is in your environment.
akalusMemberHas this issue been resolved? I am facing the same problem (Source not found when debugging JSPs). I have quite the same setup as Scott: Eclipse 3.0.1, MyEclipse 3.8.2, several other plugins (JDepend, PMS, Subclipse, …).
I think it still worked with 3.7.2.
Riyad KallaMemberakalus,
Sometimes shutting down your app server, completely removing your deployment, rebuilding your project and redeploying will fix “Source not Foud” problems.
marroyoMemberI have the same problem. Has this been resolved?
sathish_gopalanMemberIs this resolved ?.
Riyad KallaMemberGuys, did you try the 3 workarounds that Scott and I posted? We also have NO idea what your setups are, and this is not a confirmed bug as everyone I’ve helped with this either corrected it by following the steps I gave above or were using an unsupported application server.
If you have followed the steps above and can’t get things working, post the system info we ask for in the posting guidelines and we’ll see if we can help.
vatjayMemberI have the same issue. I am sure everything is set up correctly and I have taken the step indicated above. I think the underlying issue is that weblogic starts in RUNNING mode even if debug is select from the MyEclipse Preference screen.
<Jan 7, 2005 10:06:45 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Is there a patch or work around for this issue.
vatjayMemberI fixed my issue by changing the MyEclipse Preference for weblogic from “this server is running as standalone” to “this server is externally managed”. Everything worked from there!
GregMemberGlad to hear you got it working, thanks for posting your solution.
Steve HunterMemberI have a similar config (WLS81, Eclipse 3.01, ME 3.82), have WLS configured as directed in the link above, JSP debugging is on, I’ve tried standalone and externally managed settings, I’ve rebuilt/redeployed everything, to no avail. I’m able to set breakpoints in JSP code, but they’re ignored. Debugging into EJB’s works well.
I’ve tried everything listed in these forums, short of reinstalling everything (already I can’t justify the time spent on this!) One thought: is it possible I’m setting the wrong output folder in the build path? The JSP’s live (for example) in /root/jsps, I’ve set the output folder in the Eclipse project to /root/WEB-INF/classes, and I’m deploying the web project from /root.
I’d appreciate any help.
-
AuthorPosts