Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » problems upgrading from 2.1.1 to 3.0.1
problems upgrading from 2.1.1 to 3.0.1 [message #735446] Tue, 11 October 2011 20:24 Go to next message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
I am using activemq-web-console-5.5.0.war and with Virgo 2.1.1 it worked fine but after upgrading to 3.0.1 I got this exception any idea why this is happening ?
22:09:01.685 [Thread-106] ERROR System.err - Oct 11, 2011 10:09:01 PM org.apache.catalina.core.StandardContext filterStart
22:09:01.685 [Thread-106] ERROR System.err - SEVERE: Exception starting filter session
22:09:01.685 [Thread-106] ERROR System.err - java.lang.ClassCastException: org.apache.activemq.web.SessionFilter cannot be cast to javax.servlet.Filter
22:09:01.686 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
22:09:01.686 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
22:09:01.686 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
22:09:01.686 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
22:09:01.687 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
22:09:01.687 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
22:09:01.687 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
22:09:01.687 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
22:09:01.687 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
22:09:01.688 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
22:09:01.688 [Thread-106] ERROR System.err - 	at java.lang.Thread.run(Thread.java:662)
22:09:02.405 [Thread-106] ERROR System.err - Oct 11, 2011 10:09:02 PM org.apache.catalina.core.StandardContext filterStart
22:09:02.405 [Thread-106] ERROR System.err - SEVERE: Exception starting filter spring-rq
22:09:02.406 [Thread-106] ERROR System.err - java.lang.ClassCastException: org.springframework.web.filter.RequestContextFilter cannot be cast to javax.servlet.Filter
22:09:02.406 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
22:09:02.406 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
22:09:02.407 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
22:09:02.407 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
22:09:02.407 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
22:09:02.407 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
22:09:02.407 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
22:09:02.408 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
22:09:02.408 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
22:09:02.408 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
22:09:02.408 [Thread-106] ERROR System.err - 	at java.lang.Thread.run(Thread.java:662)
22:09:02.411 [Thread-106] ERROR System.err - Oct 11, 2011 10:09:02 PM org.apache.catalina.core.StandardContext filterStart
22:09:02.412 [Thread-106] ERROR System.err - SEVERE: Exception starting filter audit
22:09:02.412 [Thread-106] ERROR System.err - java.lang.ClassCastException: org.apache.activemq.web.AuditFilter cannot be cast to javax.servlet.Filter
22:09:02.412 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
22:09:02.412 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
22:09:02.412 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
22:09:02.413 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
22:09:02.413 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
22:09:02.413 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
22:09:02.413 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
22:09:02.413 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
22:09:02.414 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
22:09:02.414 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
22:09:02.414 [Thread-106] ERROR System.err - 	at java.lang.Thread.run(Thread.java:662)
22:09:02.417 [Thread-106] ERROR System.err - Oct 11, 2011 10:09:02 PM org.apache.catalina.core.StandardContext filterStart
22:09:02.417 [Thread-106] ERROR System.err - SEVERE: Exception starting filter sitemesh
22:09:02.418 [Thread-106] ERROR System.err - java.lang.ClassCastException: com.opensymphony.module.sitemesh.filter.PageFilter cannot be cast to javax.servlet.Filter
22:09:02.418 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
22:09:02.418 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
22:09:02.418 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
22:09:02.418 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
22:09:02.419 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
22:09:02.419 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
22:09:02.419 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
22:09:02.419 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
22:09:02.419 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
22:09:02.419 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
22:09:02.420 [Thread-106] ERROR System.err - 	at java.lang.Thread.run(Thread.java:662)
22:09:02.421 [Thread-106] ERROR System.err - Oct 11, 2011 10:09:02 PM org.apache.catalina.core.StandardContext filterStart
22:09:02.422 [Thread-106] ERROR System.err - SEVERE: Exception starting filter spring
22:09:02.422 [Thread-106] ERROR System.err - java.lang.ClassCastException: org.apache.activemq.web.filter.ApplicationContextFilter cannot be cast to javax.servlet.Filter
22:09:02.423 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
22:09:02.423 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
22:09:02.423 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
22:09:02.424 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
22:09:02.424 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
22:09:02.424 [Thread-106] ERROR System.err - 	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
22:09:02.424 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
22:09:02.425 [Thread-106] ERROR System.err - 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
22:09:02.425 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
22:09:02.425 [Thread-106] ERROR System.err - 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
22:09:02.426 [Thread-106] ERROR System.err - 	at java.lang.Thread.run(Thread.java:662)

Re: problems upgrading from 2.1.1 to 3.0.1 [message #735489 is a reply to message #735446] Wed, 12 October 2011 02:10 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry SklyutFriend
Messages: 279
Registered: January 2010
Senior Member
Take a look whats inside the WEB-INF/lib in that war. There is basically full spring library, bunch of apache commons, even org.osgi.core-4.1.0.jar...

You are bound to run into classloader issues. Basically some classes are loaded by different classloaders and that is why you are getting CCE.

03/28/2011  07:33 PM    <DIR>          .
03/28/2011  07:33 PM    <DIR>          ..
10/13/2009  10:59 AM           102,631 activeio-core-3.1.2.jar
03/28/2011  07:20 PM            45,263 activemq-camel-5.5.0.jar
03/28/2011  07:20 PM           120,335 activemq-console-5.5.0.jar
03/28/2011  07:10 PM         3,548,183 activemq-core-5.5.0.jar
03/28/2011  07:19 PM            37,496 activemq-pool-5.5.0.jar
08/09/2010  11:14 AM           147,874 activemq-protobuf-1.1.jar
03/28/2011  07:27 PM           108,289 activemq-web-5.5.0.jar
03/28/2011  07:32 PM           177,383 activemq-xmpp-5.5.0.jar
10/12/2009  05:20 PM             4,467 aopalliance-1.0.jar
03/28/2011  12:00 PM         1,712,135 camel-core-2.7.0.jar
03/28/2011  12:00 PM           113,917 camel-jms-2.7.0.jar
03/28/2011  12:01 PM           207,511 camel-spring-2.7.0.jar
10/12/2009  05:20 PM           575,389 commons-collections-3.2.1.jar
03/10/2011  12:04 PM            16,663 commons-daemon-1.0.3.jar
10/13/2009  11:25 AM           261,809 commons-lang-2.4.jar
10/12/2009  05:16 PM            52,915 commons-logging-1.1.jar
09/02/2009  05:50 PM            16,017 commons-management-1.0.jar
10/13/2009  10:59 AM           197,067 commons-net-2.0.jar
02/03/2010  09:29 PM            96,221 commons-pool-1.5.4.jar
06/16/2009  05:33 PM         2,141,382 derby-10.1.3.1.jar
11/03/2009  02:50 PM            69,223 gentlyweb-utils-1.5.jar
06/16/2009  05:33 PM            34,126 geronimo-activation_1.1_spec-1.0.2.jar
07/28/2009  05:44 PM            20,220 geronimo-j2ee-management_1.1_spec-1.0.1.j
ar
06/16/2009  05:31 PM            33,685 geronimo-jacc_1.1_spec-1.0.1.jar
06/16/2009  05:31 PM            32,359 geronimo-jms_1.1_spec-1.1.1.jar
06/16/2009  05:31 PM            14,637 geronimo-jta_1.0.1B_spec-1.0.1.jar
03/23/2011  11:59 AM           172,735 jasypt-1.7.jar
10/12/2009  05:22 PM            89,967 jaxb-api-2.1.jar
03/03/2010  03:04 PM           849,481 jaxb-impl-2.1.6.jar
10/12/2009  05:22 PM           153,253 jdom-1.0.jar
11/03/2009  02:50 PM           197,854 josql-1.5.jar
10/12/2009  05:24 PM            20,801 jstl-1.0.jar
03/28/2011  07:08 PM           154,606 kahadb-5.5.0.jar
10/12/2009  05:16 PM           367,444 log4j-1.2.14.jar
10/05/2009  04:18 PM           163,464 org.osgi.core-4.1.0.jar
06/16/2009  06:45 PM            65,261 oro-2.0.8.jar
06/16/2009  05:32 PM           197,290 rome-0.8.jar
10/12/2009  05:24 PM           133,588 sitemesh-2.2.1.jar
02/11/2011  12:04 PM            23,671 slf4j-api-1.5.11.jar
02/11/2011  12:04 PM             9,693 slf4j-log4j12-1.5.11.jar
07/05/2010  04:53 PM           320,926 spring-aop-3.0.3.RELEASE.jar
07/05/2010  04:53 PM            53,082 spring-asm-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           553,901 spring-beans-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           662,191 spring-context-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           100,368 spring-context-support-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           365,217 spring-core-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           160,146 spring-expression-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           184,665 spring-jms-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           231,345 spring-tx-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           389,117 spring-web-3.0.3.RELEASE.jar
07/05/2010  04:53 PM           404,158 spring-webmvc-3.0.3.RELEASE.jar
06/16/2009  05:33 PM           393,259 standard-1.1.2.jar
10/12/2009  05:22 PM            23,346 stax-api-1.0-2.jar
06/16/2009  06:48 PM            26,514 stax-api-1.0.1.jar
07/09/2009  12:31 PM           179,977 stax2-api-3.0.1.jar
10/16/2009  11:36 AM           420,975 velocity-1.6.2.jar
02/24/2010  12:25 PM           482,350 woodstox-core-asl-4.0.7.jar
06/11/2010  01:50 PM           130,942 xbean-spring-3.7.jar
10/19/2010  04:24 PM           120,069 xpp3-1.1.4c.jar
06/16/2009  05:32 PM            24,956 xpp3_min-1.1.4c.jar
10/12/2009  05:20 PM           431,406 xstream-1.3.1.jar
              61 File(s)     18,145,215 bytes
               2 Dir(s)  14,822,330,368 bytes free

Re: problems upgrading from 2.1.1 to 3.0.1 [message #735792 is a reply to message #735489] Wed, 12 October 2011 17:59 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

I tried activemq-web-console-5.5.0.war on Virgo 3.0.1
I put it into the pickup folder and then started Virgo.
I received in the console:

Caused by: org.eclipse.virgo.kernel.osgi.framework.UnableToSatisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'org.apache.ac
tivemq.activemq-web-console' at version '5.5.0': Cannot resolve: org.apache.activemq.activemq-web-console
    Resolver report:
        An Import-Package could not be resolved. Caused by missing constraint in bundle <org.apache.activemq.activemq-web-console_5.5.0>
             constraint: <Import-Package: javax.servlet; version="[2.5.0,3.0.0)">


So I modified a bit the Manifest.mf file in the activemq-web-console-5.5.0.war:

Import-Package: javax.management,javax.management.openmbean,javax.mana
gement.remote,javax.naming,javax.net,javax.servlet;version="[2.5,4)",
javax.servlet.http;version="[2.5,4)",javax.servlet.jsp;version="[2.1,
3)",javax.servlet.jsp.el;version="[2.1,3)",javax.servlet.jsp.tagext;v
ersion="[2.1,3)",javax.xml.parsers,javax.xml.transform,org.slf4j;reso
lution:=optional;version="[1.5,2)",org.w3c.dom,org.xml.sax,org.xml.sa
x.helpers


I put the changed Manifest.mf file to the activemq-web-console-5.5.0.war and deployed it again. This time everything was successful.

This change is needed because Virgo 3.0.1 is compatible with the latest Java Servlet specification and the corresponding bundle that provides javax.servlet.* API is with version 3.0

Regards
Violeta
Re: problems upgrading from 2.1.1 to 3.0.1 [message #746315 is a reply to message #735792] Sun, 23 October 2011 10:46 Go to previous message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
Thanks, this solved the problem
Previous Topic:WAB context not finding local classes
Next Topic:php web app
Goto Forum:
  


Current Time: Fri Apr 19 04:37:01 GMT 2024

Powered by FUDForum. Page generated in 0.02983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top