You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Peter Davie <pe...@aroma-software.com> on 2004/02/16 06:26:59 UTC
Problems with Tomcat 5.0.18 and Jetspeed 1.4 - servlet.init failure
Hi,
I've been trying for a couple of days to get Jetspeed running on Tomcat
5.0.18 and Tomcat 4.1.27, both versions have the same problem:
** Problem:
1) Clean install, start Jetspeed - Works fine (using either the /manager
context to load the WAR, or putting the WAR direct into the webapps
directory)
2) Stop / Start Tomcat - Jetspeed dies
** Stack Trace
The localhost_log.XXX.txt file shows the following (edited to remove
unnecessary stacktraces):
2004-02-16 10:09:55 StandardContext[/jetspeed]StandardWrapper.Throwable
java.lang.IncompatibleClassChangeError at
org.apache.jetspeed.services.search.lucene.LuceneSearchService.initConfiguration(LuceneSearchService.java:217) at org.apache.jetspeed.services.search.lucene.LuceneSearchService.init(LuceneSearchService.java:132) at org.apache.turbine.services.TurbineBaseService.init(TurbineBaseService.java:108) at org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.java:149) <<... trace snipped ...>>
----- Root Cause -----
java.lang.IncompatibleClassChangeError at
org.apache.jetspeed.services.search.lucene.LuceneSearchService.initConfiguration(LuceneSearchService.java:217) at org.apache.jetspeed.services.search.lucene.LuceneSearchService.init(LuceneSearchService.java:132) at org.apache.turbine.services.TurbineBaseService.init(TurbineBaseService.java:108) <<... trace snipped ...>>
2004-02-16 10:09:55 StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2004-02-16 10:09:55 StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2004-02-16 10:09:55 StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2004-02-16 10:09:55 StandardContext[/servlets-examples]SessionListener:
contextInitialized()
<<-- EOF -->>
**Environment:
1) Tomcat 4.1.27 and 5.0.18
2) Jetspeed 1.4
3) Sun Java 1.4.2
4) SuSE Linux 9.0 (Network install version)
5) common/endorsed contains:
xalan-2.3.1.jar xercesImpl.jar xmlParserAPIs.jar
6) jetspeed/lib contains:
activation-1.0.1.jar jcs-1.0-dev.jar
castor-0.9.3.jar jdbc-se2.0.jar
commons-beanutils-1.4.1.jar jetspeed-1.4.jar
commons-collections-2.0.jar jndi-1.2.1.jar
commons-configuration-1.0-dev.jar log4j-1.2.8.jar
commons-dbcp-1.0-dev-20020806.jar lucene-1.3-rc1.jar
commons-httpclient-1.0.jar ojb-0.7.343.jar
commons-lang-1.0.jar soap.jar
commons-logging-1.0.2.jar stratum-1.0-b4-dev.jar
commons-pool-1.0.jar torque-3.0.jar
ecs-1.4.1.jar turbine-2.2.jar
fulcrum-3.0-b2-dev.jar uddi4j.jar
hsqldb.jar velocity-1.3.jar
jakarta-oro-2.0.6.jar village-2.0-dev-20030625.jar
jakarta-regexp-1.2.jar xerces-2.0.2.jar
javamail-1.2.jar xml-apis.jar
jaxp-api.jar
**Actions so far:
1) I've searched Google,
2) the mail archives and
3) the FAQ.
4) Done the xalan-2.3.1 move into common/endorsed (as per FAQ).
5) There is one message in the mail archive (by Gerry Reno) which seems
to report a similar problem, but no replies as yet.
**Suspected fault:
My guess is that this is some form of classpath clash (isn't there
always?), but I've no idea which module is causing it. Any pointers you
have would be a great help.
Thanks,
Peter
Peter Davie
Aroma Software Sdn Bhd
www.aroma-software.com
Web Services ERM :: MSC Status Company
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Problems with Tomcat 5.0.18 and Jetspeed 1.4 - servlet.init
failure
Posted by Peter Davie <pe...@aroma-software.com>.
Problem solved. I had a duplicate copy of the lucene.jar, one in the
jetspeed/WEB-INF/lib directory and the other in $JAVA_HOME/jre/leb/ext.
Once I removed the one in the JRE, and replaced it with the one from
jetspeed, the application ran perfectly.
Thanks Paul for your assistance!
On Tue, 2004-02-17 at 03:27, Paul McCulloch wrote:
> Hi,
>
> I have copied the servlet-api.jar from tomcat to jetspeed --
> my jetspeed just did not have a servlet jar. If you have one, maybe
> wrong version:
>
> "Copy apache\tomcat5\common\lib\servlet-api.jar to
> jetspeed-1.4\war\WEB-INF\lib\ "
> (war is where I unpacked the war file)
>
>
> I have 3 jars that are different between these two directories, *maybe*
> you can rule them out or in.
>
> C:\apache\tomcat5\common\lib
>
> 01/15/2004 09:24a 100,776 commons-dbcp-1.1.jar
> 01/15/2004 09:24a 165,119 commons-collections.jar
> 01/15/2004 09:24a 39,523 commons-pool-1.1.jar
>
>
> C:\apache\jetspeed14\war\WEB-INF\lib:
>
> 09/14/2002 08:49p 90,503 commons-collections-2.0.jar
> 10/15/2002 01:33p 77,244 commons-dbcp-1.0-dev-20020806.jar
> 0/15/2002 01:33p 26,872 commons-pool-1.0.jar
>
>
> Try?
> Backup and copy all libs from one to another and vice-versa.
> Delete the deployed war and unpacked war dir from tomcat/webapps before
> redeploying.
> Have anything untoward in jre/lib/ext dir?
>
> Good Luck!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Peter Davie
Aroma Software Sdn Bhd
www.aroma-software.com
Web Services ERM :: MSC Status Company
Re: Problems with Tomcat 5.0.18 and Jetspeed 1.4 - servlet.init failure
Posted by Paul McCulloch <pa...@earthlink.net>.
Hi,
I have copied the servlet-api.jar from tomcat to jetspeed --
my jetspeed just did not have a servlet jar. If you have one, maybe
wrong version:
"Copy apache\tomcat5\common\lib\servlet-api.jar to
jetspeed-1.4\war\WEB-INF\lib\ "
(war is where I unpacked the war file)
I have 3 jars that are different between these two directories, *maybe*
you can rule them out or in.
C:\apache\tomcat5\common\lib
01/15/2004 09:24a 100,776 commons-dbcp-1.1.jar
01/15/2004 09:24a 165,119 commons-collections.jar
01/15/2004 09:24a 39,523 commons-pool-1.1.jar
C:\apache\jetspeed14\war\WEB-INF\lib:
09/14/2002 08:49p 90,503 commons-collections-2.0.jar
10/15/2002 01:33p 77,244 commons-dbcp-1.0-dev-20020806.jar
0/15/2002 01:33p 26,872 commons-pool-1.0.jar
Try?
Backup and copy all libs from one to another and vice-versa.
Delete the deployed war and unpacked war dir from tomcat/webapps before
redeploying.
Have anything untoward in jre/lib/ext dir?
Good Luck!
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org