Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo 3.6.2 uses snaps and struts2
Virgo 3.6.2 uses snaps and struts2 [message #1269906] Wed, 12 March 2014 05:56 Go to next message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
can not find class

org.eclipse.virgo.snaps.core.internal.SnapException: The filter class 'org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter' could not be loaded by org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@6222053a

  • Attachment: log.log
    (Size: 725.65KB, Downloaded 6 times)
Re: Virgo 3.6.2 uses snaps and struts2 [message #1269907 is a reply to message #1269906] Wed, 12 March 2014 05:57 Go to previous messageGo to next message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
Manifest-Version: 1.0
Bundle-Version: 1.0.0
Class-Path:
Bundle-Name: Pig
Bundle-ManifestVersion: 2
Bundle-SymbolicName: snaps.pig
Snap-Host: org.eclipse.virgo.snaps.sample.animal;version="3.6.2.RELEASE"
Snap-ContextPath: /pig
Import-Bundle: org.eclipse.virgo.snaps.api;version="[3.6.2.RELEASE,3.6.2.RELEASE]",
javax.servlet;version="[3.0.0.v201112011016,3.0.0.v201112011016]",
org.eclipse.virgo.web.dm;version="[3.6.2.RELEASE,3.6.2.RELEASE]",
org.eclipse.gemini.blueprint.core;version="[1.0.2.RELEASE,1.0.2.RELEASE]"
Import-Package: org.eclipse.virgo.snaps.core;version="[3.6.2.RELEASE,3.6.2.RELEASE]",
org.osgi.framework;version="[1.7.0,1.7.0]"
Import-Library: org.springframework.spring;version="[3.1.0.RELEASE,3.1.0.RELEASE]"
Export-Package: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
Bundle-ClassPath: WEB-INF/lib/asm-3.3.jar,
WEB-INF/lib/asm-commons-3.3.jar,
WEB-INF/lib/asm-tree-3.3.jar,
WEB-INF/lib/commons-beanutils-1.8.0.jar,
WEB-INF/lib/commons-collections-3.1.jar,
WEB-INF/lib/commons-digester-2.0.jar,
WEB-INF/lib/commons-fileupload-1.2.2.jar,
WEB-INF/lib/commons-io-2.0.1.jar,
WEB-INF/lib/commons-lang-2.5.jar,
WEB-INF/lib/commons-lang3-3.1.jar,
WEB-INF/lib/freemarker-2.3.19.jar,
WEB-INF/lib/jackson-core-asl-1.9.9.jar,
WEB-INF/lib/jackson-mapper-asl-1.9.9.jar,
WEB-INF/lib/javassist-3.11.0.GA.jar,
WEB-INF/lib/ognl-3.0.5.jar,
WEB-INF/lib/sitemesh-2.4.2.jar,
WEB-INF/lib/struts2-convention-plugin-2.3.4.1.jar,
WEB-INF/lib/struts2-core-2.3.4.1.jar,
WEB-INF/lib/struts2-json-plugin-2.3.4.1.jar,
WEB-INF/lib/struts2-spring-plugin-2.3.4.1.jar,
WEB-INF/lib/velocity-1.6.3.jar,
WEB-INF/lib/velocity-tools-1.4.jar,
WEB-INF/lib/xwork-core-2.3.4.1.jar,
.
  • Attachment: web.xml
    (Size: 1.49KB, Downloaded 7 times)
Re: Virgo 3.6.2 uses snaps and struts2 [message #1269908 is a reply to message #1269907] Wed, 12 March 2014 05:58 Go to previous messageGo to next message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
[2014-03-12 17:50:56.249] ERROR iLogServiceListener@6a1681ea org.osgi.service.log.LogService Bundle org.eclipse.virgo.snaps.core_3.6.2.RELEASE, FrameworkEvent ERROR org.eclipse.virgo.snaps.core.internal.SnapException: The filter class 'org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter' could not be loaded by org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@6222053a
at org.eclipse.virgo.snaps.core.internal.webapp.container.FilterManager.processFilters(FilterManager.java:77)
at org.eclipse.virgo.snaps.core.internal.webapp.container.FilterManager.reifyWebXml(FilterManager.java:58)
at org.eclipse.virgo.snaps.core.internal.webapp.container.FilterManager.<init>(FilterManager.java:54)
at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.<init>(StandardVirtualContainer.java:58)
at org.eclipse.virgo.snaps.core.internal.webapp.container.VirtualContainerFactory.fromWebXml(VirtualContainerFactory.java:31)
at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.createVirtualContainer(WebAppSnap.java:160)
at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:103)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:87)
at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:67)
at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:271)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:319)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:316)
at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:252)
at org.eclipse.virgo.nano.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
at org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader.loadClass(BundleWebappClassLoader.java:312)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.loadComponentClass(ManagerUtils.java:27)
at org.eclipse.virgo.snaps.core.internal.webapp.container.FilterManager.processFilters(FilterManager.java:67)
... 38 common frames omitted

  • Attachment: log.log
    (Size: 725.65KB, Downloaded 7 times)
Re: Virgo 3.6.2 uses snaps and struts2 [message #1269909 is a reply to message #1269908] Wed, 12 March 2014 05:59 Go to previous messageGo to next message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">

<context-param>
<param-name>contextClass</param-name>
<param-value>osgi.MyOsgiBundleXmlWebApplicationContext</param-value>
</context-param>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<!-- <servlet> <servlet-name>pig</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet> -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.apache.struts2.dispatcher.ng.listener.StrutsListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

<!-- <servlet-mapping>
<servlet-name>pig</servlet-name>
<url-pattern>/web/*</url-pattern>
</servlet-mapping> -->
</web-app>
Re: Virgo 3.6.2 uses snaps and struts2 [message #1269969 is a reply to message #1269909] Wed, 12 March 2014 07:13 Go to previous messageGo to next message
gustavo monarin is currently offline gustavo monarin
Messages: 5
Registered: September 2013
Junior Member
Although i don't think is the problem, i don't believe that you need the entry
Export-Package: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter in your manifest.

Have you configured snaps in the property initialartifcats in the file org.eclipse.virgo.kernel.userregion.properties ?

[Updated on: Wed, 12 March 2014 10:15]

Report message to a moderator

Re: Virgo 3.6.2 uses snaps and struts2 [message #1270430 is a reply to message #1269969] Wed, 12 March 2014 21:13 Go to previous messageGo to next message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
I remove the configuration of "org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter in your manifest" in my mainfest,but i only have a try.In my org.eclipse.virgo.kernel.userregion.properties:
initialArtifacts=repository:plan/org.eclipse.virgo.kernel.userregion.blueprint,repository:plan/org.eclipse.virgo.web.tomcat,repository:plan/org.eclipse.virgo.snaps,repository:configuration/org.eclipse.virgo.apps.repository,repository:plan/org.eclipse.virgo.management.
Snaps needed jar and plan in the ${virgohome}/repository/ext
Re: Virgo 3.6.2 uses snaps and struts2 [message #1271066 is a reply to message #1270430] Fri, 14 March 2014 02:58 Go to previous message
liu peng is currently offline liu peng
Messages: 12
Registered: September 2012
Junior Member
how can I write struts.xml ????????

it will used struts-osgi-plugins.jar ?????????
Previous Topic:Order of bundle installation
Next Topic:Virgo contribution and github
Goto Forum:
  


Current Time: Sat Aug 30 18:32:02 EDT 2014

Powered by FUDForum. Page generated in 0.03245 seconds