Error while starting Tomcat

956 views
Skip to first unread message

Sergio Muriel

unread,
Jul 28, 2018, 8:17:45 PM7/28/18
to saka...@apereo.org

Hi everyone,

I'm getting this message in my localhost.log when I try to start Tomcat:


28-Jul-2018 18:54:41.886 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter sakai.request

 java.lang.NullPointerException
at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:664)
at org.apache....... etc

I checked RequestFilter on line 664 and found: 

appUrl = serverConfigurationService.getString("serverUrl", null);


Then configured this on my sakai.properties


but I'm still getting the same error. Any clues about what this could be?
Thank you!

PD1: Java 8, Tomcat 8, Maven 3.5.4.
PD2: I'm trying to run this in the master branch. It is supposed to run, right? Otherwise, what are the branches/tags that are supposed to run?



Best Regards,
Sergio Muriel

Steve Swinsburg

unread,
Jul 29, 2018, 3:42:01 AM7/29/18
to Sergio Muriel, sakai-dev
Hi Sergio,

Did you restart after making that change? Are you sure it's the correct sakai.properties that Tomcat is looking at?

Regards
Steve

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

James Scoble

unread,
Jul 30, 2018, 3:35:26 AM7/30/18
to Steve Swinsburg, Sergio Muriel, sakai-dev
Is the machine's firewall allowing something to open on that port?
Or some other process could already be using 9090.
Check what else is running.


On Sun, Jul 29, 2018 at 9:42 AM, Steve Swinsburg <steve.s...@gmail.com> wrote:
Hi Sergio,

Did you restart after making that change? Are you sure it's the correct sakai.properties that Tomcat is looking at?

Regards
Steve
On Sun., 29 Jul. 2018, 10:17 Sergio Muriel, <serg...@hotmail.com> wrote:

Hi everyone,

I'm getting this message in my localhost.log when I try to start Tomcat:


28-Jul-2018 18:54:41.886 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter sakai.request

 java.lang.NullPointerException
at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:664)
at org.apache....... etc

I checked RequestFilter on line 664 and found: 

appUrl = serverConfigurationService.getString("serverUrl", null);


Then configured this on my sakai.properties


but I'm still getting the same error. Any clues about what this could be?
Thank you!

PD1: Java 8, Tomcat 8, Maven 3.5.4.
PD2: I'm trying to run this in the master branch. It is supposed to run, right? Otherwise, what are the branches/tags that are supposed to run?



Best Regards,
Sergio Muriel

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+unsubscribe@apereo.org.

To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.



Disclaimer - This e-mail is subject to UWC policies and e-mail disclaimer published on our website at: https://www.uwc.ac.za/Pages/emaildisclaimer.aspx

Hendrik Steller

unread,
Jul 30, 2018, 8:52:50 AM7/30/18
to saka...@apereo.org
If the NullPointer is in the line that Sergio quoted, then it's the
serverConfigurationService that is null, i.e. something went wrong with the
bean injection.
Is there some other error in the catalina.[out|log|whatever]?
> >> email to sakai-dev+...@apereo.org.
> >> To post to this group, send email to saka...@apereo.org.
> >> Visit this group at https://groups.google.com/a/
> >> apereo.org/group/sakai-dev/.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Sakai Development" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to sakai-dev+...@apereo.org.
> > To post to this group, send email to saka...@apereo.org.
> > Visit this group at https://groups.google.com/a/
> > apereo.org/group/sakai-dev/.


-----------------------------------------


Sergio Muriel

unread,
Jul 30, 2018, 5:54:23 PM7/30/18
to saka...@apereo.org, jsc...@uwc.ac.za, Hendrik Steller, steve.s...@gmail.com

Steve:
> Did you restart after making that change? 
Yes.
> Are you sure it's the correct sakai.properties that Tomcat is looking at?
I'm pretty sure. I only have one at CATALINA_HOME\sakai\sakai.properties
Should I look somewhere else?

James:

>  Is the machine's firewall allowing something to open on that port?
Yes.
> Or some other process could already be using 9090. 
I checked with "netstat -an" command (Windows) but it doesn't show anything on 9090.
Check what else is running.
Nothing really. What is more I emptied my Tomcat, put only one page on it and it ran perfectly.


Hendrik:

> If the NullPointer is in the line that Sergio quoted, then it's the 
> serverConfigurationService that is null, i.e. something went wrong with the bean injection.
> Is there some other error in the catalina.[out|log|whatever]?
I'm getting a bunch but this is the first one thrown. It writes the first SEVERE on catalina.log when the first NullPointerException happens in RequestFilter.java:664. Date, time and millisecond match: 30-Jul-2018 16:23:33.975
Just in case I attached the log files. Here are the highlights:

 ===== catalina.log =====
30-Jul-2018 16:23:33.975 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
30-Jul-2018 16:23:33.975 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/access] startup failed due to previous errors
30-Jul-2018 16:23:40.126 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
30-Jul-2018 16:23:40.131 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/accountvalidator] startup failed due to previous errors
30-Jul-2018 16:23:40.138 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [accountvalidator] created a ThreadLocal with key of type [uk.org.ponder.saxalizer.support.SAXalXMLProvider$1] (value [uk.org.ponder.saxalizer.support.SAXalXMLProvider$1@231e5306]) and a value of type [uk.org.ponder.saxalizer.SAXalizerHelper] (value [uk.org.ponder.saxalizer.SAXalizerHelper@1ed4db51]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
30-Jul-2018 16:23:43.991 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
30-Jul-2018 16:23:43.993 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/admin-tool-su] startup failed due to previous errors
........
30-Jul-2018 16:23:46.604 INFO [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org/sakaiproject/config/kernel.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/sakaiproject/config/kernel.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1101)
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:166)
at org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean.loadProperties(SakaiProperties.java:389)
at org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean.mergeProperties(SakaiProperties.java:365)
at org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean.createInstance(SakaiProperties.java:308)
at org.sakaiproject.util.SakaiProperties$SakaiPropertiesFactoryBean.afterPropertiesSet(SakaiProperties.java:290)
at org.sakaiproject.util.SakaiProperties.afterPropertiesSet(SakaiProperties.java:80)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207)
at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:285)
at org.sakaiproject.site.impl.DbSiteService$$EnhancerBySpringCGLIB$$47a0d18f.serverConfigurationService(<generated>)
at org.sakaiproject.site.impl.BaseSiteService.init(BaseSiteService.java:447)
at org.sakaiproject.site.impl.DbSiteService.init(DbSiteService.java:169)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1758)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1695)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.sakaiproject.util.SakaiContextLoaderListener.contextInitialized(SakaiContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4900)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5363)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:973)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)


===== localhost.log ===== 

30-Jul-2018 16:23:33.975 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.filterStart Exception starting filter sakai.request
 java.lang.NullPointerException
at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:664)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4747)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5389)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:973)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
........

30-Jul-2018 16:23:46.888 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.sakaiproject.util.SakaiContextLoaderListener
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sitePermsService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'org.sakaiproject.authz.api.AuthzGroupService' while setting bean property 'authzGroupService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.authz.api.AuthzGroupService' defined in file [D:\Sakai\apache-tomcat-8.0.52\components\sakai-kernel-impl\WEB-INF\authz-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.memory.api.MemoryService' while setting bean property 'memoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.memory.api.MemoryService' defined in file [D:\Sakai\apache-tomcat-8.0.52\components\sakai-kernel-impl\WEB-INF\memory-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.component.api.ServerConfigurationService' while setting bean property 'serverConfigurationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.component.api.ServerConfigurationService' defined in file [D:\Sakai\apache-tomcat-8.0.52\components\sakai-kernel-impl\WEB-INF\component-components.xml]: Cannot resolve reference to bean 'org.sakaiproject.component.SakaiProperties' while setting bean property 'sakaiProperties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.sakaiproject.component.SakaiProperties' defined in class path resource [org/sakaiproject/config/sakai-configuration.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/sakaiproject/config/kernel.properties]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.


Still have no clue what is going on. Thank you for the help.



Best Regards,
Sergio Muriel



From: saka...@apereo.org <saka...@apereo.org> on behalf of Hendrik Steller <sa...@stellers.net>
Sent: Monday, July 30, 2018 7:52 AM
To: saka...@apereo.org
Subject: Re: [sakai-dev] Error while starting Tomcat
 
catalina.zip
localhost.zip

Hendrik Steller

unread,
Jul 30, 2018, 6:31:54 PM7/30/18
to Sergio Muriel, saka...@apereo.org
Hi Sergio,

I'm a bit suspicious about your sakai installation.
In the catalina.log I see a lot of stuff about deploying webapps, and there
are complaints that something or other can't load the kernel.properties file.
But I can't find a single mention of "components".
In my logfile, there's org.sakaiproject.util.ComponentsLoader logging INFO
messages for every component it loads from the "components" folder inside the
tomcat folder.
So my suspicion is that you didn't "mvn sakai:deploy" some stuff, at least not
to the right location.
Do you have a D:\Sakai\apache-tomcat-8.0.52\components folder and is it full
of stuff? It should contain 70-80 "somethingOrOther-pack" folders.

Hendrik
> 149) at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:
> 624) at java.lang.Thread.run(Thread.java:748)
>
>
>
> ===== localhost.log =====
>
> 30-Jul-2018 16:23:33.975 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.StandardContext.filterStart Exception starting
> filter sakai.request java.lang.NullPointerException
> at org.sakaiproject.util.RequestFilter.init(RequestFilter.java:664)
> at
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilt
> erConfig.java:285) at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilte
> rConfig.java:266) at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCo
> nfig.java:108) at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4
> 747) at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java
> :5389) at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
> 755) at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:973) at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1850)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1
> 149) at

Sergio Muriel

unread,
Jul 31, 2018, 1:13:28 PM7/31/18
to saka...@apereo.org, Hendrik Steller

Hi Hendrick,


>  So my suspicion is that you didn't "mvn sakai:deploy" some stuff, at least not  to the right location.

This is what I did:

[from my Sakai folder]

cd master
mvn clean install sakai:deploy -Dmaven.tomcat.home=d:\Sakai\apache-tomcat-8.0.52 -Dsakai.home=d:\Sakai\apache-tomcat-8.0.52\sakai -Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true -Dsakai.cleanup=true
cd ..
mvn clean install sakai:deploy -Dmaven.tomcat.home=d:\Sakai\apache-tomcat-8.0.52 -Dsakai.home=d:\Sakai\apache-tomcat-8.0.52\sakai -Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true -Dsakai.cleanup=true
Both builds succeeded. Am I missing something?


Do you have a D:\Sakai\apache-tomcat-8.0.52\components folder and is it full of stuff? It should contain 70-80 "somethingOrOther-pack" folders.

I have 69 folders in there. 9 of them are "somethingOrOther-pack".  50 of them are "somethingOrOther-impl*". 


Still no luck starting Tomcat.


PD: I ask again just in case. "master" is supposed to run, right?



Best Regards,
Sergio Muriel



From: Hendrik Steller <sa...@stellers.net>
Sent: Monday, July 30, 2018 5:31 PM
To: Sergio Muriel
Cc: saka...@apereo.org

Hendrik Steller

unread,
Jul 31, 2018, 6:24:25 PM7/31/18
to saka...@apereo.org, Sergio Muriel
On Tuesday, 31 July 2018 19:13:23 CEST Sergio Muriel wrote:

> mvn clean install sakai:deploy
> -Dmaven.tomcat.home=d:\Sakai\apache-tomcat-8.0.52
> -Dsakai.home=d:\Sakai\apache-tomcat-8.0.52\sakai
> -Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true -Dsakai.cleanup=true
> Both builds succeeded. Am I missing something?

Probably not.

>
> > Do you have a D:\Sakai\apache-tomcat-8.0.52\components folder and is it
> > full of stuff? It should contain 70-80 "somethingOrOther-pack" folders.
> I have 69 folders in there. 9 of them are "somethingOrOther-pack". 50 of
> them are "somethingOrOther-impl*".

Oh, well, I'm still on 11.x, so that should explain the difference in folder
names.

> Still no luck starting Tomcat.
>
> PD: I ask again just in case. "master" is supposed to run, right?

I guess it should, but AFAIK it's also the development branch, so checking out
a tagged release might not be a bad idea. But apropos "master", development
and me still using 11.x:
According to your folder names, you're using Tomcat 8.0.x.
I believe Tomcat 8.0.x. has reached end-of-(supported-)life last month or so.
It's a reasonable assumption that master, being the latest and greatest, not
only supports 8.5.x (in fact, I've been using Sakai 11.x and Tomcat 8.5.x for
ages), but might actually require it.
Given that the loading of Sakai components - which seems not to work in your
case - is hooking into Tomcat's classloading mechanism, I would try to "mvn
sakai:deploy" that stuff into a newer Tomcat.

Actually, looking at http://nightly2.sakaiproject.org , it seems like 12.x
runs on 8.5.31 or 8.5.32 and the master/experiment/19.x are already on Tomcat
9. So depending on what you're planning to do (running it or bleeding edge
development), I would either give Sakai 12.x on a Tomcat 8.5 or the master on
Tomcat 9.x a try - but not master on 8.0.x.


Hendrik





Sergio Muriel

unread,
Aug 2, 2018, 8:57:57 PM8/2/18
to saka...@apereo.org, Hendrik Steller

> I would either give Sakai 12.x on a Tomcat 8.5 or ......

I'm trying to maven Sakai 12.2 branch on a clean installation of Tomcat 8.5.32 but got:


[ERROR] Failed to execute goal org.sakaiproject.maven.plugins:sakai:1.4.4:deploy (default-cli) on project deploy: Artifact File is null for dependency junit:junit:jar:4.12 in org.sakaiproject.deploy:deploy:pom:19-SNAPSHOT -> [Help 1]

Not sure what is going on here. Thanks for the help.


Best Regards,
Sergio Muriel



From: Hendrik Steller <sa...@stellers.net>
Sent: Tuesday, July 31, 2018 5:24 PM
To: saka...@apereo.org
Cc: Sergio Muriel

Subject: Re: [sakai-dev] Error while starting Tomcat

Hendrik Steller

unread,
Aug 3, 2018, 5:11:40 AM8/3/18
to saka...@apereo.org, Sergio Muriel
You say you're using 12.2, but the error mentions a version "19-SNAPSHOT".
I don't know if this a problem with the code or with what you've done, but it
looks a bit suspicious...

Sergio Muriel

unread,
Aug 10, 2018, 12:06:48 PM8/10/18
to saka...@apereo.org, Hendrik Steller

It was definitely suspicious. Anyways I fixed it but still got the same error. At the end I realized that all this was because I was using a db driver that did not correspond to driver specified in driverC...@javax.sql.BaseDataSource Sakai properties file.



Best Regards,
Sergio Muriel



From: Hendrik Steller <sa...@stellers.net>
Sent: Friday, August 3, 2018 4:11 AM
Sakai 12 is the next community supported release of Sakai. This QA server is the main QA instance for verifying Jiras after they have been merged into the 12 branch.
Reply all
Reply to author
Forward
0 new messages