Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2009, 10:48 PM
Member
 
Join Date: Nov 2009
Posts: 6
Rep Power: 0
Arthur Gardner is on a distinguished road
Default Is it possible to debug java code marked load-on-startup?
Hi, this is about Eclipse 3.4.2 (Ganymede).

We have some startup code that is invoked using a Servlet class, which is defined with the following property in web.xml:

<load-on-startup>1</load-on-startup>

Setting a breakpoint before starting the server (which is Weblogic 9) seems to have no effect. Does anyone know a way to accomplish this?

Thanks,
Arthur
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-16-2009, 08:12 AM
Senior Member
 
Join Date: Aug 2009
Posts: 1,760
Rep Power: 2
r035198x is on a distinguished road
Default
Works for me. The more elegant approach though is to add a ServletContextListener instead.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with getTables marked albyblueska Database 0 08-06-2009 08:20 PM
Debug challenge: how do you debug a Java program? CJSLMAN New To Java 60 07-04-2009 11:28 AM
Debug gives same result when I change the code! RedSix NetBeans 3 04-14-2009 05:44 PM
how to load a java class in startup leonard Advanced Java 1 08-06-2007 04:36 AM
how to debug java code in eclipse rajesh058 Advanced Java 3 07-26-2007 12:19 AM


All times are GMT +2. The time now is 03:41 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org