tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Roh <amy...@apache.org>
Subject Re: help....please.....RE: java.lang.NoSuchMethodError after re-build ing
Date Wed, 25 Sep 2002 23:55:03 GMT

> I'm getting the following error when trying to run tc 4, after having built
> the current cvs version succesfully:
> 
> java.lang.NoSuchMethodError:
> javax.management.MBeanServerFactory.findMBeanServer(Ljava/lang/String;)Ljava
> /util/List;
>         at org.apache.commons.modeler.Registry.getServer(Registry.java:245)
>         at
> org.apache.catalina.mbeans.MBeanUtils.createServer(MBeanUtils.java:1666)
>         at
> org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:168)
>         at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.<clinit>(GlobalR
> esourcesLifecycleListener.java:115)

 From the errors you're receiving, it looks like you're missing proper 
jmx or modeler.  I'd suggest making sure that you have proper paths 
pointing jmx and modeler.

Amy

> 
> 
> I know I have the jmx jars in place (as you can see from my ant detect
> output, and build.properties files I've pasted below).
> 
> I just figured maybe someone has ran into this before, thanks for any help
> !!
> 
> 
> -Ryan
> 
> Here's a bit of config:
> 	OS:  winxp
> 	jdk: 1.4.1
> 	src: current cvs (as of 7:45pm)
> 	
> Here's my `ant detect` output:
> ====================================================
> ====================================================
> ====================================================
> 	Buildfile: build.xml
> 
> 	detect:
> 
> 	flags:
> 
> 	flags.display:
> 	     [echo] --- Build environment for Catalina ---
> 	     [echo] If ${property_name} is displayed, then the property is
> not set)
> 	     [echo] --- Build options ---
> 	     [echo] full.dist=${full.dist}
> 	     [echo] build.sysclasspath=${build.sysclasspath}
> 	     [echo] compile.debug=on
> 	     [echo] compile.deprecation=off
> 	     [echo] compile.optimize=on
> 	     [echo] --- Ant Flags ---
> 	     [echo] <style> task available (required)=true
> 	     [echo] --- JDK ---
> 	     [echo] jdk.1.2.present=true
> 	     [echo] jdk.1.3.present=true
> 	     [echo] jdk.1.4.present=true
> 	     [echo] --- Source Dependencies ---
> 	     [echo] jtc.home.present=true
> 	     [echo] --- Required Libraries ---
> 	     [echo] beanutils.present=true
> 	     [echo] collections.present=true
> 	     [echo] digester.present=true
> 	     [echo] jaxp.present=true
> 	     [echo] jndi.present=true
> 	     [echo] logging.present=true
> 	     [echo] regexp.present=true
> 	     [echo] servlet.present=true
> 	     [echo] --- Optional Libraries ---
> 	     [echo] daemon.present=true
> 	     [echo] dbcp.present=true
> 	     [echo] jaas.present=true
> 	     [echo] javamail.present=true
> 	     [echo] jmx.present=true
> 	     [echo] jsse.present=true
> 	     [echo] jta.present=true
> 	     [echo] junit.present=${junit.present}
> 	     [echo] ldap.present=true
> 	     [echo] modeler.present=true
> 	     [echo] pool.present=true
> 	     [echo] tyrex.present=${tyrex.present}
> 	     [echo] --- Required JARs ---
> 	     [echo] jndi.jar.present(except JDK 1.3+)=${jndi.jar.present}
> 	     [echo] regexp.jar.present=true
> 	     [echo] servlet.jar.present=true
> 	     [echo] xerces.jar.present(except JDK 1.4+ or
> xerces2)=${xerces.jar.present}
> 
> 	     [echo] xerces2.jars.present(except JDK 1.4+ or
> xerces1)=${xerces2.jars.pres
> 	ent}
> 	     [echo] --- Optional JARs ---
> 	     [echo] daemon.jar.present=true
> 	     [echo] dbcp.jar.present=true
> 	     [echo] jaas.jar.present=${jaas.jar.present}
> 	     [echo] javamail.jar.present=true
> 	     [echo] jdbc20ext.jar.present=${jdbc20ext.jar.present}
> 	     [echo] jmx.jar.present=true
> 	     [echo] jta.jar.present=true
> 	     [echo] junit.jar.present=${junit.jar.present}
> 	     [echo] ldap.jar.present=${ldap.jar.present}
> 	     [echo] modeler.jar.present=true
> 	     [echo] pool.jar.present=true
> 	     [echo] tyrex.jar.present=true
> 	     [echo] --- Conditional compilation flags ---
> 	     [echo] compile.daemon=true
> 	     [echo] compile.dbcp=true
> 	     [echo] compile.jaas=true
> 	     [echo] compile.javamail=true
> 	     [echo] compile.jmx=true
> 	     [echo] compile.jndi=true
> 	     [echo] compile.jsse=true
> 	     [echo] compile.jta=true
> 	     [echo] compile.junit=${compile.junit}
> 	     [echo] compile.ldap=true
> 	     [echo] compile.ssi=true
> 	     [echo] compile.tyrex=${compile.tyrex}
> 	     [echo] --- Distribution flags ---
> 	     [echo] copy.daemon.jar=true
> 	     [echo] copy.dbcp.jar=true
> 	     [echo] copy.jaas.jar=${copy.jaas.jar}
> 	     [echo] copy.jdbc20ext.jar=${copy.jdbc20ext.jar}
> 	     [echo] copy.javamail.jar=true
> 	     [echo] copy.jmx.jar=true
> 	     [echo] copy.jndi.jar=${copy.jndi.jar}
> 	     [echo] copy.jta.jar=true
> 	     [echo] copy.ldap.jar=${copy.ldap.jar}
> 	     [echo] copy.logging.jar=true
> 	     [echo] copy.modeler.jar=true
> 	     [echo] copy.pool.jar=true
> 	     [echo] copy.tyrex.jar=true
> 	     [echo] copy.xerces.jar=${copy.xerces.jar}
> 	     [echo] copy.xerces2.jars=${copy.xerces2.jars}
> 
> 	flags:
> 
> 	flags.display:
> 	     [echo] --- Build environment for Tomcat Server Configuration
> Application --
> 	-
> 	     [echo] If ${property_name} is displayed, then the property is
> not set)
> 	     [echo] --- Build options ---
> 	     [echo] full.dist=${full.dist}
> 	     [echo] build.sysclasspath=${build.sysclasspath}
> 	     [echo] compile.debug=on
> 	     [echo] compile.deprecation=off
> 	     [echo] compile.optimize=on
> 	     [echo] --- Ant Flags ---
> 	     [echo] <style> task available (required)=true
> 	     [echo] --- JDK ---
> 	     [echo] jdk.1.2.present=true
> 	     [echo] jdk.1.3.present=true
> 	     [echo] jdk.1.4.present=true
> 	     [echo] --- Required Libraries ---
> 	     [echo] jaxp.present=true
> 	     [echo] jmx.present=true
> 	     [echo] modeler.present=true
> 	     [echo] servlet.present=true
> 	     [echo] --- Required JARs ---
> 	     [echo] jmx.jar.present=true
> 	     [echo] modeler.jar.present=true
> 	     [echo] servlet.jar.present=true
> 	     [echo] struts.jar.present=true
> 	     [echo] beanutils.jar.present=true
> 	     [echo] --- Optional JARs ---
> 	     [echo] --- Conditional compilation flags ---
> 	     [echo] compile.admin=true
> 	     [echo] --- Distribution flags ---
> 	     [echo] copy.struts.jar=true
> 
> 	BUILD SUCCESSFUL
> 	Total time: 3 seconds
> ====================================================
> ====================================================
> ====================================================
> 
> 
> 
> 
> Here's my build.properties file:
> ====================================================
> ====================================================
> ====================================================
> 	# ----- Compile Control Flags -----
> 	compile.debug=on
> 	compile.deprecation=off
> 	compile.optimize=on
> 
> 
> 	# ----- Build Control Flags
> 
> 	#Build all components
> 	#full.dist=on
> 
> 	#Build lightweight JDK 1.4 distribution
> 	#light.dist=on
> 
> 	#Hide configuration flags display
> 	#flags.hide=on
> 
> 	#Version number
> 	version=4.1
> 
> 	#Proxy to download subproject
> 	#proxy.host=proxy.domain
> 	#proxy.port=8080
> 	#proxy.use=on
> 
> 	#CVS root for the jakarta subprojects that do not have released yet.
> 	cvsroot=":pserver:anoncvs@cvs.apache.org:/home/cvspublic"
> 
> 
> 	# ----- Default Base Path for Dependent Packages -----
> 	base.path=/work/build_tomcat
> 
> 
> 	# ----- Jakarta Tomcat Connectors source path -----
> 	jtc.home=/work/build_tomcat/jakarta-tomcat-connectors
> 
> 
> 	# ----- Jakarta Tomcat Jasper source path -----
> 	jasper.home=/work/build_tomcat/jakarta-tomcat-4.0/jasper
> 
> 
> 	# --------------------------------------------------
> 	#                REQUIRED LIBRARIES
> 	# --------------------------------------------------
> 
> 
> 	# ----- Commons Beanutils, version 1.1 or later -----
> 	commons-beanutils.home=${base.path}/commons-beanutils-1.4.1
> 	commons-beanutils.lib=${commons-beanutils.home}
> 	commons-beanutils.jar=${commons-beanutils.lib}/commons-beanutils.jar
> 	
> commons-beanutils.loc=http://jakarta.apache.org/builds/jakarta-commons/relea
> se/commons-beanutils/v1.4.1/commons-beanutils-1.4.1.tar.gz
> 
> 
> 	# ----- Commons Collections, version 1.0 or later -----
> 	commons-collections.home=${base.path}/commons-collections-2.0
> 	commons-collections.lib=${commons-collections.home}
> 	
> commons-collections.jar=${commons-collections.lib}/commons-collections.jar
> 	
> commons-collections.loc=http://jakarta.apache.org/builds/jakarta-commons/rel
> ease/commons-collections/v2.0/commons-collections-2.0.tar.gz
> 
> 
> 	# ----- Commons Digester, version 1.1.1 or later -----
> 	commons-digester.home=${base.path}/commons-digester-1.3
> 	commons-digester.lib=${commons-digester.home}
> 	commons-digester.jar=${commons-digester.lib}/commons-digester.jar
> 	
> commons-digester.loc=http://jakarta.apache.org/builds/jakarta-commons/releas
> e/commons-digester/v1.2/commons-digester-1.2.tar.gz
> 
> 
> 	# ----- Commons Logging, version 1.0.1 or later -----
> 	commons-logging.home=${base.path}/commons-logging
> 	commons-logging.lib=${commons-logging.home}
> 	
> commons-logging-api.jar=${commons-logging.lib}/commons-logging-api.jar
> 	commons-logging.jar=${commons-logging.lib}/commons-logging.jar
> 	
> commons-logging.loc=http://jakarta.apache.org/builds/jakarta-commons/release
> /commons-logging/v1.0.1/commons-logging-1.0.1.tar.gz
> 
> 
> 	# ----- Java Naming and Directory Interface (JNDI), version 1.2 or
> later -----
> 	# Note: Optional with JDK 1.3+
> 	#jndi.home=${base.path}/jndi-1.2.1
> 	#jndi.lib=${jndi.home}/lib
> 	#jndi.jar=${jndi.lib}/jndi.jar
> 	#ldap.jar=${jndi.lib}/ldap.jar
> 	#jaas.jar=${jndi.lib}/jaas.jar
> 
> 
> 	# ----- Jakarta Regular Expressions Library, version 1.2 -----
> 	regexp.home=${base.path}/jakarta-regexp
> 	regexp.lib=${regexp.home}
> 	regexp.jar=${regexp.lib}/jakarta-regexp-1.2.jar
> 	
> regexp.loc=http://jakarta.apache.org/builds/jakarta-regexp/release/v1.2/jaka
> rta-regexp-1.2.tar.gz
> 
> 
> 	# ----- Jakarta Servlet API Classes (Servlet 2.3 / JSP 1.2) -----
> 	servlet.home=${base.path}/jakarta-servletapi-4
> 	servlet.lib=${servlet.home}/lib
> 	servlet.jar=${servlet.lib}/servlet.jar
> 	servlet.loc=jakarta-servletapi-4
> 
> 
> 	# ----- Xerces XML Parser, version 1.4.4 to 2.0.0 Beta 4 -----
> 	# Note: Optional with JDK 1.4+
> 	#xerces.home=${base.path}/xerces-1_4_4
> 	#xerces.lib=${xerces.home}
> 	#xerces.jar=${xerces.lib}/xerces.jar
> 
> 
> 	# ----- Xerces XML Parser, version 2.0.0 or later -----
> 	# Note: Optional with JDK 1.4+, or if Xerces 1.x is present
> 	#xerces.home=${base.path}/xerces-2_1_0
> 	#xerces.lib=${xerces.home}
> 	
> #xerces.loc=http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.1.0.tar.gz
> 	#xercesImpl.jar=${xerces.lib}/xercesImpl.jar
> 	#xmlParserAPIs.jar=${xerces.lib}/xmlParserAPIs.jar
> 
> 
> 	# --------------------------------------------------
> 	#                OPTIONAL LIBRARIES
> 	# --------------------------------------------------
> 
> 
> 	# ----- Java Activation Framework (JAF), version 1.0.1 or later
> -----
> 	activation.home=${base.path}/jaf-1.0.2
> 	activation.lib=${activation.home}
> 	activation.jar=${activation.lib}/activation.jar
> 
> 
> 	# ----- Commons Daemon, version 20020219 or later -----
> 	commons-daemon.home=${base.path}/commons-daemon
> 	commons-daemon.lib=${commons-daemon.home}
> 	commons-daemon.jar=${commons-daemon.lib}/commons-daemon.jar
> 	commons-daemon.loc=jakarta-commons-sandbox/daemon
> 
> 
> 	# ----- Commons DBCP, version 1.0 or later -----
> 	commons-dbcp.home=${base.path}/commons-dbcp
> 	commons-dbcp.lib=${commons-dbcp.home}
> 	commons-dbcp.jar=${commons-dbcp.lib}/commons-dbcp.jar
> 	
> commons-dbcp.loc=http://jakarta.apache.org/builds/jakarta-commons/release/co
> mmons-dbcp/v1.0/commons-dbcp-1.0.zip
> 
> 
> 	# ----- Commons Modeler, version 1.0 or later -----
> 	commons-modeler.home=${base.path}/commons-modeler
> 	commons-modeler.lib=${commons-modeler.home}
> 	commons-modeler.jar=${commons-modeler.lib}/commons-modeler.jar
> 	
> commons-modeler.loc=http://jakarta.apache.org/builds/jakarta-commons/release
> /commons-modeler/v1.0/commons-modeler-1.0.tar.gz
> 
> 
> 	# ----- Commons Pool, version 1.0 or later -----
> 	commons-pool.home=${base.path}/commons-pool-1.0
> 	commons-pool.lib=${commons-pool.home}
> 	commons-pool.jar=${commons-pool.lib}/commons-pool.jar
> 	
> commons-pool.loc=http://jakarta.apache.org/builds/jakarta-commons/release/co
> mmons-pool/v1.0.1/commons-pool-1.0.1.tar.gz
> 
> 
> 	# ----- JavaService, version 1.2.0 or later -----
> 	#javaservice.home=${base.path}/javaservice
> 	
> #javaservice.loc=http://www.alexandriasc.com/software/JavaService/JavaServic
> e-bin-1.2.0.zip
> 
> 
> 	# ----- Java Database Connectivity (JDBC) Optional Package, version
> 2.0 -----
> 	#jdbc20ext.home=${base.path}/jdbc2_0-stdext
> 	#jdbc20ext.lib=${jdbc20ext.home}
> 	#jdbc20ext.jar=${jdbc20ext.lib}/jdbc2_0-stdext.jar
> 
> 
> 	# ----- Java Management Extensions (JMX), JMX RI 1.0.1 or later or
> MX4J 1.1 or later -----
> 	jmx.home=${base.path}/mx4j-1.1
> 	jmx.lib=${jmx.home}/lib
> 	jmx.jar=${jmx.lib}/mx4j-jmx.jar
> 	
> jmx.loc=http://telia.dl.sourceforge.net/sourceforge/mx4j/mx4j-1.1.tar.gz
> 
> 
> 	# ----- Java Secure Sockets Extension (JSSE), version 1.0.2 or later
> -----
> 	#jsse.home=${base.path}/jsse-1.0.2
> 	#jsse.lib=${jsse.home}/lib
> 	#jcert.jar=${jsse.lib}/jcert.jar
> 	#jnet.jar=${jsse.lib}/jnet.jar
> 	#jsse.jar=${jsse.lib}/jsse.jar
> 
> 
> 	# ----- Java Transaction API (JTA), version 1.0.1 or later -----
> 	jta.home=${base.path}/jta-spec1_0_1
> 	jta.lib=${jta.home}
> 	jta.jar=${jta.lib}/jta-spec1_0_1.jar
> 
> 
> 	# ----- JUnit Unit Test Suite, version 3.7 or later -----
> 	#junit.home=${base.path}/junit3.7
> 	#junit.lib=${junit.home}
> 	#junit.jar=${junit.lib}/junit.jar
> 	#junit.loc=http://download.sourceforge.net/junit/junit3.7.zip
> 
> 
> 	# ----- Java Mail, version 1.2 or later -----
> 	mail.home=${base.path}/javamail-1.3
> 	mail.lib=${mail.home}
> 	mail.jar=${mail.lib}/mail.jar
> 
> 
> 	# ----- NSIS, version 1.9x -----
> 	#nsis.home=${base.path}/nsis
> 	#nsis.loc=http://www.nullsoft.com/free/nsis/nsis198.exe
> 
> 
> 	# ----- PureTLS Extension, version 0.9 or later -----
> 	#puretls.home=${base.path}/puretls-0.9b2
> 	#puretls.lib=${puretls.home}/build
> 	#puretls.jar=${puretls.lib}/puretls.jar
> 
> 
> 	# ----- Struts, version 1.0.1 or later -----
> 	struts.home=${base.path}/jakarta-struts-1.0.2
> 	struts.lib=${struts.home}/lib
> 	struts.jar=${struts.lib}/struts.jar
> 	
> struts.loc=http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.2/ja
> karta-struts-1.0.2.tar.gz
> 
> 
> 	# ----- Tyrex Data Source, version 1.0 -----
> 	tyrex.home=${base.path}/tyrex-1.0
> 	tyrex.lib=${tyrex.home}
> 	tyrex.jar=${tyrex.lib}/tyrex-1.0.jar
> 	tyrex.loc=ftp://ftp.exolab.org/pub/tyrex/tyrex-1.0/tyrex-1.0.jar
> ====================================================
> ====================================================
> ====================================================
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> 





--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message