well, this is a tiny how-to of how I personally do it:

*********TDK****************
in ...\tdk\bin\catalina.bat add:

set CATALINA_OPTS=%CATALINA_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE 
-Xrunjdwp:transport=dt_socket,server=y,address=7070,suspend=n

before"rem Guess CATALINA_HOME if not defined"
start tomcat


*********NetBeans3.4***********
copy your source files into WEB-INF/classes
toggle the breakpoint
Debug->Start Session ->attach
in the pop-up window:

Debugger: JPDA
Connector: SocketAttach
Transport: dt_socket
Host:<your Computer Name >
Port:7070

start your browser and point to your app
once the code reaches the break point, the debugging will start, I hope ;-)

Akmal


>From: "wilhelm hingst" <[EMAIL PROTECTED]>
>Reply-To: "Turbine Users List" <[EMAIL PROTECTED]>
>To: "Turbine Users List" <[EMAIL PROTECTED]>
>Subject: AW: NetBeans 3.4 and TDK 2.1
>Date: Mon, 14 Oct 2002 15:28:05 +0200
>
>I'm using the one bundled with netbeans.
>
>wilhelm
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Akmal Sarhan [mailto:[EMAIL PROTECTED]]
> > Gesendet: Montag, 14. Oktober 2002 15:05
> > An: [EMAIL PROTECTED]
> > Betreff: Re: NetBeans 3.4 and TDK 2.1
> >
> >
> > Do you debug using the tomcat of the tdk or the one bundled
> > with netbeans?
> > regards
> > Akmal
> >
> >
> >
> > >From: "wilhelm hingst" <[EMAIL PROTECTED]>
> > >Reply-To: "Turbine Users List" <[EMAIL PROTECTED]>
> > >To: "Turbine Users List (E-Mail)" <[EMAIL PROTECTED]>
> > >Subject: NetBeans 3.4 and TDK 2.1
> > >Date: Mon, 14 Oct 2002 14:06:22 +0200
> > >
> > >Hi,
> > >
> > >I'm using NetBeans 3.4 with Tomcat 4.0.4. I want to debug the
> > >default-WebApp from within NetBeans.
> > >I've done this before with NetBeans 3.3.2 and Tomcat 3.x -
> > everything
> > >worked fine.
> > >
> > >But in my current configuration when I try to access
> > >http://blaukrabbe:8081/servlet/spicersweb I  get the Tomcat
> > 404 error page
> > >(requested resource is not available)
> > >
> > >turbine.log and velocity.log are empty
> > >Other logs are attached below.
> > >
> > >Any help would be very much apreciated.
> > >Thanks
> > >wilhelm
> > >
> > >My blaukrabbe_log is:
> > >
> > >2002-10-14 13:40:38 StandardContext[]: Starting
> > >2002-10-14 13:40:38 StandardContext[]: Processing start(), current
> > >available=false
> > >2002-10-14 13:40:38 StandardContext[]: Configuring default Resources
> > >2002-10-14 13:40:38 StandardContext[]: Configuring
> > non-privileged default
> > >Loader
> > >2002-10-14 13:40:38 StandardContext[]: Configuring default Manager
> > >2002-10-14 13:40:39 StandardContext[]: Processing standard container
> > >startup
> > >2002-10-14 13:40:39 WebappLoader[]: Deploying class
> > repositories to work
> > >directory C:\Documents and
> > >Settings\wilhelm.hingst\.netbeans\3.4\tomcat404_base\work\Tom
> > cat-Internal\blaukrabbe\_
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > >/WEB-INF/lib/activation-1.0.1.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\activation-1.0.1.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/classes12.jar
> > >to  D:\tdk\webapps\spicersweb\WEB-INF\lib\classes12.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/ecs-1.4.1.jar
> > >to  D:\tdk\webapps\spicersweb\WEB-INF\lib\ecs-1.4.1.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/hsql.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\hsql.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/httpunit.jar to
> > >  D:\tdk\webapps\spicersweb\WEB-INF\lib\httpunit.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/idb.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\idb.jar
> > >2002-10-14 13:40:39 WebappLoader[]: Deploy JAR
> > >/WEB-INF/lib/jakarta-regexp-1.3-dev.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\jakarta-regexp-1.3-dev.jar
> > >...
> > >2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
> > /WEB-INF/lib/turbine-2.1.jar
> > >to  D:\tdk\webapps\spicersweb\WEB-INF\lib\turbine-2.1.jar
> > >2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
> > >/WEB-INF/lib/velocity-1.2-dev.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\velocity-1.2-dev.jar
> > >2002-10-14 13:40:40 WebappLoader[]: Deploy JAR
> > >/WEB-INF/lib/village-1.5.1.jar to
> > >D:\tdk\webapps\spicersweb\WEB-INF\lib\village-1.5.1.jar
> > >...
> > >2002-10-14 13:40:40 WebappLoader[]: Reloading checks are
> > enabled for this
> > >Context
> > >2002-10-14 13:40:40 StandardManager[]: Seeding random number
> > generator
> > >class  java.security.SecureRandom
> > >2002-10-14 13:40:40 StandardManager[]: Seeding of random
> > number generator
> > >has been completed
> > >2002-10-14 13:40:40 ContextConfig[]: ContextConfig: Processing START
> > >2002-10-14 13:40:42 StandardContext[]: Setting deployment
> > descriptor public
> > >ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
> > >2002-10-14 13:40:45 StandardContext[]: Setting deployment
> > descriptor public
> > >ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning web.xml tag libraries
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning TLD files in /WEB-INF
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning library JAR files
> > >2002-10-14 13:40:42 StandardContext[]: Setting deployment
> > descriptor public
> > >ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
> > >2002-10-14 13:40:45 StandardContext[]: Setting deployment
> > descriptor public
> > >ID to '-//Sun  Microsystems, Inc.//DTD Web Application 2.3//EN'
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning web.xml tag libraries
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning TLD files in /WEB-INF
> > >2002-10-14 13:40:46 ContextConfig[]: Scanning library JAR files
> > >2002-10-14 13:40:54 Authenticator[]: No SingleSignOn Valve is present
> > >2002-10-14 13:40:54 ContextConfig[]: Configured an
> > authenticator for method
> > >BASIC
> > >2002-10-14 13:40:54 ContextConfig[]: Pipline Configuration:
> > >2002-10-14 13:40:54 ContextConfig[]:
> > >org.apache.catalina.authenticator.BasicAuthenticator/1.0
> > >2002-10-14 13:40:54 ContextConfig[]:
> > >org.apache.catalina.core.StandardContextValve/1.0
> > >2002-10-14 13:40:54 ContextConfig[]: ======================
> > >2002-10-14 13:40:54 StandardContext[]: Configuring application event
> > >listeners
> > >2002-10-14 13:40:54 StandardContext[]: Sending application
> > start events
> > >2002-10-14 13:40:54 StandardContext[]: Starting filters
> > >2002-10-14 13:40:54 StandardContext[]: Posting standard
> > context attributes
> > >2002-10-14 13:40:54 StandardWrapper[:default]: Loading
> > container servlet
> > >default
> > >2002-10-14 13:40:54 default: init
> > >2002-10-14 13:40:55 jsp: init
> > >2002-10-14 13:41:01 StandardContext[]: Starting completed
> > >2002-10-14 13:41:01 Authenticator[]: Security checking request GET /
> > >2002-10-14 13:41:01 Authenticator[]:  Not subject to any constraint
> > >2002-10-14 13:41:01 StandardContext[]: Mapping contextPath='' with
> > >requestURI='/' and  relativeURI='/'
> > >2002-10-14 13:41:01 StandardContext[]: Decoded relativeURI='/'
> > >2002-10-14 13:41:01 StandardContext[]:  Mapped to servlet
> > 'default' with
> > >servlet path '/' and path  info 'null' and update=true
> > >2002-10-14 13:41:17 Authenticator[]: Security checking request GET
> > >/servlet/spicersweb
> > >2002-10-14 13:41:17 Authenticator[]:  Not subject to any constraint
> > >2002-10-14 13:41:17 StandardContext[]: Mapping contextPath='' with
> > >requestURI='/servlet/spicersweb'  and
> > relativeURI='/servlet/spicersweb'
> > >2002-10-14 13:41:17 StandardContext[]: Decoded
> > >relativeURI='/servlet/spicersweb'
> > >2002-10-14 13:41:17 StandardContext[]:  Mapped to servlet
> > 'default' with
> > >servlet path  '/servlet/spicersweb' and path info 'null' and
> > update=true
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >My Access-Log is:
> > >
> > >10.3.1.105 - - [14/Oct/2002:13:41:01 1000] "GET / HTTP/1.1" 200 2104
> > >10.3.1.105 - - [14/Oct/2002:13:41:17 1000] "GET /servlet/spicersweb
> > >HTTP/1.1" 404 630
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > _________________________________________________________________
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > --
> > To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to