tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Schöffel <stephan.schoef...@gmx.net>
Subject Re: Problem with bootstrap.java
Date Mon, 13 Nov 2006 15:32:40 GMT
i used the build.xml delivered with the tomcat 5.5.20 source:

<project name="Tomcat 5.0 Netbuild" default="build" basedir=".">


  <!-- ===================== Initialize Property Values 
=================== -->

  <!-- See "build.properties.sample" in the top level directory for 
all     -->
  <!-- property values you must customize for successful 
building!!!        -->
  <property file="${user.home}/build.properties"/>
  <property file="build.properties"/>
  <property file="build.properties.default"/>

  <!-- Project Properties -->
  <property name="name"                  value="Apache Tomcat" />
  <property name="year"                  value="2005" />
  <property name="version"               value="5.5" />
  <property name="project"               value="jakarta-tomcat" />
  <property name="final.name"            value="${project}-${version}" />
  <property name="final-src.name"        
value="${project}-${version}-src" />

  <!-- SVNROOT -->
  <property name="svnroot"
           value="http://svn.apache.org/repos/asf/" />

  <!-- Subprojects -->
  <property name="api.project"           value="servletapi" />
  <property name="tomcat.project"        value="build" />
  <property name="catalina.project"      value="container" />
  <property name="jtc.project"           value="connectors" />
  <property name="jasper.project"        value="jasper" />

  <property name="current.loc"           value="tomcat/current/tc5.5.x" />

  <!-- Source dependencies -->
  <property name="api.home"
           value="${basedir}/${api.project}"/>
  <property name="catalina.home"
           value="${basedir}/${catalina.project}"/>
  <property name="jasper.home"
           value="${basedir}/${jasper.project}"/>
  <property name="jtc.home"
           value="${basedir}/${jtc.project}"/>
  <property name="tomcat.home"
           value="${basedir}/${tomcat.project}"/>

  <target name="build" depends="check.source,get.source"
   description="Builds all components">

    <ant dir="${tomcat.home}" target="download" />
    <ant dir="${tomcat.home}" target="deploy" />

  </target>

  <!-- Top-level clean target added per Bugzilla 33325 -->
  <target name="clean"
          description="Clean (delete) all project files">
    <echo message="Deleting all project files" />
    <delete dir="${api.home}" />
    <delete dir="${catalina.home}" />
    <delete dir="${jasper.home}" />
    <delete dir="${jtc.home}" />
    <delete dir="${tomcat.home}" />
  </target>

  <target name="checkout"
          description="Update or checkout required sources from SVN">

    <echo level="info"
        message="If the checkout fails, - todo - " />

    <exec dir="${basedir}" executable="svn">
         <arg line="checkout ${svnroot}/${current.loc} ${basedir}" />
    </exec>

  </target>

  <!-- *************** UTILITY TARGETS *************** -->

  <target name="check.source">

    <available property="source.exists"
                   file="${basedir}/${tomcat.project}" type="dir" />

  </target>

  <target name="get.source" unless="source.exists">

    <antcall target="checkout" />

  </target>

</project>



Martin Gainty wrote:

>Please display build.xml you are using 
>
>M-
>This e-mail communication and any attachments may contain confidential and privileged
information for the use of the 
>designated recipients named above. If you are not the intended recipient, you are hereby
notified that you have received
>this communication in error and that any review, disclosure, dissemination, distribution
or copying of it or its 
>contents
>----- Original Message ----- 
>From: "Stephan Schöffel" <stephan.schoeffel@gmx.net>
>To: "Tomcat Users List" <users@tomcat.apache.org>
>Sent: Monday, November 13, 2006 9:53 AM
>Subject: Re: Problem with bootstrap.java
>
>
>  
>
>>i tried running the build file. not very familiar with build files i got 
>>the following error message after downloading a lot of common libs:
>>
>>downloadzip:
>>     [get] Getting: 
>>http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/
>>drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip
>>     [get] To: F:\usr\share\java\file.zip
>>     [get] Error opening connection java.io.FileNotFoundException: 
>>http://sunsi
>>te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
>>e-JDT-3.1.2.zip
>>     [get] Error opening connection java.io.FileNotFoundException: 
>>http://sunsi
>>te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
>>e-JDT-3.1.2.zip
>>     [get] Error opening connection java.io.FileNotFoundException: 
>>http://sunsi
>>te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
>>e-JDT-3.1.2.zip
>>     [get] Can't get 
>>http://sunsite.informatik.rwth-aachen.de/eclipse/downloads
>>/drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip to 
>>\usr\share\java\file.zip
>>
>>BUILD FAILED
>>F:\test\apache-tomcat-5.5.20-src\build.xml:48: The following error 
>>occurred whil
>>e executing this line:
>>F:\test\apache-tomcat-5.5.20-src\build\build.xml:1981: The following 
>>error occur
>>red while executing this line:
>>F:\test\apache-tomcat-5.5.20-src\build\build.xml:672: The following 
>>error occurr
>>ed while executing this line:
>>F:\test\apache-tomcat-5.5.20-src\build\build.xml:2015: Can't get 
>>http://sunsite.
>>informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-J
>>DT-3.1.2.zip to \usr\share\java\file.zip
>>
>>
>>instead i retried exporting with eclipse (since unsing the tomcat build 
>>script did not work) with the manifest from the source, which looks like 
>>this:
>>
>>Manifest-Version: 1.0
>>Main-Class: org.apache.catalina.startup.Bootstrap
>>Class-Path: jmx.jar commons-daemon.jar commons-logging-api.jar 
>>tomcat-juli.jar
>>Specification-Title: Catalina
>>Specification-Version: 1.0
>>
>>sadly, this led to a different error:
>>
>>E:\Programme\Apache\apache-tomcat-5.5.20\bin>catalina run
>>Using CATALINA_BASE:   E:\Programme\Apache\apache-tomcat-5.5.20
>>Using CATALINA_HOME:   E:\Programme\Apache\apache-tomcat-5.5.20
>>Using CATALINA_TMPDIR: E:\Programme\Apache\apache-tomcat-5.5.20\temp
>>Using JRE_HOME:        C:\Programme\Java\jre1.5.0_09
>>*********************************
>>13.11.2006 15:49:15 org.apache.catalina.startup.Bootstrap initClassLoaders
>>SCHWERWIEGEND: Class loader creation threw exception
>>java.lang.NoClassDefFoundError: 
>>org/apache/catalina/loader/StandardClassLoader
>>       at 
>>org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav
>>a:172)
>>       at 
>>org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
>>:97)
>>       at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:212)
>>       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>>
>>yet i inluded catalina.jar (which contains StandardClassLoader) in my 
>>project...
>>
>>
>>
>>
>>
>>
>>
>>
>>Rainer Jung wrote:
>>
>>    
>>
>>>Inside the jar. Google for jar manifest will give you a link like:
>>>
>>>http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html
>>>
>>>Jars and manifest are a general notation with java, they are not 
>>>special for tomcat.
>>>
>>>Stephan Schöffel wrote:
>>>
>>>      
>>>
>>>>where can i find the manifest of bootstrap.jar?
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>It's looking for LogFactory in main of Bootstrap. Have a look to 
>>>>>learn at the manifest of the bootstrap.jar to learn about the 
>>>>>dependencies.
>>>>>
>>>>>Regards,
>>>>>
>>>>>Rainer
>>>>>
>>>>>Stephan Schöffel wrote:
>>>>>
>>>>>          
>>>>>
>>>>>>hi there
>>>>>>
>>>>>>i'm trying to alter the bootstrap.java class to fit my needs. i got

>>>>>>the source of 5.5.20. now i altered the source in eclipse and 
>>>>>>exported all files that belong to it to "bootstrap.jar" and copy it

>>>>>>to my tomcat/bin dir.
>>>>>>
>>>>>>unfortunately i get the following error-message while trying to run

>>>>>>it:
>>>>>>
>>>>>>Exception in thread "main" java.lang.NoClassDefFoundError: 
>>>>>>org/apache/commons/lo
>>>>>>gging/LogFactory
>>>>>>       at 
>>>>>>org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:53)
>>>>>>
>>>>>>i searched the LogFactory but could not find a main class there. 
>>>>>>anyone got an idea?
>>>>>>
>>>>>>--stephan
>>>>>>            
>>>>>>
>>>---------------------------------------------------------------------
>>>To start a new topic, e-mail: users@tomcat.apache.org
>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>    
>>
>>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message