Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Upgrading to Virgo 3.0.1 causing Uses violations
Upgrading to Virgo 3.0.1 causing Uses violations [message #733796] Wed, 05 October 2011 16:23 Go to next message
Jacob Hameiri is currently offline Jacob Hameiri
Messages: 43
Registered: December 2010
Member
I am trying to upgrade from virgo 2.1.1 to 3.0.1, and I am getting Uses violations :

      Uses violation: <Import-Package: org.mortbay.jetty.security; version="0.0.0"> in bundle <fileserver_2.1.1[1317826595423]>
            Found conflicts:
                package        'javax.servlet.http_2.5.0' in bundle 'com.springsource.javax.servlet_2.5.0[71]' used by 'org.mortbay.jetty.security_6.1.9' in bundle 'com.springsource.org.mortbay.jetty.server_6.1.9[1317826595432]'
                conflicts with 'javax.servlet.http_3.0.0' in bundle 'javax.servlet_3.0.0.v201103241009[92]' used by 'org.springframework.web.servlet.view.jasperreports_3.0.5.RELEASE' in bundle 'org.springframework.web.servlet_3.0.5.RELEASE[1317826595845]'



How can I solve this conflict ?
Re: Upgrading to Virgo 3.0.1 causing Uses violations [message #733821 is a reply to message #733796] Wed, 05 October 2011 17:54 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 238
Registered: October 2010
Senior Member
Unfortunately the bundle com.springsource.org.mortbay.jetty.server_6.1.9 imports javax.servlet version with range [2.5.0, 3.0.0), Virgo Tomcat Server is released with the newer javax.servlet (i.e. 3.0.0) version.

You can try to find newer version for com.springsource.org.mortbay.jetty.server.
Or you can try to extend the version range in the current bundle that you use, for example [2.5.0, 4.0.0).

Java Servlet Specification latest version is compatible with the previous versions from User's perspective, so the second approach might be working also very well.
Re: Upgrading to Virgo 3.0.1 causing Uses violations [message #733850 is a reply to message #733821] Wed, 05 October 2011 19:23 Go to previous messageGo to next message
Jacob Hameiri is currently offline Jacob Hameiri
Messages: 43
Registered: December 2010
Member
"Or you can try to extend the version range in the current bundle that you use, for example [2.5.0, 4.0.0)."

How can I do this to an compiled jar ?
Re: Upgrading to Virgo 3.0.1 causing Uses violations [message #733857 is a reply to message #733850] Wed, 05 October 2011 19:52 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 238
Registered: October 2010
Senior Member
Open com.springsource.org.mortbay.jetty.server.jar
Open META-INF/MANIFEST.MF
Extend the version ranges - see below

MANIFEST.MF
...
Bundle-DocURL: http://jetty.mortbay.org
Import-Package: javax.net.ssl,javax.security.cert,javax.servlet;versio
n="[2.5.0, 4.0.0)",javax.servlet.http;version="[2.5.0, 4.0.0)",javax.
xml.parsers,org.mortbay.component;version="[6.1.0, 7.0.0)",org.mortba
y.log;version="[6.1.0, 7.0.0)",org.mortbay.servlet;version="[6.1.0, 7
.0.0)",org.mortbay.thread;version="[6.1.0, 7.0.0)",org.mortbay.util;v
ersion="[6.1.0, 7.0.0)",org.mortbay.util.ajax;version="[6.1.0, 7.0.0)
",org.xml.sax,org.xml.sax.helpers
Bundle-SymbolicName: com.springsource.org.mortbay.jetty.server
...

Then replace the original MANIFEST.MF with the changed one
Re: Upgrading to Virgo 3.0.1 causing Uses violations [message #733892 is a reply to message #733857] Wed, 05 October 2011 21:23 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry Sklyut
Messages: 272
Registered: January 2010
Senior Member
I guess another question is which Virgo package are you upgrading to. If you upgrading to Virgo Tomcat, have you considered trying Virgo Jetty package? Could that be a better approach for you as you already using jetty internally?
Virgo Jetty package is shipped with jetty v7.4.2.v20110526

Regards,
Dmitry
Re: Upgrading to Virgo 3.0.1 causing Uses violations [message #735444 is a reply to message #733892] Tue, 11 October 2011 20:21 Go to previous message
Jacob Hameiri is currently offline Jacob Hameiri
Messages: 43
Registered: December 2010
Member
Sorry for the late response, I ended up doing what Violeta suggested and changed the version range.
Now I have a new problem with Virgo 3.0.1, I am using activemq-web-console-5.5.0.war and with Virgo 2.1.1 it worked fine but after the upgrade 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)

Previous Topic:Just using Virgo as a dm extender (+ web extender)
Next Topic:Simple WAR with JDBC access
Goto Forum:
  


Current Time: Tue Sep 23 16:38:11 GMT 2014

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

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