You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ming cocoon <co...@yahoo.com> on 2003/07/28 03:03:00 UTC

How to debug COCOON with ECLIPSE and TOMCAT?

Lionel Crine :
  I read the thread of "how to How to debug COCOON with ECLIPSE and TOMCAT? " posted on cocoon-users mail list. 
 I had two questions regarding your instructions.
 
 The first question: How to do create a tomat project then pointing to that tomcat project?
   I installed tomcat plug in 2.1  (sysdeo) with my eclipse 2.1. Here is view of my tomcat project( cocoon)  in Eclipse's Package Explore
 
        cocoon
            |
            |_+JRE System Library[j2re1.4.2]


            |
            |_+Tomcat_home/common/lib/servlet.jar
            |
            |_+Tomcat_home/common/lib/jasper-runtime.jar
            |
            |_WEB-INF/src





            |
            |_work             |        |             |        |_org.apache.jsp


            |
            |
            |_WEB-INF
                     |
                     |_classes
                     |                      |_lib                      |                      |_src
 
 Should I point cocoon root directory to  this folder src fold which resides in 
         cocoon
           |
           |_WEB-INF
                     |
                     |_classes
                     |                      |_lib                      |                      |_src
 







 Or I need to create a new folder?
 
Your instruction :
" don't forget to create a tomcat project pointing to your cocoon root directory. "

 
 The second question:  How to get rid of message ( Build Path entry is missing : TOMCAT_HOME) displayed in project  java build path?
 
 What i did was delecting TOM_CAT related entries in Libaries tab of java build path. After I proceed above deletings, " java build path " replaced the message of  "Build Path entry is missing : TOMCAT_HOME"
 
 Here was your instruction :
 
"11/java Build Path->source : be sure WEB-INF/classes of your project is here
>12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.
>Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME"

 
Thanks 
 
Ming Qin
 
 
Bellow is original messages in thread of how to debug cocoon with eclipse and tomcat
 
 
 
 
don't forget to create a tomcat project pointing to your cocoon root directory.



At 06:21 05/06/2003 -0700, you wrote:
>Lionel,
>I followed your instructions, but I still have problems.
>Tomcat works, but I can't lanch cocoon. it sais:
>
>
>HTTP Status 404 - /cocoon/
>
>
>
>
>type Status report
>
>message /cocoon/
>
>description The requested resource (/cocoon/) is not available.
>
>
>Do you have sugestions what am I doing wrong?
>I get only Tomcat's index.jsp
>It appears in "work" directory on my eclipse server and that's all!
>
>Thank you in advance!
>
>Galia
>
>
>
>
>
>
>Lionel Crine <cr...@4dconcept.fr> wrote:
>With the tomcat plugin : 2.1
>
>I think you have setup the windows->preference->tomcat.
>I repeat it :
>
>1/choose the version you have. 4.1.x is good.
>2/choose the tomcat root directory
>3/choose the server.xml file
>4/i had my tomcat project to my classpath (i'm not sure it's necessary).
>5/ If you want to debug Tomcat (check the "execute in debug mode)
>
>the parameter for the JVM :
>
>The JRE by default is not working (or something like that)!!!
>So you have to change it the another.
>
>
>6/ Go in window->preferences->java->installed JREs
>7/add a new standard VM (the one with your sdk). (for example mine is :
>d:\software\java\sdk1.4)
>8/notch it.
>
>9/Come back to windows->preference->tomcat->JVM parameter
>10/select the new JVM
>
>
>Some optionnal things :
>In window->preferences->java->Classpath Variables
>create a TOMCAT_HOME identical as CATALINA_HOME -> it seems that the plugin
>uses TOMCAT_HOME
>
>
>In the properties of the project :
>
>11/java Build Path->source : be sure WEB-INF/classes of your project is here
>12/java Build Path->librairies : add the cocoon libraries (.jar) and yours.
>Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME
>
>13/Tomcat : I notched "is a tomcat project" (check if this is your context)
>"update automatically server.xml" and "reloadable = true".
>
>
>Hope that help a little.
>I may have forgotten some things so tell me.
>
>PS: With my computer the classpath is not build with eclipse So I had to
>add all the jars into the libraries (see 12/)
>
>
>Lionel
>
>At 04:11 04/06/2003 -0700, you wrote:
> >Yes, please! I'll be grateful!
> >
> >Galia
> >
> >Lionel Crine wrote:
> >Sorry I'm lost :
> >
> >Whould you like me to send the configuration for eclipse to work with
> >cocoon and tomcat and sdk 1.4 ?
> >If yes, tell me.
> >
> >
> >
> >
> >At 10:43 04/06/2003 +0400, you wrote:
> > >But who can send the solution about the using the eclipse in this
> > >configuration?
> > >
> > > > I use tomcat cocoon and the sdk 1.4
> > > >
> > > > All is working fine.
> > > >
> > > > Do you have an error message ?
> > > >
> > > >
> > > > At 07:27 03/06/2003 -0700, you wrote:
> > > > >Hi,
> > > > >
> > > > >I would like to debug cocoon with eclipse and tomcat.
> > > > >I have the blueskytime plugins for eclipse and tomcat but could not
> > > > >make them debug cocoon.
> > > > >May be there's something i'm not doing right?
> > > > >
> > > > >Galia
> > > > >
> > > > >
> > >
> > >--
> > >
> > >Best regards,
>&g
>
>
>Do you Yahoo!?
>Free <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com>online 
>calendar with sync to Outlook(TM).
>
>
>Do you Yahoo!?
>Free <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com>online 
>calendar with sync to Outlook(TM).
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org






---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software