tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brzezinski, Paul J" <Paul.Brzezin...@EDS.COM>
Subject Re: Tomcat won't work with jdk 1.4.0
Date Tue, 08 Oct 2002 14:09:48 GMT
Raj Saini wrote:

> I am not using JK2. I am using Jk. btw, why do you need the 
> jk2.properties file. Your problem is some where else. jk2.properties 
> is used by the apache not by the tomcat (If I am not wrong).

jk2.properties is used by tomcat, workers2.properties is used by Apache.

>
> From your exception is seems that you dont have common-logging.jar 
> file in your $TOMCAT_HOME/common/lib directory. It supposed to be part 
> of the distribution. If the the file is there, then it is not inculded 
> in your classpath. This also should be done automatically, if you have 
> not modified any thing.

$Tomcat_home/common/lib contains the following
activation.jar           jasper-compiler.jar      naming-common.jar
ant.jar                  jasper-runtime.jar       naming-factory.jar
commons-collections.jar  jdbc2_0-stdext.jar       naming-resources.jar
commons-dbcp.jar         jndi.jar                 servlet.jar
commons-logging-api.jar  jta.jar
commons-pool.jar         mail.jar

$Tomcat_home/server/lib contains the following
catalina-ant.jar          mx4j-jmx.jar              servlets-webdav.jar
catalina.jar              mx4j.license              tomcat-coyote.jar
commons-beanutils.jar     servlets-cgi.renametojar  tomcat-http11.jar
commons-digester.jar      servlets-common.jar       tomcat-jk.jar
commons-logging.jar       servlets-default.jar      tomcat-jk2.jar
commons-modeler.jar       servlets-invoker.jar      tomcat-util.jar
jaas.jar                  servlets-manager.jar      tomcat-warp.jar
jakarta-regexp-1.2.jar    servlets-ssi.renametojar

Since this is *the* server attempting to start, I thought it would 
reference server/lib before searching for classes in common/lib

BTW: this is straight out of the gzip'd tarball.

>
> Raj
> Brzezinski, Paul J wrote:
>
>> Raj Saini wrote:
>>
>>> Hi,
>>>
>>> There should not be problem running tomcat on Solaris 8. I am 
>>> running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I 
>>> have just switched from Tomcat 4.0.3 to 4.1.12.
>>
>>
>>
>> Could you share your jk2.properties then?
>>
>> I'm running on Solaris 8 (SPARC) using JDK 1.4 and Tomcat 4.1.12 
>> (tried Tomcat 4.1.12-LE-jdk14 too) and trying to use the AF_UNIX 
>> socket (which apparently requires apr) with no success.  I get the 
>> following error:
>>
>> Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry loadRegistry
>> INFO: Loading registry information
>> Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry getRegistry
>> INFO: Creating new Registry instance
>> Oct 8, 2002 4:29:56 AM org.apache.commons.modeler.Registry getServer
>> INFO: Creating MBeanServer
>> Oct 8, 2002 4:29:58 AM org.apache.coyote.http11.Http11Protocol init
>> INFO: Initializing Coyote HTTP/1.1 on port 8080
>> Starting service Tomcat-Standalone
>> Apache Tomcat/4.1.12
>> Oct 8, 2002 4:30:11 AM org.apache.coyote.http11.Http11Protocol start
>> INFO: Starting Coyote HTTP/1.1 on port 8080
>> Oct 8, 2002 4:30:11 AM org.apache.jk.server.JkMain newHandler
>> SEVERE: Can't create apr
>> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>>        at org.apache.jk.apr.AprImpl.<clinit>(AprImpl.java:340)
>>
>> I have a tiny jsp that displays the System.getProperty( 
>> "java.class.path" ):
>>
>>    * CLASSPATH:
>>      
>> /em/opt/j2sdk1.4.0_02/lib/tools.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar:/em/opt/jakarta-tomcat-4.1.12/bin/bootstrap.jar

>>
>>
>>
>> Help, advice appreciated.
>>
>> Thanks in advance,
>> Paul
>>
>>>
>>> Your problem is the log4j.jar is missing from you your libs. Your 
>>> application (or some of the lib) is using log4j libraby for logging. 
>>> Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should 
>>> work fine.
>>>
>>> Raj
>>>
>>> Chuck Carson wrote:
>>>
>>>> I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It
>>>> works with jdk1.3.1_05, but I am trying to get it running with
>>>> jdk1.4.0_02 and I get the following exception in catalina.out:
>>>>
>>>> Exception during startup processing
>>>> java.lang.reflect.InvocationTargetException
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>>>> a:39)
>>>>         at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>>> Impl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:324)
>>>>         at
>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>>>> Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
>>>>         at
>>>> org.opennms.web.authenticate.Authentication.<clinit>(Authentication.java

>>>>
>>>> :39)
>>>>         at
>>>> org.opennms.web.authenticate.OpenNMSTomcatRealm.<init>(OpenNMSTomcatReal

>>>>
>>>> m.java:125)
>>>>         at 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>> Method)
>>>>         at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
>>>> ccessorImpl.java:39)
>>>>         at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
>>>> tructorAccessorImpl.java:27)
>>>>         at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>>>         at java.lang.Class.newInstance0(Class.java:296)
>>>>         at java.lang.Class.newInstance(Class.java:249)
>>>>         at
>>>> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617)
>>>>         at
>>>> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
>>>>         at
>>>> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
>>>>         at
>>>> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:
>>>> 329)
>>>>         at
>>>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
>>>>         at
>>>> org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
>>>> idator.java:1284)
>>>>         at
>>>> org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
>>>> anner.java:1806)
>>>>         at
>>>> org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
>>>> h(XMLDocumentScanner.java:1182)
>>>>         at
>>>> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
>>>> ner.java:381)
>>>>         at
>>>> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
>>>>         at
>>>> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>>>>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
>>>>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
>>>>         at
>>>> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
>>>>         at 
>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:725)
>>>>         at
>>>> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>>>>         at
>>>> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>>>>
>>>> Anyone have any ideas?
>>>>
>>>> Thanks
>>>> CC
>>>>
>>>
>>>>
>>>> ----------
>>>> This message contains confidential information and is intended only for
>>>> the individual named. If you are not the named addressee you should not
>>>> disseminate, distribute or copy this e-mail. Please notify the sender
>>>> immediately by e-mail if you have received this e-mail by mistake and
>>>> delete this e-mail from your system. E-mail transmission cannot be
>>>> guaranteed to be secure or error-free as information could be
>>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>>>> contain viruses. The sender therefore does not accept liability for any
>>>> errors or omissions in the contents of this message, which arise as a
>>>> result of e-mail transmission. If verification is required please
>>>> request a hard-copy version.
>>>> -- 
>>>> To unsubscribe, e-mail:   
>>>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>>> For additional commands, e-mail: 
>>>> <mailto:tomcat-user-help@jakarta.apache.org>
>>>>
>>>
>>>
>>>
>>> -- 
>>> To unsubscribe, e-mail:   
>>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>> For additional commands, e-mail: 
>>> <mailto:tomcat-user-help@jakarta.apache.org>
>>
>>
>>
>>
>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:tomcat-user-help@jakarta.apache.org>
>>
>
>
>
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>





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


Mime
View raw message