Tks ashish6276 but it doesn't worked for me.
My server log show this exception,
Mar 27, 2014 8:07:56 AM
org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet [AssetFileServlet] in context with
path [/guvnor-5.6.0.Final-tomcat-6.0] threw exception
javax.enterprise.event.ObserverException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:344)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:173)
at
org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:341)
at
org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:33)
at
org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:73)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:162)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
at
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:590)
at
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:580)
at
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:575)
at
org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:74)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.servlet.ServletException: Servlet execution threw an
exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:328)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
... 19 more
Caused by: java.lang.UnsupportedClassVersionError: com/sample/Process :
Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:85)
at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:103)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.isClassVisible(ModelContentHandler.java:184)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.getImportsFromJar(ModelContentHandler.java:149)
at
org.drools.guvnor.server.contenthandler.ModelContentHandler.onAttachmentAdded(ModelContentHandler.java:66)
at
org.drools.guvnor.server.files.FileManagerService.attachFileToAsset(FileManagerService.java:121)
at
org.drools.guvnor.server.files.FileManagerService.attachFile(FileManagerService.java:93)
at
org.drools.guvnor.server.files.FileManagerService$Proxy$_$$_WeldClientProxy.attachFile(FileManagerService$Proxy$_$$_WeldClientProxy.java)
at
org.drools.guvnor.server.files.AssetFileServlet.processAttachFileToAsset(AssetFileServlet.java:99)
at
org.drools.guvnor.server.files.AssetFileServlet.doPost(AssetFileServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
... 21 more
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-when-I-try-load-a-POJO-to-Guvnor-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.