Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tomcat server not starting with startup.sh. #77

Closed
mahesh-wor opened this issue Dec 10, 2018 · 11 comments
Closed

tomcat server not starting with startup.sh. #77

mahesh-wor opened this issue Dec 10, 2018 · 11 comments

Comments

@mahesh-wor
Copy link

i get "Tomcat Started" success message but " can't seem to access anything on localhost:8080.
can't anything in "netstat -l".

@billchen198318
Copy link
Owner

trace log /tmp/greenstep-core.log , /tmp/greenstep-bsc.log

@mahesh-wor
Copy link
Author

2018-12-10 13:19:36 [] WARN ClassPathXmlApplicationContext:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler' defined in URL [file:/home/bamboobsc-0.7.5-RELEASE/bamboobsc-07/apache-tomcat-8.5.35/webapps/gsbsc-web/WEB-INF/classes/applicationContext/applicationContext-STANDARD-QUARTZ.xml]: Invocation of init method failed; nested exception is org.quartz.JobPersistenceException: Couldn't retrieve trigger: Table 'bbcore.qrtz_z_bsc_TRIGGERS' doesn't exist [See nested exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'bbcore.qrtz_z_bsc_TRIGGERS' doesn't exist]
2018-12-10 13:19:36 [] INFO SpringCamelContext:3496 - Apache Camel 2.23.0 (CamelContext: esb.BSC-SystemCamelContext) is shutting down
2018-12-10 13:19:36 [] INFO SpringCamelContext:3596 - Apache Camel 2.23.0 (CamelContext: esb.BSC-SystemCamelContext) uptime
2018-12-10 13:19:36 [] INFO SpringCamelContext:3597 - Apache Camel 2.23.0 (CamelContext: esb.BSC-SystemCamelContext) is shutdown in 0.002 seconds
2018-12-10 13:19:36 [] INFO DefaultAsyncJobExecutor:208 - Shutting down the default async job executor [org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor].
2018-12-10 13:19:36 [] INFO AcquireTimerJobsRunnable:115 - {} stopped async job due acquisition
2018-12-10 13:19:36 [] INFO ResetExpiredJobsRunnable:99 - {} stopped resetting expired jobs
2018-12-10 13:19:36 [] INFO AcquireAsyncJobsDueRunnable:115 - {} stopped async job due acquisition
2018-12-10 13:19:36 [] INFO EhCacheManagerFactoryBean:187 - Shutting down EhCache CacheManager
2018-12-10 13:19:36 [] INFO JMXPlatformImpl:76 - Unregistering existing Dozer JMX MBean [org.dozer.jmx:type=DozerAdminController].
2018-12-10 13:19:36 [] INFO JMXPlatformImpl:76 - Unregistering existing Dozer JMX MBean [org.dozer.jmx:type=DozerStatisticsController].
2018-12-10 13:19:36 [] INFO HikariDataSource:350 - HikariPool-4 - Shutdown initiated...
2018-12-10 13:19:36 [] INFO HikariDataSource:352 - HikariPool-4 - Shutdown completed.

@mahesh-wor
Copy link
Author

it says "bbcore.qrtz_z_bsc_TRIGGERS' doesn't exists. and then shutsdown.
I am running it on lxc-container ; "ubuntu;xenial".

@billchen198318
Copy link
Owner

Please view install.pdf , you no set mysql lower_case_table_names config

@mahesh-wor
Copy link
Author

2018-12-10 13:56:32 [] WARN ClassPathXmlApplicationContext:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: couldn't check if tables are already present using metadata: Access denied for user 'root'@'localhost' (using password: YES)
2018-12-10 13:56:32 [] INFO EhCacheManagerFactoryBean:187 - Shutting down EhCache CacheManager
2018-12-10 13:56:32 [] INFO JMXPlatformImpl:76 - Unregistering existing Dozer JMX MBean [org.dozer.jmx:type=DozerAdminController].
2018-12-10 13:56:32 [] INFO JMXPlatformImpl:76 - Unregistering existing Dozer JMX MBean [org.dozer.jmx:type=DozerStatisticsController].
2018-12-10 13:56:32 [] INFO USessLogHelperImpl:58 - delete tb_sys_usess data!...

looks like i can't access mysql.

@billchen198318
Copy link
Owner

Please check core-web , gsbsc-web, gsbsc-mobile-web the three web module applicationContext-dataSource.properties has settings OK.

@billchen198318
Copy link
Owner

Please view the issues : #70 like you problem.

@mahesh-wor
Copy link
Author

checked those 3 web module's setting they are good.
But i am still getting denied root@localhost & some other exceptions.

greenstep-bsc.log
greenstep-core.log
greenstep-bsc-mobile.log

@billchen198318
Copy link
Owner

I try the bambooBSC-0.7.5 RELEASE in ununtu-18.04.1.0 Server work success in VM.

My apt-install package list:

  1. mysql-server (MySQL 5.7)
  2. openjdk-8-jre-headless (open-JRE8)
  3. p7zip-full (decompress .7z file)

and has config /etc/mysql/mysql.conf.d/mysqld.cnf add lower_case_table_names=1
and success import bbcore.sql to database.

my start tomcat service command:
sudo catalina.sh run

2018-12-11 08-32-54

@mahesh-wor
Copy link
Author

i did manage to run in using VM through the image you provided on your site.
but, i couldn't get it to work from scratch on my either of my containers(lxc/docker).
it would be great if you could maybe try running it on docker and may be push out images on hub.docker or share your Dockerfile.

@billchen198318
Copy link
Owner

I think when I have time, I will create a Dockerfile. need wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants