Guvnor doesn't use OSGi.<br><br>The stack trace suggests the JAR you are has a dependency on OSGi:-<br><br><div style="margin-left:40px">org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar.<br>
</div><br>The remainder of the stack trace relates to trying to load the imported class.<br><br><div class="gmail_quote">2012/1/9 Mike Key <span dir="ltr"><<a href="mailto:mikey@zenbitz.com">mikey@zenbitz.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div><br></div><div>I have installed Guvnor 5.3.0-Final on a fresh Tomcat 7.0.12. I am able to import existing rules I have, however when I try to upload my fact model I get an error in the localhost log file:</div>
<div><br></div><div><div>SEVERE: Servlet.service() for servlet [AssetFileServlet] in context with path [/guvnor-5.3.0.Final-tomcat-6.0] threw exception [Servlet execution threw an exception] with root cause</div><div>java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator</div>
<div>>...at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)</div><div>>...at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)</div><div>>...at java.lang.Class.forName0(Native Method)</div>
<div>>...at java.lang.Class.forName(Class.java:247)</div><div>>...at org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:109)</div><div>>...at java.lang.ClassLoader.loadClass(ClassLoader.java:247)</div>
<div>>...at java.lang.ClassLoader.defineClass1(Native Method)</div><div>>...at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)</div><div>>...at java.lang.ClassLoader.defineClass(ClassLoader.java:615)</div>
<div>>...at org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:86)</div><div>>...at org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:104)</div><div>>...at java.lang.ClassLoader.loadClass(ClassLoader.java:247)</div>
<div>>...at org.drools.guvnor.server.contenthandler.ModelContentHandler.isClassVisible(ModelContentHandler.java:183)</div><div>>...at org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar(ModelContentHandler.java:148)</div>
<div>>...at org.drools.guvnor.server.contenthandler.ModelContentHandler.onAttachmentAdded(ModelContentHandler.java:66)</div><div>>...at org.drools.guvnor.server.files.FileManagerUtils.attachFileToAsset(FileManagerUtils.java:115)</div>
<div>>...at org.drools.guvnor.server.files.FileManagerUtils.attachFile(FileManagerUtils.java:87)</div><div>>...at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</div><div>>...at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</div>
<div>>...at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</div><div>>...at java.lang.reflect.Method.invoke(Method.java:597)</div><div>>...at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)</div>
<div>>...at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)</div><div>>...at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)</div><div>>...at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)</div>
<div>>...at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div>>...at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)</div><div>>...at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div>
<div>>...at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)</div><div>>...at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div>
>...at org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:163)</div><div>>...at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)</div><div>>...at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)</div>
<div>>...at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)</div><div>>...at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)</div></div>
<div><br></div><div>I am attempting to upload a jar with all dependencies it uses (which includes JPA annotations and JAXB annotations). I have verified that the jar contains all its proper dependencies. This message seems to indicate I am missing some OSGi jar or something that I would have expected to be delivered with Guvnor. Do I need some sort of global libraries for OSGi to run Guvnor or to use my model when it has these external dependencies in the jar?</div>
<div><br></div><div>Any help on this is greatly appreciated.</div><div><br></div><div>Cheers.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Mike Key</div>
</font></span><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>