incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: Deploy Problem
Date Sat, 08 Nov 2008 18:00:41 GMT

Two possible scenarios:

1) Your classpath is not what you think it is.  When JSPWiki starts,  
it goes through all of the files to update
ReferenceManager.  Plugins are not invoked, but they are added to an  
internal registry at that time.  So, it seems
that your plugins are not found at this time.  Did you put them in  
the WEB-INF/lib or somewhere else?  Do you
have a different Tomcat installation?  (Some versions of tomcat put  
stuff in different folders.)  It might be a good
idea to put your JAR file in WEB-INF/lib to see if that helps.

2) Your JAR file is broken somehow in the transition.

/Janne

On Nov 8, 2008, at 15:59 , Benedikt Mohrmann wrote:

> Hi,
>
> I have a weird problem conerning the JSPWiki on my JBoss Server.
>
> I am using two different computers to work with JSPWiki.
> On the first one, I developed several plugins and everything runs  
> fine.
>
> Yesterday I tried to install the Wiki with all the developed  
> plugins on my second computer in order to test it on another machine.
>
> The weird thing is that it does not work (even not deploy) on the  
> second computer.
> It seems to be a plugin problem, because when I remove all plugins,  
> the JSPWiki works on computer2, too.
>
> It seems to be that there are some missing connections/references,  
> as the stacktrace says:
> 14:46:42,671 ERROR [[/JSPWiki]] Exception starting filter  
> WikiJSPFilter
> java.lang.NoClassDefFoundError: org/MYPACKAGE/myclass
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Unknown Source)
>    at com.ecyrd.jspwiki.plugin.PluginManager 
> $WikiPluginInfo.newPluginInstance(PluginManager.java:892)
>    at com.ecyrd.jspwiki.plugin.PluginManager 
> $WikiPluginInfo.initializePlugin(PluginManager.java:811)
>    at com.ecyrd.jspwiki.plugin.PluginManager.registerPlugin 
> (PluginManager.java:700)
>    at com.ecyrd.jspwiki.plugin.PluginManager.executeParse 
> (PluginManager.java:1036)
>    at com.ecyrd.jspwiki.parser.PluginContent.executeParse 
> (PluginContent.java:230)
>    at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleHyperlinks 
> (JSPWikiMarkupParser.java:1473)
>    at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.handleOpenbracket 
> (JSPWikiMarkupParser.java:2270)
>    at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parseToken 
> (JSPWikiMarkupParser.java:2845)
>    at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.fillBuffer 
> (JSPWikiMarkupParser.java:2645)
>    at com.ecyrd.jspwiki.parser.JSPWikiMarkupParser.parse 
> (JSPWikiMarkupParser.java:2904)
>    at com.ecyrd.jspwiki.providers.CachingProvider.refreshMetadata 
> (CachingProvider.java:691)
>    at com.ecyrd.jspwiki.providers.CachingProvider.getPageInfo 
> (CachingProvider.java:739)
>    at com.ecyrd.jspwiki.PageManager.getPageInfo(PageManager.java:446)
>    at com.ecyrd.jspwiki.WikiEngine.getPage(WikiEngine.java:1875)
>    at com.ecyrd.jspwiki.WikiEngine.getPage(WikiEngine.java:1855)
>    at com.ecyrd.jspwiki.ReferenceManager.initialize 
> (ReferenceManager.java:254)
>    at com.ecyrd.jspwiki.WikiEngine.initReferenceManager 
> (WikiEngine.java:691)
>    at com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:585)
>    at com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:399)
>    at com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:340)
>    at com.ecyrd.jspwiki.ui.WikiServletFilter.init 
> (WikiServletFilter.java:79)
>    at org.apache.catalina.core.ApplicationFilterConfig.getFilter 
> (ApplicationFilterConfig.java:275)
>    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef 
> (ApplicationFilterConfig.java:397)
>    at org.apache.catalina.core.ApplicationFilterConfig.<init> 
> (ApplicationFilterConfig.java:108)
>    at org.apache.catalina.core.StandardContext.filterStart 
> (StandardContext.java:3722)
>    at org.apache.catalina.core.StandardContext.start 
> (StandardContext.java:4367)
>    at org.apache.catalina.core.ContainerBase.addChildInternal 
> (ContainerBase.java:790)
>    at org.apache.catalina.core.ContainerBase.addChild 
> (ContainerBase.java:770)
>    at org.apache.catalina.core.StandardHost.addChild 
> (StandardHost.java:553)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke 
> (BaseModelMBean.java:296)
>    at org.jboss.mx.server.RawDynamicInvoker.invoke 
> (RawDynamicInvoker.java:164)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at org.apache.catalina.core.StandardContext.init 
> (StandardContext.java:5312)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke 
> (BaseModelMBean.java:296)
>    at org.jboss.mx.server.RawDynamicInvoker.invoke 
> (RawDynamicInvoker.java:164)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at  
> org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal 
> (TomcatDeployer.java:301)
>    at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy 
> (TomcatDeployer.java:104)
>    at org.jboss.web.AbstractWebDeployer.start 
> (AbstractWebDeployer.java:375)
>    at org.jboss.web.WebModule.startModule(WebModule.java:83)
>    at org.jboss.web.WebModule.startService(WebModule.java:61)
>    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart 
> (ServiceMBeanSupport.java:289)
>    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle 
> (ServiceMBeanSupport.java:245)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke 
> (ReflectedDispatcher.java:155)
>    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>    at org.jboss.mx.server.AbstractMBeanInvoker.invoke 
> (AbstractMBeanInvoker.java:264)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at org.jboss.system.ServiceController$ServiceProxy.invoke 
> (ServiceController.java:978)
>    at $Proxy0.start(Unknown Source)
>    at org.jboss.system.ServiceController.start 
> (ServiceController.java:417)
>    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke 
> (ReflectedDispatcher.java:155)
>    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>    at org.jboss.mx.server.AbstractMBeanInvoker.invoke 
> (AbstractMBeanInvoker.java:264)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>    at $Proxy44.start(Unknown Source)
>    at org.jboss.web.AbstractWebContainer.start 
> (AbstractWebContainer.java:466)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke 
> (ReflectedDispatcher.java:155)
>    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>    at org.jboss.mx.interceptor.AbstractInterceptor.invoke 
> (AbstractInterceptor.java:133)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke 
> (ModelMBeanOperationInterceptor.java:142)
>    at org.jboss.mx.interceptor.DynamicInterceptor.invoke 
> (DynamicInterceptor.java:97)
>    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext 
> (InterceptorServiceMBeanSupport.java:238)
>    at org.jboss.wsf.container.jboss42.DeployerInterceptor.start 
> (DeployerInterceptor.java:87)
>    at org.jboss.deployment.SubDeployerInterceptorSupport 
> $XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
>    at org.jboss.deployment.SubDeployerInterceptor.invoke 
> (SubDeployerInterceptor.java:95)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>    at org.jboss.mx.server.AbstractMBeanInvoker.invoke 
> (AbstractMBeanInvoker.java:264)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>    at $Proxy45.start(Unknown Source)
>    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
>    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
>    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
>    at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>    at java.lang.reflect.Method.invoke(Unknown Source)
>    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke 
> (ReflectedDispatcher.java:155)
>    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>    at org.jboss.mx.interceptor.AbstractInterceptor.invoke 
> (AbstractInterceptor.java:133)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke 
> (ModelMBeanOperationInterceptor.java:142)
>    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
>    at org.jboss.mx.server.AbstractMBeanInvoker.invoke 
> (AbstractMBeanInvoker.java:264)
>    at org.jboss.mx.server.MBeanServerImpl.invoke 
> (MBeanServerImpl.java:659)
>    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
>    at $Proxy9.deploy(Unknown Source)
>    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy 
> (URLDeploymentScanner.java:421)
>    at org.jboss.deployment.scanner.URLDeploymentScanner.scan 
> (URLDeploymentScanner.java:610)
>    at org.jboss.deployment.scanner.AbstractDeploymentScanner 
> $ScannerThread.doScan(AbstractDeploymentScanner.java:263)
>    at org.jboss.deployment.scanner.AbstractDeploymentScanner 
> $ScannerThread.loop(AbstractDeploymentScanner.java:274)
>    at org.jboss.deployment.scanner.AbstractDeploymentScanner 
> $ScannerThread.run(AbstractDeploymentScanner.java:225)
> 14:46:42,674 ERROR [StandardContext] Error filterStart
> 14:46:42,674 ERROR [StandardContext] Context [/JSPWiki] startup  
> failed due to previous errors
> 14:46:42,814 WARN  [ServiceController] Problem starting service  
> jboss.web.deployment:war=JSPWiki.war,id=-364654892
>
>
> Does anyone know where to set the missing reference? It would be a  
> great help, as I am already searching for a long time.
>
> Best regards
> Benedikt


Mime
View raw message