I agree with Tihomir. Make sure that the web application is deployed with a PARENT_LAST classloader configuration.
Also, you probably need to update the components.xml file to specify the location of the repository to a separate FS location that you know the application server user has access to. May or may not be necessary, but generally a good practice. Guvnor DOES run on WebSphere 7. David Faulkner david.faulk...@amentra.com ________________________________________ From: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] On Behalf Of Tihomir Surdilovic [tsurd...@redhat.com] Sent: Tuesday, April 05, 2011 11:22 AM To: rules-users@lists.jboss.org Subject: Re: [rules-users] Drools Guvnor - Websphere 7 Seems you have an older jcr jar on your classpath that gets loaded before Guvnor's jcr-2.0.jar in WEB-INF/lib. On 4/5/11 11:07 AM, smileychappy wrote: > I'm trying to install and run Guvnor on Websphere 7. > > When I try starting the app, I get the following exception > > [4/5/11 11:02:26:793 EDT] 00000085 webapp E > com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: > Exception caught while initializing context: {0} > org.jboss.seam.InstantiationException: > Could not instantiate Seam component: repositoryConfiguration > at org.jboss.seam.Component.newInstance(Component.java:2066) > at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) > at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) > at > org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112) > at org.jboss.seam.init.Initialization.init(Initialization.java:727) > at > org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34) > at > com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1681) > at > com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:374) > at > com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299) > at > com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100) > at > com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166) > at > com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731) > at > com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616) > at > com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376) > at > com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122) > at > com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315) > at > com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:623) > at > com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266) > at > com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4599) > at > com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4687) > at > com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043) > at > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439) > at > com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123) > at > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382) > at > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653) > at > com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) > at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37) > at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) > at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244) > at > javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086) > at > javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773) > at > com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320) > at > com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) > at > com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213) > at > com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251) > at > com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:239) > at > com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:564) > at > org.apache.struts.action.RequestProcessor.processActionPerform(Unknown > Source) > at org.apache.struts.action.RequestProcessor.process(Unknown Source) > at org.apache.struts.action.ActionServlet.process(Unknown Source) > at org.apache.struts.action.ActionServlet.doPost(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595) > at > com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104) > at > com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) > at > com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) > at > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341) > at org.apache.struts.action.RequestProcessor.doForward(Unknown Source) > at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown > Source) > at > org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown > Source) > at > org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown > Source) > at > com.ibm.isclite.container.controller.InformationController.processForwardConfig(InformationController.java:217) > at org.apache.struts.action.RequestProcessor.process(Unknown Source) > at org.apache.struts.action.ActionServlet.process(Unknown Source) > at org.apache.struts.action.ActionServlet.doPost(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595) > at > com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131) > at > com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistence(WSCUrlFilter.java:927) > at > com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:494) > at > com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:315) > at > com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188) > at > com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116) > at > com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77) > at > com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500) > at > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178) > at > com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) > at > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864) > at > com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) > at > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455) > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384) > at > com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) > at > com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772) > at > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) > at > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) > at > com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) > at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) > at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) > at > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) > at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550) > Caused by: java.lang.RuntimeException: exception invoking: create > at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:148) > at org.jboss.seam.Component.callComponentMethod(Component.java:2171) > at org.jboss.seam.Component.callCreateMethod(Component.java:2094) > at org.jboss.seam.Component.newInstance(Component.java:2054) > ... 104 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) > at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) > at > org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) > at > org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) > at > org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) > at > org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) > at > org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) > at > org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) > at > org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) > at > org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166) > at > org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102) > at > org.drools.guvnor.server.repository.RepositoryStartupService_$$_javassist_1.create(RepositoryStartupService_$$_javassist_1.java) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:600) > at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) > at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138) > ... 107 more > Caused by: java.lang.NoSuchMethodError: > javax/jcr/Repository.login(Ljavax/jcr/Credentials;)Ljavax/jcr/Session; > at > org.drools.guvnor.server.repository.RepositoryStartupService.newSession(RepositoryStartupService.java:151) > at > org.drools.guvnor.server.repository.RepositoryStartupService.create(RepositoryStartupService.java:72) > ... 128 more > > Am I missing some libraries or something in the process. Please let me know. > > Thanks! > > -- > View this message in context: > http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Guvnor-Websphere-7-tp2780252p2780252.html > Sent from the Drools - User mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users