| Home » Language IDEs » ServerTools (WTP) » Still can't start Tomcat
 Goto Forum:| 
| Still can't start Tomcat [message #79010] | Wed, 02 March 2005 06:34  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: fassev.gmx.de 
 Hello Mohammad, Hello Larry,
 
 thank your very match for your suggestions, but I am still not able to
 start the Tomcat. I tried with 5.0 and 5.5 but I am getting the same
 message:
 
 java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
 
 I used three different directories:
 
 E:\Programme\Tomcat5.0
 E:\Programme\Tomcat5.5
 E:\Tomcat5.5
 
 With all of them I can compile and change my program, but I am not able to
 run or debug it. Where or how can I find the starting parameter of the
 Tomcat within Eclipse? Where can I see a start log?
 
 I am currently working with NetBeans 3.6 on a large project, where the
 integration and configuration of Tomcat is more simple and clear (at least
 for me). There I can see and control the Context of my Web-Project. Within
 Eclipse I am not seeing it (at least not in the UI) so what if I am
 running multiple projects? Nevertheless, I love Eclipse and I am looking
 forward to see a good WEB Tool integrated within it.
 
 Best Regards
 Peter
 
 Muhammad Dwyer wrote:
 
 > Dear Larry,
 
 > Thank you very much! I've now got my first JSP running on Tomcat under
 Eclipse!
 > I can now move onto some more serious stuff. Excellent, thanks again.
 
 > Kind regards,
 > Muhammad
 
 >> I was able to duplicate this.  Drop the trailing '' and just use
 >> "E:jakarta-tomcat-5.0.28" and it should work.  The extra '' causes
 >> the launch configuration to contain "...bin" rather than
 >> "...binbootstrap.jar" in the classpath.
 >>
 >> You can either delete and re-create the server, or execute Window ->
 >> Preferences and select Server -> Installed Runtimes -> "your runtime"
 >> and click Edit.  Remove the trailing '' from the installation
 >> directory and save.
 >>
 >> I'll see about logging a defect and providing a patch.
 >>
 >> Cheers,
 >> Larry
 >> Muhammad Dwyer wrote:
 >>
 >>> Hello Lawrence,
 >>>
 >>> My tomcat installation directory is E:jakarta-tomcat-5.0.28 - this
 >>> is also how I entered it in the "Edit Server Runtime" dialog -
 >>> otherwise eclipse won't let you get any further.
 >>>
 >>>> Hi Peter,
 >>>>
 >>>> Are you specifying the root directory of you Tomcat install as the
 >>>> install location? If so, what is the directory name? There was a
 >>>> post above that suggested the directory name must be as creates it
 >>>> when you unzip.
 >>>>
 >>>> Lawrence
 >>>>
 >>>>> Hello,
 >>>>>
 >>>>> I downloaded and installed the new M3 build of the WTP and created
 >>>>> a new Web Project as showed in the Tutorial "WTP Tutorials -
 >>>>> Building a School Schedule Web Application". Everything goes ok,
 >>>>> except that I am not able to start the Tomcat 5.0. I am getting
 >>>>> Class not found Exceltion :
 >>>>>
 >>>>> java.lang.NoClassDefFoundError:
 >>>>> org/apache/catalina/startup/Bootstrap
 >>>>>
 >>>>> Looking at the Tomcat v5.0 runtim configuration within my project,
 >>>>> I do not see the bootstrap.jar, commons-launcher.jar,
 >>>>> commons-daemmon.jar -
 >>>>>
 >>>> all
 >>>>
 >>>>> of them laying in the Tomcat5.0/bin directory.
 >>>>>
 >>>>> What I am doing wrong?
 >>>>>
 >>>>> Best Regards
 >>>>> Peter
 |  |  |  |  | 
| Re: Still can't start Tomcat [message #79054 is a reply to message #79010] | Wed, 02 March 2005 08:13   |  | 
| Eclipse User  |  |  |  |  | Peter, 
 You can view the launch configuration by executing Run -> Run... and
 selecting the configuration under Apache Tomcat.  If you don't see
 anything unusual, attach or include a copy of the configuration file
 found under
 <your_workspace_dir>\.metadata\.plugins\org.eclipse.debug.core\.launches
 and I'll see if I can spot anything.
 
 Cheers,
 Larry
 
 Peter wrote:
 > Hello Mohammad, Hello Larry,
 >
 > thank your very match for your suggestions, but I am still not able to
 > start the Tomcat. I tried with 5.0 and 5.5 but I am getting the same
 > message:
 > java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
 >
 > I used three different directories:
 >
 > E:\Programme\Tomcat5.0
 > E:\Programme\Tomcat5.5
 > E:\Tomcat5.5
 >
 > With all of them I can compile and change my program, but I am not able
 > to run or debug it. Where or how can I find the starting parameter of
 > the Tomcat within Eclipse? Where can I see a start log?
 > I am currently working with NetBeans 3.6 on a large project, where the
 > integration and configuration of Tomcat is more simple and clear (at
 > least for me). There I can see and control the Context of my
 > Web-Project. Within Eclipse I am not seeing it (at least not in the UI)
 > so what if I am running multiple projects? Nevertheless, I love Eclipse
 > and I am looking forward to see a good WEB Tool integrated within it.
 >
 > Best Regards
 > Peter
 >
 <snip>
 |  |  |  |  | 
| Re: Still can't start Tomcat [message #79241 is a reply to message #79054] | Wed, 02 March 2005 11:47   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: fassev.gmx.de 
 Hello Larry,
 
 thanks for your helpfulness. I looked at the most files within the
 metadata folder, but I couldnt find anything suspicious. Here is my
 launch configuration:
 
 <?xml version="1.0" encoding="UTF-8"?>
 <launchConfiguration
 type="org.eclipse.jst.server.tomcat.core.launchConfigurationType ">
 <stringAttribute key="server-id" value="02.03.05_16_393"/>
 <booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
 value="true"/>
 </launchConfiguration>
 
 The only thing I am wondering, is that within the file
 
 metadata\.plugins\org.eclipse.core.runtime\.settings\org.ecl ipse.jdt.core.prefs
 
 the entry
 
 //org.eclipse.jdt.core.classpathContainer.Infobase|org.eclip se.jst.server.core.container/org.eclipse.jst.server.tomcat.r untimeTarget/Apache\
 Tomcat\ v5.0=
 
 contains too few class path entries, for instance nothing about the
 missing file "bootstrap.jar".
 
 As I previously stated, within Eclipse I have Tomcat 5.0 runtime Entry
 within my project with only few jars, actually only those found within the
 common/lib directory of the Tomcat. The bin and the server/lib
 directory are completely missing!? Can I add them manually?
 
 At the end, I simply added all Tomcat5 jars to the class path (tried both
 bootstrap and user entries) of the Debug-Launch-Configuration, but as
 expected this was not the right solution. At least I am getting another
 exception now:
 
 Can't load server.xml
 Can't load server.xml
 02.03.2005 17:28:18 org.apache.catalina.startup.Catalina start
 INFO: Server startup in 0 ms
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at  org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 84)
 at  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:42 2)
 Caused by: java.lang.NullPointerException
 at  org.apache.catalina.startup.Catalina.await(Catalina.java:619 )
 at  org.apache.catalina.startup.Catalina.start(Catalina.java:579 )
 ... 6 more
 
 
 Looking within the Server folder at the Eclipse Project I can find the
 local created server configuration: Tomcat v5.0 Server @ localhost-config.
 
 Sorry I cant find, what am I doing wrong. May be I messed it completely
 (although I thought, this happens only to newbies
)
 
 Best Regards
 Peter
 
 
 Larry Isaacs wrote:
 
 > Peter,
 
 > You can view the launch configuration by executing Run -> Run... and
 > selecting the configuration under Apache Tomcat.  If you don't see
 > anything unusual, attach or include a copy of the configuration file
 > found under
 > <your_workspace_dir>.metadata.pluginsorg.eclipse.debug.core.launches
 > and I'll see if I can spot anything.
 
 > Cheers,
 > Larry
 
 > Peter wrote:
 >> Hello Mohammad, Hello Larry,
 >>
 >> thank your very match for your suggestions, but I am still not able to
 >> start the Tomcat. I tried with 5.0 and 5.5 but I am getting the same
 >> message:
 >> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
 >>
 >> I used three different directories:
 >>
 >> E:ProgrammeTomcat5.0
 >> E:ProgrammeTomcat5.5
 >> E:Tomcat5.5
 >>
 >> With all of them I can compile and change my program, but I am not able
 >> to run or debug it. Where or how can I find the starting parameter of
 >> the Tomcat within Eclipse? Where can I see a start log?
 >> I am currently working with NetBeans 3.6 on a large project, where the
 >> integration and configuration of Tomcat is more simple and clear (at
 >> least for me). There I can see and control the Context of my
 >> Web-Project. Within Eclipse I am not seeing it (at least not in the UI)
 >> so what if I am running multiple projects? Nevertheless, I love Eclipse
 >> and I am looking forward to see a good WEB Tool integrated within it.
 >>
 >> Best Regards
 >> Peter
 >>
 > <snip>
 |  |  |  |  | 
| Re: Still can't start Tomcat [message #79348 is a reply to message #79241] | Wed, 02 March 2005 13:15   |  | 
| Eclipse User  |  |  |  |  | Hi Peter, 
 First, it is normal not to see the startup jars in your Tomcat runtime.
 Only jars that are in common\lib should appear.  Your webapp
 shouldn't need to compile against bootstrap.jar.  Not seeing them has
 nothing to do with the launch problems.
 
 The launch configuration you show unfortunately isn't the one I'm
 looking for.  There should be one named something like "Tomcat v5.0
 Server _ localhost.launch" that has the actual Tomcat launch
 configuration.  Do you have one of those?
 
 I am also assuming that this Tomcat runs fine from the startup scripts
 in its bin directory.  Preferably with the same JDK that the Tomcat
 server in Eclipse is configured to use.
 
 Larry
 
 
 Peter wrote:
 > Hello Larry,
 >
 > thanks for your helpfulness. I looked at the most files within the
 > metadata folder, but I couldn't find anything suspicious. Here is my
 > launch configuration:
 >
 > <?xml version="1.0" encoding="UTF-8"?>
 > <launchConfiguration
 > type="org.eclipse.jst.server.tomcat.core.launchConfigurationType ">
 > <stringAttribute key="server-id" value="02.03.05_16_393"/>
 > <booleanAttribute
 > key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
 > </launchConfiguration>
 >
 > The only thing I am wondering, is that within the file
 >
 >  metadata\.plugins\org.eclipse.core.runtime\.settings\org.ecl ipse.jdt.core.prefs
 >
 >
 > the entry
 >  //org.eclipse.jdt.core.classpathContainer.Infobase|org.eclip se.jst.server.core.container/org..eclipse.jst.server.tomcat. runtimeTarget/Apache\
 > Tomcat\ v5.0=
 >
 > contains too few class path entries, for instance nothing about the
 > missing file "bootstrap.jar".
 >
 > As I previously stated, within Eclipse I have "tomcat 5.0 runtime" Entry
 > within my project with only few jars, actually only those found within
 > the common/lib directory of the Tomcat. The "bin" and the "server/lib"
 > directory are completely missing!? Can I add them manually?
 >
 > At the end, I simply added all Tomcat5 jars to the class path (tried
 > both bootstrap and user entries) of the Debug-Launch-Configuration, but
 > as expected this was not the right solution. At least I am getting
 > another exception now:
 >
 > Can't load server.xml
 > Can't load server.xml
 > 02.03.2005 17:28:18 org.apache.catalina.startup.Catalina start
 > INFO: Server startup in 0 ms
 > java.lang.reflect.InvocationTargetException
 >     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 >     at
 >  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
 >
 >     at
 >  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
 >
 >     at java.lang.reflect.Method.invoke(Method.java:324)
 >     at  org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 84)
 >     at  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:42 2)
 > Caused by: java.lang.NullPointerException
 >     at  org.apache.catalina.startup.Catalina.await(Catalina.java:619 )
 >     at  org.apache.catalina.startup.Catalina.start(Catalina.java:579 )
 >     ... 6 more
 >
 >
 > Looking within the Server folder at the Eclipse Project I can find the
 > local created server configuration: Tomcat v5.0 Server @ localhost-config.
 >
 > Sorry I can't find, what am I doing wrong. May be I messed it completely
 > (although I thought, this happens only to newbies)
 >
 > Best Regards
 > Peter
 >
 >
 > Larry Isaacs wrote:
 >
 >> Peter,
 >
 >
 >> You can view the launch configuration by executing Run -> Run... and
 >> selecting the configuration under Apache Tomcat.  If you don't see
 >> anything unusual, attach or include a copy of the configuration file
 >> found under
 >> <your_workspace_dir>.metadata.pluginsorg.eclipse.debug.core.launches
 >> and I'll see if I can spot anything.
 >
 >
 >> Cheers,
 >> Larry
 >
 >
 >> Peter wrote:
 >>
 >>> Hello Mohammad, Hello Larry,
 >>>
 >>> thank your very match for your suggestions, but I am still not able
 >>> to start the Tomcat. I tried with 5.0 and 5.5 but I am getting the
 >>> same message:
 >>> java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap
 >>>
 >>> I used three different directories:
 >>>
 >>> E:ProgrammeTomcat5.0
 >>> E:ProgrammeTomcat5.5
 >>> E:Tomcat5.5
 >>>
 >>> With all of them I can compile and change my program, but I am not
 >>> able to run or debug it. Where or how can I find the starting
 >>> parameter of the Tomcat within Eclipse? Where can I see a start log?
 >>> I am currently working with NetBeans 3.6 on a large project, where
 >>> the integration and configuration of Tomcat is more simple and clear
 >>> (at least for me). There I can see and control the Context of my
 >>> Web-Project. Within Eclipse I am not seeing it (at least not in the
 >>> UI) so what if I am running multiple projects? Nevertheless, I love
 >>> Eclipse and I am looking forward to see a good WEB Tool integrated
 >>> within it.
 >>>
 >>> Best Regards
 >>> Peter
 >>>
 >> <snip>
 >
 >
 >
 |  |  |  |  | 
| Re: Still can't start Tomcat [message #79778 is a reply to message #79348] | Thu, 03 March 2005 09:44  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: fassev.gmx.de 
 Hi Larry,
 
 sorry for my late answer, but I am working at the same time on my project,
 so I have only limited time to look at the eclipse problem.
 
 I have looked for the requested file, but there was nothing like this. I
 suppose, because the Tomcat hasn't been started at all.
 
 After that I reinstalled the Tomcat 5.0.29 into a new directory, deleted
 all files from the workspace (manually) and started from scratch. The good
 news is, that I am able to start the Tomcat now. The bad one is, I am
 still not able to start my actual project. When I have time, I will look
 into it, I hope this is some configuration issue.
 
 Still it is a little bit annoying, that eclipse does not recognize only
 new tomcat installations. I must admin, that I have edited the server.xml
 and the web.xml of the previous installations, but why should be this a
 problem at all?
 
 Best regards
 Peter
 
 Larry Isaacs wrote:
 
 > Hi Peter,
 
 > First, it is normal not to see the startup jars in your Tomcat runtime.
 >     Only jars that are in commonlib should appear.  Your webapp
 > shouldn't need to compile against bootstrap.jar.  Not seeing them has
 > nothing to do with the launch problems.
 
 > The launch configuration you show unfortunately isn't the one I'm
 > looking for.  There should be one named something like "Tomcat v5.0
 > Server _ localhost.launch" that has the actual Tomcat launch
 > configuration.  Do you have one of those?
 
 > I am also assuming that this Tomcat runs fine from the startup scripts
 > in its bin directory.  Preferably with the same JDK that the Tomcat
 > server in Eclipse is configured to use.
 
 > Larry
 |  |  |  | 
 
 
 Current Time: Thu Oct 30 19:55:12 EDT 2025 
 Powered by FUDForum . Page generated in 0.04521 seconds |